[Users] Re: [Serusers] no login to openser

Ronald Wiplinger ronald at elmit.com
Tue Oct 18 03:44:28 CEST 2005


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 at vpbx.mydomain.com -a rest000 -s sip:800000 at 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 at vpbx.mydomain.com:5062>
To: <sip:800000 at vpbx.mydomain.com:5062>
Call-ID: 888716709 at vpbx.mydomain.com
CSeq: 2 REGISTER
Contact: sip:800000 at 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 at vpbx.mydomain.com:5062>
To: 
<sip:800000 at vpbx.mydomain.com:5062>;tag=2560d490c3265ff35995c6bbde62a7c3.ff7e
Call-ID: 888716709 at 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







More information about the sr-users mailing list