(It is my first try, .... I am sure I make something wrong)
I have installed openser and it is now running for a while, ... today I have added two users by:
export SIP_DOMAIN=voip.mydomain.com openserctl add 800000 secret0 me@mydomain.com openserctl add 800001 secret1 me@mydomain.com
first test:
openserctl ul show Dumping all contacts may take long: are you sure you want to proceed? [Y|N] y ===Domain list=== ---Domain--- name : 'aliases' size : 512 table: 0x2a96f6d120 d_ll { n : 0 first: (nil) last : (nil) } ---/Domain--- ---Domain--- name : 'location' size : 512 table: 0x2a96f68f38 d_ll { n : 1 first: 0x2a96f71180 last : 0x2a96f71180 }
...Record(0x2a96f71180)... domain: 'location' aor : 'admin' ~~~Contact(0x2a96f71298)~~~ domain : 'location' aor : 'admin' Contact : 'sip:601@vpbx.elmit.com' Expires : Permanent q : 1 Call-ID : 'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything' CSeq : 42 User-Agent: 'SIP Express Router FIFO' received : '' State : CS_SYNC Flags : 128 Sock : none (null) next : (nil) prev : (nil) ~~~/Contact~~~~ .../Record...
---/Domain--- ===/Domain list===
Here it says domain: 'location' that sounds for me not correct, shouldn't it be voip.mydomain.com ??
I use than a hard phone and set it up, but it cannot log on, ... I also do not see anything happen, when I use openserctl moni
What have I done wrong?
BTW, I checked with serweb, and the user 800000 can login!
bye
Ronald Wiplinger
Hello,
the appropriate mailing list for questions related to openser is users@openser.org (http://openser.org/cgi-bin/mailman/listinfo/users).
Please see my comments inline.
On 10/17/05 11:44, Ronald Wiplinger wrote:
(It is my first try, .... I am sure I make something wrong)
I have installed openser and it is now running for a while, ... today I have added two users by:
export SIP_DOMAIN=voip.mydomain.com openserctl add 800000 secret0 me@mydomain.com openserctl add 800001 secret1 me@mydomain.com
first test:
openserctl ul show Dumping all contacts may take long: are you sure you want to proceed? [Y|N] y ===Domain list=== ---Domain--- name : 'aliases' size : 512 table: 0x2a96f6d120 d_ll { n : 0 first: (nil) last : (nil) } ---/Domain--- ---Domain--- name : 'location' size : 512 table: 0x2a96f68f38 d_ll { n : 1 first: 0x2a96f71180 last : 0x2a96f71180 }
...Record(0x2a96f71180)... domain: 'location' aor : 'admin'
domain : 'location' aor : 'admin' Contact : 'sip:601@vpbx.elmit.com' Expires : Permanent q : 1 Call-ID : 'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything' CSeq : 42 User-Agent: 'SIP Express Router FIFO' received : '' State : CS_SYNC Flags : 128 Sock : none (null) next : (nil) prev : (nil) ~~~/Contact~~~~ .../Record... ---/Domain--- ===/Domain list=== Here it says domain: 'location' that sounds for me not correct, shouldn't it be voip.mydomain.com ??
It is ok, actually the 'location' is the name of the table (the name of the field is a bit misleading).The sip domain should be visible in aor, but you didn't use 'use_domain' parameter, so it is ignored.
I use than a hard phone and set it up, but it cannot log on, ... I also do not see anything happen, when I use openserctl moni
What have I done wrong?
You can watch the network traffic while trying to register, there could be something misconfigured. Use: 'ngrep -qt port 5060' on your sip server and send the output to me to be able to give you more hints.
Cheers, Daniel
BTW, I checked with serweb, and the user 800000 can login!
bye
Ronald Wiplinger
Serusers mailing list Serusers@iptel.org http://mail.iptel.org/mailman/listinfo/serusers
Daniel-Constantin Mierla wrote:
Hello,
the appropriate mailing list for questions related to openser is users@openser.org (http://openser.org/cgi-bin/mailman/listinfo/users).
Thanks for pointing out that.
I found a part of my problem, but I cannot explain it. The phone (hard phone as well as a softphone) have been set to connect to port 5062, but I see the registration still on 5060, where Asterisk is running (on the same machine). The user 800000 has no account on Asterisk, therefore the login fails there.
Any idea where this could come from?
bye
Ronald Wiplinger
Please see my comments inline.
On 10/17/05 11:44, Ronald Wiplinger wrote:
(It is my first try, .... I am sure I make something wrong)
I have installed openser and it is now running for a while, ... today I have added two users by:
export SIP_DOMAIN=voip.mydomain.com openserctl add 800000 secret0 me@mydomain.com openserctl add 800001 secret1 me@mydomain.com
first test:
openserctl ul show Dumping all contacts may take long: are you sure you want to proceed? [Y|N] y ===Domain list=== ---Domain--- name : 'aliases' size : 512 table: 0x2a96f6d120 d_ll { n : 0 first: (nil) last : (nil) } ---/Domain--- ---Domain--- name : 'location' size : 512 table: 0x2a96f68f38 d_ll { n : 1 first: 0x2a96f71180 last : 0x2a96f71180 }
...Record(0x2a96f71180)... domain: 'location' aor : 'admin'
domain : 'location' aor : 'admin' Contact : 'sip:601@vpbx.elmit.com' Expires : Permanent q : 1 Call-ID : 'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything' CSeq : 42 User-Agent: 'SIP Express Router FIFO' received : '' State : CS_SYNC Flags : 128 Sock : none (null) next : (nil) prev : (nil) ~~~/Contact~~~~ .../Record... ---/Domain--- ===/Domain list=== Here it says domain: 'location' that sounds for me not correct, shouldn't it be voip.mydomain.com ??
It is ok, actually the 'location' is the name of the table (the name of the field is a bit misleading).The sip domain should be visible in aor, but you didn't use 'use_domain' parameter, so it is ignored.
I use than a hard phone and set it up, but it cannot log on, ... I also do not see anything happen, when I use openserctl moni
What have I done wrong?
You can watch the network traffic while trying to register, there could be something misconfigured. Use: 'ngrep -qt port 5060' on your sip server and send the output to me to be able to give you more hints.
Cheers, Daniel
BTW, I checked with serweb, and the user 800000 can login!
On 10/17/05 19:55, Ronald Wiplinger wrote:
Daniel-Constantin Mierla wrote:
Hello,
the appropriate mailing list for questions related to openser is users@openser.org (http://openser.org/cgi-bin/mailman/listinfo/users).
Thanks for pointing out that.
I found a part of my problem, but I cannot explain it. The phone (hard phone as well as a softphone) have been set to connect to port 5062, but I see the registration still on 5060, where Asterisk is running (on the same machine). The user 800000 has no account on Asterisk, therefore the login fails there.
Any idea where this could come from?
maybe there is a special field to set for registrar address in phone's configuration, or the phone is broken. What kind of phones have you tried?
Cheers, Daniel
bye
Ronald Wiplinger
Please see my comments inline.
On 10/17/05 11:44, Ronald Wiplinger wrote:
(It is my first try, .... I am sure I make something wrong)
I have installed openser and it is now running for a while, ... today I have added two users by:
export SIP_DOMAIN=voip.mydomain.com openserctl add 800000 secret0 me@mydomain.com openserctl add 800001 secret1 me@mydomain.com
first test:
openserctl ul show Dumping all contacts may take long: are you sure you want to proceed? [Y|N] y ===Domain list=== ---Domain--- name : 'aliases' size : 512 table: 0x2a96f6d120 d_ll { n : 0 first: (nil) last : (nil) } ---/Domain--- ---Domain--- name : 'location' size : 512 table: 0x2a96f68f38 d_ll { n : 1 first: 0x2a96f71180 last : 0x2a96f71180 }
...Record(0x2a96f71180)... domain: 'location' aor : 'admin'
domain : 'location' aor : 'admin' Contact : 'sip:601@vpbx.elmit.com' Expires : Permanent q : 1 Call-ID : 'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything' CSeq : 42 User-Agent: 'SIP Express Router FIFO' received : '' State : CS_SYNC Flags : 128 Sock : none (null) next : (nil) prev : (nil) ~~~/Contact~~~~ .../Record... ---/Domain--- ===/Domain list=== Here it says domain: 'location' that sounds for me not correct, shouldn't it be voip.mydomain.com ??
It is ok, actually the 'location' is the name of the table (the name of the field is a bit misleading).The sip domain should be visible in aor, but you didn't use 'use_domain' parameter, so it is ignored.
I use than a hard phone and set it up, but it cannot log on, ... I also do not see anything happen, when I use openserctl moni
What have I done wrong?
You can watch the network traffic while trying to register, there could be something misconfigured. Use: 'ngrep -qt port 5060' on your sip server and send the output to me to be able to give you more hints.
Cheers, Daniel
BTW, I checked with serweb, and the user 800000 can login!
Daniel-Constantin Mierla wrote:
On 10/17/05 19:55, Ronald Wiplinger wrote:
Daniel-Constantin Mierla wrote:
Hello,
the appropriate mailing list for questions related to openser is users@openser.org (http://openser.org/cgi-bin/mailman/listinfo/users).
Thanks for pointing out that.
I found a part of my problem, but I cannot explain it. The phone (hard phone as well as a softphone) have been set to connect to port 5062, but I see the registration still on 5060, where Asterisk is running (on the same machine). The user 800000 has no account on Asterisk, therefore the login fails there.
Any idea where this could come from?
maybe there is a special field to set for registrar address in phone's configuration, or the phone is broken. What kind of phones have you tried?
That was exactly my first thought too. I use a noname SIP phone, and than I used firefly. The exaclty same behaviour.
Is there any command line utility to test that?
bye
Ronald Wiplinger
Cheers, Daniel
bye
Ronald Wiplinger
Please see my comments inline.
On 10/17/05 11:44, Ronald Wiplinger wrote:
(It is my first try, .... I am sure I make something wrong)
I have installed openser and it is now running for a while, ... today I have added two users by:
export SIP_DOMAIN=voip.mydomain.com openserctl add 800000 secret0 me@mydomain.com openserctl add 800001 secret1 me@mydomain.com
first test:
openserctl ul show Dumping all contacts may take long: are you sure you want to proceed? [Y|N] y ===Domain list=== ---Domain--- name : 'aliases' size : 512 table: 0x2a96f6d120 d_ll { n : 0 first: (nil) last : (nil) } ---/Domain--- ---Domain--- name : 'location' size : 512 table: 0x2a96f68f38 d_ll { n : 1 first: 0x2a96f71180 last : 0x2a96f71180 }
...Record(0x2a96f71180)... domain: 'location' aor : 'admin'
domain : 'location' aor : 'admin' Contact : 'sip:601@vpbx.elmit.com' Expires : Permanent q : 1 Call-ID : 'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything' CSeq : 42 User-Agent: 'SIP Express Router FIFO' received : '' State : CS_SYNC Flags : 128 Sock : none (null) next : (nil) prev : (nil) ~~~/Contact~~~~ .../Record... ---/Domain--- ===/Domain list=== Here it says domain: 'location' that sounds for me not correct, shouldn't it be voip.mydomain.com ??
It is ok, actually the 'location' is the name of the table (the name of the field is a bit misleading).The sip domain should be visible in aor, but you didn't use 'use_domain' parameter, so it is ignored.
I use than a hard phone and set it up, but it cannot log on, ... I also do not see anything happen, when I use openserctl moni
What have I done wrong?
You can watch the network traffic while trying to register, there could be something misconfigured. Use: 'ngrep -qt port 5060' on your sip server and send the output to me to be able to give you more hints.
Cheers, Daniel
BTW, I checked with serweb, and the user 800000 can login!
On 10/17/05 20:31, Ronald Wiplinger wrote:
Daniel-Constantin Mierla wrote:
On 10/17/05 19:55, Ronald Wiplinger wrote:
Daniel-Constantin Mierla wrote:
Hello,
the appropriate mailing list for questions related to openser is users@openser.org (http://openser.org/cgi-bin/mailman/listinfo/users).
Thanks for pointing out that.
I found a part of my problem, but I cannot explain it. The phone (hard phone as well as a softphone) have been set to connect to port 5062, but I see the registration still on 5060, where Asterisk is running (on the same machine). The user 800000 has no account on Asterisk, therefore the login fails there.
Any idea where this could come from?
maybe there is a special field to set for registrar address in phone's configuration, or the phone is broken. What kind of phones have you tried?
That was exactly my first thought too. I use a noname SIP phone, and than I used firefly. The exaclty same behaviour.
never used firefly.
Is there any command line utility to test that?
if you want tot test if the registration works, then you can use sipsak, from http://sipsak.org, it is a tiny command line utility. Otherwise, you can try some free sip soft phones: kphone, minisip, xten xlite.
Daniel
bye
Ronald Wiplinger
Cheers, Daniel
bye
Ronald Wiplinger
Please see my comments inline.
On 10/17/05 11:44, Ronald Wiplinger wrote:
(It is my first try, .... I am sure I make something wrong)
I have installed openser and it is now running for a while, ... today I have added two users by:
export SIP_DOMAIN=voip.mydomain.com openserctl add 800000 secret0 me@mydomain.com openserctl add 800001 secret1 me@mydomain.com
first test:
openserctl ul show Dumping all contacts may take long: are you sure you want to proceed? [Y|N] y ===Domain list=== ---Domain--- name : 'aliases' size : 512 table: 0x2a96f6d120 d_ll { n : 0 first: (nil) last : (nil) } ---/Domain--- ---Domain--- name : 'location' size : 512 table: 0x2a96f68f38 d_ll { n : 1 first: 0x2a96f71180 last : 0x2a96f71180 }
...Record(0x2a96f71180)... domain: 'location' aor : 'admin'
domain : 'location' aor : 'admin' Contact : 'sip:601@vpbx.elmit.com' Expires : Permanent q : 1 Call-ID : 'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything' CSeq : 42 User-Agent: 'SIP Express Router FIFO' received : '' State : CS_SYNC Flags : 128 Sock : none (null) next : (nil) prev : (nil) ~~~/Contact~~~~ .../Record... ---/Domain--- ===/Domain list=== Here it says domain: 'location' that sounds for me not correct, shouldn't it be voip.mydomain.com ??
It is ok, actually the 'location' is the name of the table (the name of the field is a bit misleading).The sip domain should be visible in aor, but you didn't use 'use_domain' parameter, so it is ignored.
I use than a hard phone and set it up, but it cannot log on, ... I also do not see anything happen, when I use openserctl moni
What have I done wrong?
You can watch the network traffic while trying to register, there could be something misconfigured. Use: 'ngrep -qt port 5060' on your sip server and send the output to me to be able to give you more hints.
Cheers, Daniel
BTW, I checked with serweb, and the user 800000 can login!
Daniel-Constantin Mierla wrote:
I found a part of my problem, but I cannot explain it. The phone (hard phone as well as a softphone) have been set to connect to port 5062, but I see the registration still on 5060, where Asterisk is running (on the same machine). The user 800000 has no account on Asterisk, therefore the login fails there.
Any idea where this could come from?
maybe there is a special field to set for registrar address in phone's configuration, or the phone is broken. What kind of phones have you tried?
That was exactly my first thought too. I use a noname SIP phone, and than I used firefly. The exaclty same behaviour.
never used firefly.
Is there any command line utility to test that?
if you want tot test if the registration works, then you can use sipsak, from http://sipsak.org, it is a tiny command line utility. Otherwise, you can try some free sip soft phones: kphone, minisip, xten xlite.
I tried Xlite and it is exactly the same, ... I set the sip registration port to 5062 and it still registers in Asterisk, ... I tried to use instead of the domain name the IP address, but it is the same. I thought already on the possibility that the DNS SRV entry redirects all to 5060, but that would not be anymore true, when I used the IP address, ....
grep -v ^[#,$] openser.cfg
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) port=5062 fifo="/tmp/openser_fifo" fifo_mode=0666
loadmodule "/usr/local/lib/openser/modules/mysql.so" loadmodule "/usr/local/lib/openser/modules/sl.so" loadmodule "/usr/local/lib/openser/modules/tm.so" loadmodule "/usr/local/lib/openser/modules/rr.so" loadmodule "/usr/local/lib/openser/modules/maxfwd.so" loadmodule "/usr/local/lib/openser/modules/usrloc.so" loadmodule "/usr/local/lib/openser/modules/registrar.so" loadmodule "/usr/local/lib/openser/modules/textops.so" loadmodule "/usr/local/lib/openser/modules/auth.so" loadmodule "/usr/local/lib/openser/modules/auth_db.so"
modparam("usrloc", "db_mode", 0) modparam("usrloc", "db_mode", 2) modparam("auth_db", "calculate_ha1", yes) modparam("rr", "enable_full_lr", 1)
route{
# initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); return; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); return; };
# we record-route all messages -- to make sure that # subsequent messages will go through our proxy; that's # particularly good if upstream and downstream entities # use different transport protocol if (!method=="REGISTER") record_route();
# subsequent messages withing a dialog should take the # path determined by record-routing if (loose_route()) { # mark routing logic in request append_hf("P-hint: rr-enforced\r\n"); route(1); return; };
if (!uri==myself) { # mark routing logic in request append_hf("P-hint: outbound\r\n"); route(1); return; };
# if the request is for other domain use UsrLoc # (in case, it does not work, use the following command # with proper names and addresses in it) if (uri==myself) {
if (method=="REGISTER") {
if (!www_authorize("vpbx.mydomain.com", "subscriber")) { www_challenge("vpbx.mydomain.com", "0"); return; };
save("location"); return; };
lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1); return; };
# native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); return; }; }; append_hf("P-hint: usrloc applied\r\n"); route(1); }
route[1] { # send it out now; use stateful forwarding as it works reliably # even for UDP2TCP if (!t_relay()) { sl_reply_error(); }; }
Daniel-Constantin Mierla wrote:
I found a part of my problem, but I cannot explain it. The phone (hard phone as well as a softphone) have been set to connect to port 5062, but I see the registration still on 5060, where Asterisk is running (on the same machine). The user 800000 has no account on Asterisk, therefore the login fails there.
Any idea where this could come from?
Is there any command line utility to test that?
if you want tot test if the registration works, then you can use sipsak, from http://sipsak.org, it is a tiny command line utility. Otherwise, you can try some free sip soft phones: kphone, minisip, xten xlite.
Daniel
I still cannot figure out why, but made some tests with sipsak:
C:\Documents and Settings\user\My Documents\sipsak>sipsak-0.8.8.exe -U -C sip:80 0000@vpbx.mydomain.com -a rest000 -s sip:800000@vpbx.mydomain.com:5062 -Hvpbx.mydomain.co m warning: redirects are not expected in USRLOC. disableing
request: REGISTER sip:vpbx.mydomain.com:5062 SIP/2.0 Authorization: Digest username="800000", uri="sip:vpbx.mydomain.com:5062", algorith m=MD5, realm="vpbx.mydomain.com", nonce="4354525eec722530fcf93cc072bd0cceadcc910a", response="216938bf826727f4c0e57988719afcab" Via: SIP/2.0/UDP vpbx.mydomain.com:3015;rport From: sip:800000@vpbx.mydomain.com:5062 To: sip:800000@vpbx.mydomain.com:5062 Call-ID: 888716709@vpbx.mydomain.com CSeq: 2 REGISTER Contact: sip:800000@vpbx.mydomain.com Expires: 15 Content-Length: 0 Max-Forwards: 70 User-Agent: sipsak 0.8.9_pre
response: SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP vpbx.mydomain.com:3015;rport=3015;received=192.168.250.108 From: sip:800000@vpbx.mydomain.com:5062 To: sip:800000@vpbx.mydomain.com:5062;tag=2560d490c3265ff35995c6bbde62a7c3.ff7e Call-ID: 888716709@vpbx.mydomain.com CSeq: 2 REGISTER WWW-Authenticate: Digest realm="vpbx.mydomain.com", nonce="4354525eec722530fcf93cc0 72bd0cceadcc910a" Server: OpenSer (1.0.0-pre0 (x86_64/linux)) Content-Length: 0 Warning: 392 192.168.250.20:5062 "Noisy feedback tells: pid=10927 req_src_ip=19 2.168.250.108 req_src_port=3015 in_uri=sip:vpbx.mydomain.com:5062 out_uri=sip:vpbx. mydomain.com:5062 via_cnt==1"
error: authorization failed request already contains (Proxy-) Authorization, but received 40[1|7], se e above
At this test above, no registration attempt was noticed at Asterisk, ...
bye
Ronald Wiplinger