Summary: | ASTERISK-02753: SIP REGISTER ignores 'authuser' setting | ||
Reporter: | benjk (benjk) | Labels: | |
Date Opened: | 2004-11-06 18:46:11.000-0600 | Date Closed: | 2008-01-15 15:12:48.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | when registering with a remote SIP registrar using different username and authuser, ie ... register => fred:blah:1234@sipservice.com the resulting authorization digest will contain 'fred' in the username field and not '1234'. It appears that Asterisk ignores the authuser parameter (1234) entirely. ****** ADDITIONAL INFORMATION ****** Example follows: /etc/asterisk/sip.conf ... register => DUDEDUDE:blah:05012345678@ispvoip-9999.ocn.ne.jp/05012345678 Asterisk console SIP debug session transcript ... REGISTER sip:ispvoip-9999.ocn.ne.jp SIP/2.0 Via: SIP/2.0/UDP 1.2.3.4:5060;branch=z9hG4bK6920ea27 From: <sip:05012345678@ispvoip-9999.ocn.ne.jp>;tag=as040e1159 To: <sip:05012345678@ispvoip-9999.ocn.ne.jp> Call-ID: 999999999999999999999999999999@1.2.3.4 CSeq: 961 REGISTER Authorization: Digest username="05012345678", realm="ocn.ne.jp", algorithm="MD5", uri="sip:210.9.9.9", nonce="1099640598", response="a9d877017f24bb624cdc1a39a8a73b4c", opaque="" Expires: 120 Contact: <sip:05099999999@1.2.3.4> Event: registration Instead, the digest should look like this ... Authorization: Digest username="DUDEDUDE", realm="ocn.ne.jp", algorithm="MD5", uri="sip:210.9.9.9", nonce="1099640598", response="a9d877017f24bb624cdc1a39a8a73b4c", opaque="" ... while the From and To fields should remain 05012345678 | ||
Comments: | By: Mark Spencer (markster) 2004-11-06 19:17:51.000-0600 Fixed in CVS, but you have the fields backwards. By: Russell Bryant (russell) 2004-11-07 18:22:06.000-0600 fixed in 1.0 - will be in 1.0.3 By: Digium Subversion (svnbot) 2008-01-15 15:12:42.000-0600 Repository: asterisk Revision: 4169 U trunk/channels/chan_sip.c ------------------------------------------------------------------------ r4169 | markster | 2008-01-15 15:12:42 -0600 (Tue, 15 Jan 2008) | 2 lines Setup fromuser properly (bug ASTERISK-2753) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=4169 By: Digium Subversion (svnbot) 2008-01-15 15:12:48.000-0600 Repository: asterisk Revision: 4176 U branches/v1-0/channels/chan_sip.c ------------------------------------------------------------------------ r4176 | russell | 2008-01-15 15:12:48 -0600 (Tue, 15 Jan 2008) | 2 lines Setup fromuser properly (bug ASTERISK-2753) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=4176 |