[asterisk-users] 401 Unauthorized with Snom but not with Zoiper softphone

Jonas Kellens jonas.kellens at telenet.be
Fri Oct 8 03:26:55 CDT 2010


Hello,

there is a really great difference in the Via-header of the 
REGISTER-message between the Zoiper and the Snom.
Also the Zoiper has a Contact-header, and the Snom REGISTER has not...

Snom :

REGISTER sip:sip.domain.tld SIP/2.0
_*Via: SIP/2.0/UDP 192.168.114.200:2049;branch=z9hG4bK-p4ayhthezdr6;rport*_
From: <sip:test3 at sip.domain.tld>;tag=d85nzjmkpk
To: <sip:test3 at sip.domain.tld>
Call-ID: 3c26701f88d8-6i37fwkca22u
CSeq: 9 REGISTER
Max-Forwards: 70
Contact: 
<sip:test3 at 192.168.114.200:2049;line=c38yvjnm>;reg-id=1;q=1.0;+sip.instance="<urn:uuid:0c5bc641-5821-4562-a514-f9e81d97c118>";audio;mobility="fixed";duplex="full";description="snom320";actor="principal";events="dialog";methods="INVITE,ACK,CANCEL,BYE,REFER,OPTIONS,NOTIFY,SUBSCRIBE,PRACK,MESSAGE,INFO"
User-Agent: snom320/8.4.18
Allow-Events: dialog
X-Real-IP: 192.168.114.200
Supported: path, gruu
Expires: 3600
Content-Length: 0


SIP/2.0 401 Unauthorized
_*Via: SIP/2.0/UDP 
192.168.114.200:2049;branch=z9hG4bK-p4ayhthezdr6;received=public_ip;rport=64646*_
From: <sip:test3 at sip.domain.tld>;tag=d85nzjmkpk
To: <sip:test3 at sip.domain.tld>;tag=as21294ace
Call-ID: 3c26701f88d8-6i37fwkca22u
CSeq: 9 REGISTER
Server: Asterisk PBX 1.6.2.10
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="domain.tld", nonce="120e4f10"
Content-Length: 0


Zoiper :

REGISTER sip:sip.domain.tld;transport=UDP SIP/2.0
_*Via: SIP/2.0/UDP 
public_ip:59096;branch=z9hG4bK-d8754z-83ebdbc32d0fb2e0-1---d8754z-;rport*_
Max-Forwards: 70
_*Contact: 
<sip:test3 at public_ip:59096;rinstance=d6dc257201b6ffa2;transport=UDP>*_
To: <sip:test3 at sip.domain.tld;transport=UDP>
From: <sip:test3 at sip.domain.tld;transport=UDP>;tag=5a50ca11
Call-ID: NjY2MmY3NjRkNDRlOWJhOGQ2NzgyNzg4Y2M5ZGFlZjE.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, 
SUBSCRIBE
User-Agent: Zoiper rev.7797
Allow-Events: presence, kpml
Content-Length: 0


SIP/2.0 401 Unauthorized
_*Via: SIP/2.0/UDP 
public_ip:59096;branch=z9hG4bK-d8754z-83ebdbc32d0fb2e0-1---d8754z-;received=public_ip;rport=59095*_
From: <sip:test3 at sip.domain.tld;transport=UDP>;tag=5a50ca11
To: <sip:test3 at sip.domain.tld;transport=UDP>;tag=as1640cd46
Call-ID: NjY2MmY3NjRkNDRlOWJhOGQ2NzgyNzg4Y2M5ZGFlZjE.
CSeq: 1 REGISTER
Server: Asterisk PBX 1.6.2.10
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="domain.tld", nonce="08277195"
Content-Length: 0


Is that why Asterisk is not able to send the 401 or the 200 ??

Anyone knows if there is a special setting in the Snom 320 or Asterisk 
itself to overcome this issue ?!


Jonas.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101008/4ca45e78/attachment.htm 


More information about the asterisk-users mailing list