I changed it to 8 now, but here is the same result.
------------------------------------------------------------------------
send 617 bytes to udp/[78.23.93.41]:5091 at 23:07:22.171723:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 78.23.93.41:5091;rport=5091;branch=z9hG4bK2049216478
From: "1002" <sip:1002@78.23.93.41>;tag=2049216478
To: <sip:1002@78.23.93.41>;tag=33S6BNFXatree
Call-ID: @78.23.93.41
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="e6942c46-0c8d-11e0-a946-13f4f379a0fc", algorithm=MD5, qop="auth"
Content-Length: 0
------------------------------------------------------------------------
recv 545 bytes from udp/[78.23.93.41]:5091 at 23:07:22.184403:
------------------------------------------------------------------------
REGISTER sip:78.23.93.41 SIP/2.0
Via: SIP/2.0/UDP 78.23.93.41:5091;rport;branch=z9hG4bK2049216478
To: <sip:1002@78.23.93.41>
From: "1002" <sip:1002@78.23.93.41>;tag=2049216478
Call-ID: @78.23.93.41
CSeq: 402 REGISTER
Contact: <sip:1002@78.23.93.41:5091>;expires=3600
Authorization: Digest username="1002", realm="78.23.93.41", nonce="e6942c46-0c8d-11e0-a946-13f4f379a0fc", uri="sip:78.23.93.41", response="294b6b91485aaa66e917c1378736267b", qop="auth", algorithm="MD5", cnonce="", nc="00000001"
User-agent: portsip
Content-Length: 0
------------------------------------------------------------------------
2010-12-21 00:07:22.394599 [WARNING] sofia_reg.c:1088 SIP auth failure (REGISTER) on sofia profile 'internal' for [1002@78.23.93.41] from ip 78.23.93.41
send 495 bytes to udp/[78.23.93.41]:5091 at 23:07:22.396247:
------------------------------------------------------------------------
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 78.23.93.41:5091;rport=5091;branch=z9hG4bK2049216478
From: "1002" <sip:1002@78.23.93.41>;tag=2049216478
To: <sip:1002@78.23.93.41>;tag=4cKZDg0072e1S
Call-ID: @78.23.93.41
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
Well, I don't claim to be a genius in these sorts of things but I don't know if your nonce count field is correct. IIRC it needs to be 8 characters long and yours appears to be 9 characters long. Check your app to make sure it uses a proper nc="00000001" and see what happens.-MCOn Mon, Dec 20, 2010 at 2:47 PM, Shamun toha md <shamun.toha@gmail.com> wrote:
_______________________________________________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@78.23.93.41>;tag=2049230244
To: <sip:1002@78.23.93.41>
Call-ID: @localhost
CSeq: 400 REGISTER
Contact: <sip:1002@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@78.23.93.41>;tag=2049230244
To: <sip:1002@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@78.23.93.41>
From: "1002" <sip:1002@78.23.93.41>;tag=2049230244
Call-ID: @localhost
CSeq: 402 REGISTER
Contact: <sip:1002@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@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@78.23.93.41>;tag=2049230244
To: <sip:1002@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@78.23.93.41:5060 SIP/2.0
Via: SIP/2.0/UDP null:5091;rport;branch=z9hG4bK2049258514
From: 1002 <sip:1002@78.23.93.41:5060>;tag=2049258514
To: <sip:1002@78.23.93.41:5060>;tag=tag=ypUa3DUBSD9gm
Call-ID: 58514@localhost
CSeq: 0 ACK
Content-Length: 0
------------------------------------------------------------------------
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org