[Freeswitch-users] My sip client program gets fail to login

Shamun toha md shamun.toha at gmail.com
Tue Dec 21 01:47:06 MSK 2010


I was writing a small application i never get it working with FreeSwitch sip
login. This is my packets switching i get always auth fail. What is there
missing ?


recv 407 bytes from udp/[78.23.93.41]:5091 at 22:42:15.817398:
   ------------------------------------------------------------------------
   REGISTER sip:78.23.93.41 SIP/2.0
   Via: SIP/2.0/UDP localhost:5091;rport;branch=z9hG4bK2049230244
   Max-forwards: 70
   From: "1002" <sip:1002 at 78.23.93.41 <sip%3A1002 at 78.23.93.41>
>;tag=2049230244
   To: <sip:1002 at 78.23.93.41 <sip%3A1002 at 78.23.93.41>>
   Call-ID: @localhost
   CSeq: 400 REGISTER
   Contact: <sip:1002 at localhost:5091>;expires=3600
   Allow:
INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE
   User-agent: test
   Content-Length: 0

   ------------------------------------------------------------------------
send 634 bytes to udp/[78.23.93.41]:5091 at 22:42:16.072075:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP
localhost:5091;rport=5091;branch=z9hG4bK2049230244;received=78.23.93.41
   From: "1002" <sip:1002 at 78.23.93.41 <sip%3A1002 at 78.23.93.41>
>;tag=2049230244
   To: <sip:1002 at 78.23.93.41 <sip%3A1002 at 78.23.93.41>>;tag=XD2H1ja8U4jyr
   Call-ID: @localhost
   CSeq: 400 REGISTER
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-828960a 2010-09-25 12-51-42
-0500
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
   Supported: timer, precondition, path, replaces
   WWW-Authenticate: Digest realm="78.23.93.41",
nonce="64da83a6-0c8a-11e0-a943-13f4f379a0fc", algorithm=MD5, qop="auth"
   Content-Length: 0

   ------------------------------------------------------------------------
recv 540 bytes from udp/[78.23.93.41]:5091 at 22:42:16.091547:
   ------------------------------------------------------------------------
   REGISTER sip:78.23.93.41 SIP/2.0
   Via: SIP/2.0/UDP localhost:5091;rport;branch=z9hG4bK2049230244
   To: <sip:1002 at 78.23.93.41 <sip%3A1002 at 78.23.93.41>>
   From: "1002" <sip:1002 at 78.23.93.41 <sip%3A1002 at 78.23.93.41>
>;tag=2049230244
   Call-ID: @localhost
   CSeq: 402 REGISTER
   Contact: <sip:1002 at localhost:5091>;expires=3600
   Authorization: Digest username="1002", realm="78.23.93.41",
nonce="64da83a6-0c8a-11e0-a943-13f4f379a0fc", uri="sip:78.23.93.41",
response="e747a46dbb1169661e9435773921cff5", qop="auth", algorithm="MD5",
cnonce="", nc="000000001"
   User-agent: test
   Content-Length: 0

   ------------------------------------------------------------------------
2010-12-20 23:42:16.328313 [WARNING] sofia_reg.c:1088 SIP auth failure
(REGISTER) on sofia profile 'internal' for [1002 at 78.23.93.41] from ip
78.23.93.41
send 512 bytes to udp/[78.23.93.41]:5091 at 22:42:16.330038:
   ------------------------------------------------------------------------
   SIP/2.0 403 Forbidden
   Via: SIP/2.0/UDP
localhost:5091;rport=5091;branch=z9hG4bK2049230244;received=78.23.93.41
   From: "1002" <sip:1002 at 78.23.93.41 <sip%3A1002 at 78.23.93.41>
>;tag=2049230244
   To: <sip:1002 at 78.23.93.41 <sip%3A1002 at 78.23.93.41>>;tag=ypUa3DUBSD9gm
   Call-ID: @localhost
   CSeq: 402 REGISTER
   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-828960a 2010-09-25 12-51-42
-0500
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
   Supported: timer, precondition, path, replaces
   Content-Length: 0

   ------------------------------------------------------------------------
recv 268 bytes from udp/[78.23.93.41]:5091 at 22:42:16.334712:
   ------------------------------------------------------------------------
   ACK sip:1002 at 78.23.93.41:5060 SIP/2.0
   Via: SIP/2.0/UDP null:5091;rport;branch=z9hG4bK2049258514
   From: 1002 <sip:1002 at 78.23.93.41:5060>;tag=2049258514
   To: <sip:1002 at 78.23.93.41:5060>;tag=tag=ypUa3DUBSD9gm
   Call-ID: 58514 at localhost
   CSeq: 0 ACK
   Content-Length: 0

   ------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101220/4f1729b6/attachment.html 


More information about the FreeSWITCH-users mailing list