[Freeswitch-users] SIP Authentication

Ali Al-Rubaie kerrada2003 at yahoo.com
Wed Feb 4 08:17:12 PST 2009


Hi,

I have a problem in SIP registration (authentication) with FreeSWITCH server. The SIP messages are:





recv 292 bytes from udp/[209.82.10.250]:3458 at
16:35:24.758862:

  
------------------------------------------------------------------------

   REGISTER
sip:209.82.10.235 SIP/2.0

   Via: SIP/2.0/UDP
209.82.10.250:1059

   From:
sip:1001 at 209.82.10.235

   To:
sip:1001 at 209.82.10.235

   Contact:
sip:1001 at 209.82.10.250:1059

   Call-ID:
fc383368-e3e0-4c32-b87b-c3127d0cc2d8 at 192.168.10.23

   CSeq: 597775306
REGISTER

   Content-Length: 0

   Expires: 3600

 

  
------------------------------------------------------------------------

send 582 bytes to udp/[209.82.10.250]:1059 at
16:35:24.763948:

  
------------------------------------------------------------------------

   SIP/2.0 401
Unauthorized

   Via: SIP/2.0/UDP
209.82.10.250:1059

   From:
sip:1001 at 209.82.10.235

   To:
<sip:1001 at 209.82.10.235>;tag=7yam2F01ZH3vH

   Call-ID:
fc383368-e3e0-4c32-b87b-c3127d0cc2d8 at 192.168.10.23

   CSeq: 597775306
REGISTER

   User-Agent:
FreeSWITCH-mod_sofia/1.0.2-hacked

   Allow: INVITE, ACK,
BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE,
REGISTER, INFO, PUBLISH

   Supported: timer,
precondition, path, replaces

   WWW-Authenticate:
Digest realm="209.82.10.235",
nonce="40b63193-85c2-4ed9-874e-c03f81be313d", algorithm=MD5,
qop="auth"

   Content-Length: 0

 

   ------------------------------------------------------------------------

recv 466 bytes from udp/[209.82.10.250]:3458 at
16:35:24.772834:

  
------------------------------------------------------------------------

   REGISTER
sip:209.82.10.235 SIP/2.0

   Via: SIP/2.0/UDP
209.82.10.250:1059

   From:
sip:1001 at 209.82.10.235

   To:
sip:1001 at 209.82.10.235

   Contact:
sip:1001 at 209.82.10.250:1059

   Call-ID:
fc383368-e3e0-4c32-b87b-c3127d0cc2d8 at 192.168.10.23

   CSeq: 597775307
REGISTER

   Content-Length: 0

   Expires: 3600

   Authorization:
Digest
username="1001",realm="209.82.10.235",nonce="40b63193-85c2-4ed9-874e-c03f81be313d",response="eebe0ea43319e82cc5f6dba5877de706",uri="sip:209.82.10.235"

 

  
------------------------------------------------------------------------

send 458 bytes to udp/[209.82.10.250]:1059 at
16:35:24.774354:

  
------------------------------------------------------------------------

   SIP/2.0 403
Forbidden

   Via: SIP/2.0/UDP
209.82.10.250:1059

   From:
sip:1001 at 209.82.10.235

   To:
<sip:1001 at 209.82.10.235>;tag=873c4aH5vtSFD

   Call-ID:
fc383368-e3e0-4c32-b87b-c3127d0cc2d8 at 192.168.10.23

   CSeq: 597775307
REGISTER

   User-Agent:
FreeSWITCH-mod_sofia/1.0.2-hacked

   Allow: INVITE, ACK,
BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE,
REGISTER, INFO, PUBLISH

   Supported: timer,
precondition, path, replaces

   Content-Length: 0

 

  
------------------------------------------------------------------------

What I have noted is that the client does not send the values for "cnonce" and "nc" in the response. I'm not sure if this is the reason, however how this problem can be solved?

Thanks,

Ali




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090204/1b23e643/attachment-0002.html 


More information about the FreeSWITCH-users mailing list