Michelle Dupuis
2007-May-04 13:28 UTC
[asterisk-users] Asterisk registration SIP confusion. Can someone explain this?
We have an Asterisk v1.2.16 box registering with an ITSP using SIP. The registration succeeds, and is confirmed with SIP SHOW REGISTER. However, we frequently (every few minutes) see this on our console: REGISTER attempt 1 to 999@pbx.itsp.com REGISTER attempt 2 to 999@pbx.itsp.com Any ideas what is going on? In particular 1. What causes the two register attempt messages above? 2. Why is our asterisk box being associated with the "entryunauthorized" context, not the "entryinternal" context? (See below) 3. Why is the contact "<sip:s@123.183.86.231:5060>" in our SIP messages, why s@ anything? Thanks MD ------------------------------------------ Contents of sip.conf at ITSP: [999] context=entryinternal ; I know this context exists! This is the right context. type=friend username=999 secret=1111 callerid="Test" <999> host=dynamic nat=no canreinvite=no allow=ulaw allow=alaw dtmfmode=rfc2833 ------------------------------------------- Console log from ITSP show strange SIP traffic: --- Scheduling destruction of call <mailto:'3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1'> '3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1' in 15000 ms pbx*CLI> pbx*CLI> <-- SIP read from 123.183.86.231:5060: REGISTER sip:pbx.itsp.com SIP/2.0 Via: SIP/2.0/UDP 123.183.86.231:5060;branch=z9hG4bK1a8cee82;rport From: <sip:999@pbx.itsp.com>;tag=as3218ff14 To: <sip:999@pbx.itsp.com> Call-ID: <mailto:3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1> 3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1 CSeq: 103 REGISTER User-Agent: Asterisk PBX Max-Forwards: 70 Authorization: Digest username="999", realm="pbx.itsp.com", algorithm=MD5, uri="sip:pbx.itsp.com", nonce="5cec66c0", response="6451967016fc38f896efeb7247523fe1", opaque="" Expires: 120 Contact: <sip:s@123.183.86.231:5060> Event: registration Content-Length: 0 --- (13 headers 0 lines) --- Using latest REGISTER request as basis request Sending to 123.183.86.231 : 5060 (NAT) Transmitting (no NAT) to 123.183.86.231:5060: SIP/2.0 100 Trying Via: SIP/2.0/UDP 123.183.86.231:5060;branch=z9hG4bK1a8cee82;received=123.183.86.231;rport=506 0 From: <sip:999@pbx.itsp.com>;tag=as3218ff14 To: <sip:999@pbx.itsp.com> Call-ID: <mailto:3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1> 3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1 CSeq: 103 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Contact: <sip:999@74.110.57.25> Content-Length: 0 --- Transmitting (no NAT) to 123.183.86.231:5060: SIP/2.0 200 OK Via: SIP/2.0/UDP 123.183.86.231:5060;branch=z9hG4bK1a8cee82;received=123.183.86.231;rport=506 0 From: <sip:999@pbx.itsp.com>;tag=as3218ff14 To: <sip:999@pbx.itsp.com>;tag=as7d680d48 Call-ID: <mailto:3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1> 3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1 CSeq: 103 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Expires: 120 Contact: <sip:s@123.183.86.231:5060>;expires=120 Date: Fri, 04 May 2007 19:27:58 GMT ontent-Length: 0 <-- SIP read from 123.183.86.231:5060: OPTIONS sip:pbx.itsp.com SIP/2.0 Via: SIP/2.0/UDP 123.183.86.231:5060;branch=z9hG4bK36c1df86;rport From: "asterisk" <sip:asterisk@123.183.86.231>;tag=as6e5334cf To: <sip:pbx.itsp.com> Contact: <sip:asterisk@123.183.86.231:5060> Call-ID: <mailto:5f9dafd128057f97406f0a0736c0d878@123.183.86.231> 5f9dafd128057f97406f0a0736c0d878@123.183.86.231 CSeq: 102 OPTIONS User-Agent: Asterisk PBX Max-Forwards: 70 Date: Fri, 04 May 2007 19:38:36 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Content-Length: 0 --- (12 headers 0 lines) --- Looking for s in entryunauthorized (domain pbx.itsp.com) Transmitting (no NAT) to 123.183.86.231:5060: SIP/2.0 200 OK Via: SIP/2.0/UDP 123.183.86.231:5060;branch=z9hG4bK36c1df86;received=123.183.86.231;rport=506 0 From: "asterisk" <sip:asterisk@123.183.86.231>;tag=as6e5334cf To: <sip:pbx.itsp.com>;tag=as51d476cd Call-ID: <mailto:5f9dafd128057f97406f0a0736c0d878@123.183.86.231> 5f9dafd128057f97406f0a0736c0d878@123.183.86.231 CSeq: 102 OPTIONS User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Contact: <sip:74.110.57.25> Accept: application/sdp Content-Length: 0 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070504/1a5642f2/attachment.htm