Summary: | ASTERISK-12603: Outgoing Proxy on SIP Register | ||
Reporter: | Farrukh Ahmed (f4fahmed) | Labels: | |
Date Opened: | 2008-08-17 12:56:29 | Date Closed: | 2008-12-09 07:54:05.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_sip/Registration |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) sip.conf ( 1) wateen.pcap | |
Description: | From docs i have read that i can use authuser as well "register => user[:secret[:authuser]]@host[:port][/extension]" but when i tried tihs syntax i failed to register at my sip provider, so i traced the messages sent out and found that "host" is used in SIP-uri (and not "REGISTER sip:authuser SIP/2.0") and that "user at authuser" is used when authenticating (and not "Authorization: Digest username="user", realm="authuser"") and it gives me Forbidden. However same username and password is working fine with X-Lite, X-Pro, eyeBeam and Bria. ****** ADDITIONAL INFORMATION ****** Debug Output from File ---------------------- Reliably Transmitting (NAT) to 58.27.240.22:9060: OPTIONS sip:wateen.net:9060 SIP/2.0 Via: SIP/2.0/UDP 72.232.47.74:9060;branch=z9hG4bK288ac569;rport From: "asterisk" <sip:asterisk@72.232.47.74:9060>;tag=as2181968b To: <sip:wateen.net:9060> Contact: <sip:asterisk@72.232.47.74:9060> Call-ID: 5f7b27d22972f9a859257a4f27e61dcd@72.232.47.74 CSeq: 102 OPTIONS User-Agent: X-PRO build 1101 Max-Forwards: 70 Date: Sun, 17 Aug 2008 16:14:54 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Content-Length: 0 --- [Aug 17 11:14:54] NOTICE[10249]: chan_sip.c:7487 sip_reregister: -- Re-registration for 0218000342@58.27.240.22 REGISTER 12 headers, 0 lines REGISTER attempt 1 to 0218000342@58.27.240.22 Reliably Transmitting (no NAT) to 58.27.240.22:9060: REGISTER sip:58.27.240.22:9060 SIP/2.0 Via: SIP/2.0/UDP 72.232.47.74:9060;branch=z9hG4bK6ae935a8;rport From: <sip:0218000342@58.27.240.22>;tag=as51535433 To: <sip:0218000342@58.27.240.22> Call-ID: 465673782abb73b018f7430f265b96be@72.232.47.74 CSeq: 102 REGISTER User-Agent: X-PRO build 1101 Max-Forwards: 70 Expires: 120 Contact: <sip:s@72.232.47.74:9060> Event: registration Content-Length: 0 --- vpn*CLI> <--- SIP read from 58.27.240.22:9060 ---> SIP/2.0 403 Forbidden Via: SIP/2.0/UDP 72.232.47.74:9060;received=72.232.47.74;branch=z9hG4bK288ac569;rport=9060 From: "asterisk" <sip:asterisk@72.232.47.74:9060>;tag=as2181968b To: <sip:wateen.net:9060>;tag=aprqngfrt-a46co920000c6 Call-ID: 5f7b27d22972f9a859257a4f27e61dcd@72.232.47.74 CSeq: 102 OPTIONS <-------------> --- (6 headers 0 lines) --- Really destroying SIP dialog '5f7b27d22972f9a859257a4f27e61dcd@72.232.47.74' Method: OPTIONS <--- SIP read from 58.27.240.22:9060 ---> SIP/2.0 403 Forbidden Via: SIP/2.0/UDP 72.232.47.74:9060;received=72.232.47.74;branch=z9hG4bK6ae935a8;rport=9060 From: <sip:0218000342@58.27.240.22>;tag=as51535433 To: <sip:0218000342@58.27.240.22>;tag=SD9duqb99- Call-ID: 465673782abb73b018f7430f265b96be@72.232.47.74 CSeq: 102 REGISTER Date: Sun, 17 Aug 2008 18:03:19 GMT l: 0 User-Agent: Motorola-IMS/3.1 803240959 Warning: 399 CS Domain not allowed <-------------> --- (10 headers 0 lines) --- [Aug 17 11:14:55] WARNING[10249]: chan_sip.c:12530 handle_response_register: Forbidden - wrong password on authentication for REGISTER for '0218000342' to '58.27.240.22' Really destroying SIP dialog '465673782abb73b018f7430f265b96be@72.232.47.74' Method: REGISTER SIP Configuration File ---------------------- [general] context=default allowoverlap=no realm=wateen.net bindport=9060 bindaddr=0.0.0.0 dumphistory=yes srvlookup=no domain=wateen.net useragent=X-PRO build 1101 usereqphone=yes register => 0218000342:PWDXXXXXXXX:0218000342@wateen.net@58.27.240.22:9060 [authentication] [0218000342] type=friend username=0218000342 fromuser=0218000342@wateen.net secret=PWDXXXXXXXX host=wateen.net domain=wateen.com outboundproxy=58.27.240.22 outboundproxyport=9060 canreinvite=no nat=yes context=default callerid="" <0218000342> qualify=yes port=9060 | ||
Comments: | By: Farrukh Ahmed (f4fahmed) 2008-08-17 13:05:13 I can provide working password through email. For reference take a look into this: http://lists.digium.com/pipermail/asterisk-dev/2004-August/005876.html By: Olle Johansson (oej) 2008-08-18 01:23:27 register => 0218000342:PWDXXXXXXXX:0218000342@wateen.net@58.27.240.22:9060 this syntax doesn't comply with the syntax you referred to above. You have two "@" signs. By: Farrukh Ahmed (f4fahmed) 2008-08-18 01:39:13 but my provider required 0218000342@wateen.net as authuser. By: Farrukh Ahmed (f4fahmed) 2008-09-02 21:29:16 oej, can you let me know when it will be fixed ? thank you By: Leif Madsen (lmadsen) 2008-12-09 07:54:05.000-0600 Closing this issue as a duplicate of 13783, so please continue to monitor the situation there. Thanks! |