<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have seen this issue where there were internet
connectivity issues. Asterisk registers every so often with the ITS. For some
reason or another (it can be many reasons such as DNS, internet, ISP has issue
etc). asterisk cant re-register so it keeps trying.</FONT></DIV>
<DIV><FONT face=Arial size=2>As far as the so context if you have a simple
register line in sip.conf (such as register=> axe:by@sip_provider) then
asterisk will tell the server that it is registering it with to send all calls
to the s extension in your default context.</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=support@ocg.ca href="mailto:support@ocg.ca">Michelle Dupuis</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asterisk-users@lists.digium.com
href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, May 05, 2007 4:08
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [asterisk-users] SIP
registration problem</DIV>
<DIV><BR></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#000000 size=2><SPAN
class=678040813-05052007>I've reposted with a more meaningful subject -
hopefully someone will reply....</SPAN></FONT><FONT face=Arial size=2><FONT
color=#000000>We have an Asterisk v1.2.16 box registering with an ITSP<SPAN
class=416113519-04052007> using SIP</SPAN>. The registration succeeds,
and is confirmed with SIP SHOW REGISTER. However, we frequently
(every</FONT> few minutes) see this on our console:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>REGISTER attempt 1 to <A
href="mailto:999@pbx.itsp.com">999@pbx.itsp.com</A> <BR>REGISTER attempt 2 to
<A href="mailto:999@pbx.itsp.com">999@pbx.itsp.com</A> </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT size=+0><FONT face=Arial><FONT size=2>Any ideas what is going
on?<SPAN class=416113519-04052007> In
particular</SPAN></FONT></FONT></FONT></DIV>
<DIV><SPAN class=416113519-04052007><FONT face=Arial size=2>
<DIV><SPAN class=416113519-04052007><FONT face=Arial size=2>1. What
causes the two register attempt messages above?</FONT></SPAN></DIV>2.
Why is our asterisk box being associated with the "entryunauthorized" context,
not the "entryinternal" context? (See below)</FONT></SPAN></DIV>
<DIV><SPAN class=416113519-04052007><FONT face=Arial size=2>3. Why is
the contact "<sip:s@123.183.86.231:5060>" in our SIP messages, why s@
anything?</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT
face=Arial size=2></FONT><BR><FONT face=Arial size=2>Thanks<BR>MD</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Contents of sip.conf at ITSP:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[999]<BR>context=entryinternal ; I
know this context exists!<SPAN class=416113519-04052007> This is the right
context.</SPAN><BR>type=friend<BR>username=999<BR>secret=1111<BR>callerid="Test"
<999><BR>host=dynamic
<BR>nat=no
<BR>canreinvite=no
<BR>allow=ulaw<BR>allow=alaw<BR>dtmfmode=rfc2833</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>-------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Console log from ITSP show strange SIP
traffic:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>---<BR>Scheduling destruction of call </FONT><A
href="mailto:'3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1'"><FONT face=Arial
size=2>'3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1'</FONT></A><FONT face=Arial
size=2> in 15000 ms<BR>pbx*CLI> <BR>pbx*CLI> <BR><-- SIP read from
123.183.86.231:5060: <BR>REGISTER sip:pbx.itsp.com SIP/2.0<BR>Via: SIP/2.0/UDP
123.183.86.231:5060;branch=z9hG4bK1a8cee82;rport<BR>From:
<sip:999@pbx.itsp.com>;tag=as3218ff14<BR>To:
<sip:999@pbx.itsp.com><BR>Call-ID: </FONT><A
href="mailto:3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1"><FONT face=Arial
size=2>3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1</FONT></A><BR><FONT
face=Arial size=2>CSeq: 103 REGISTER<BR>User-Agent: Asterisk
PBX<BR>Max-Forwards: 70<BR>Authorization: Digest username="999",
realm="pbx.itsp.com", algorithm=MD5, uri="sip:pbx.itsp.com", nonce="5cec66c0",
response="6451967016fc38f896efeb7247523fe1", opaque=""<BR>Expires:
120<BR>Contact: <sip:s@123.183.86.231:5060><BR>Event:
registration<BR>Content-Length: 0</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>--- (13 headers 0 lines) ---<BR>Using latest
REGISTER request as basis request<BR>Sending to 123.183.86.231 : 5060
(NAT)<BR>Transmitting (no NAT) to 123.183.86.231:5060:<BR>SIP/2.0 100
Trying<BR>Via: SIP/2.0/UDP
123.183.86.231:5060;branch=z9hG4bK1a8cee82;received=123.183.86.231;rport=5060<BR>From:
<sip:999@pbx.itsp.com>;tag=as3218ff14<BR>To:
<sip:999@pbx.itsp.com><BR>Call-ID: </FONT><A
href="mailto:3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1"><FONT face=Arial
size=2>3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1</FONT></A><BR><FONT
face=Arial size=2>CSeq: 103 REGISTER<BR>User-Agent: Asterisk PBX<BR>Allow:
INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<BR>Contact:
<sip:999@74.110.57.25><BR>Content-Length: 0</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR><FONT face=Arial size=2>---<BR>Transmitting (no NAT) to
123.183.86.231:5060:<BR>SIP/2.0 200 OK<BR>Via: SIP/2.0/UDP
123.183.86.231:5060;branch=z9hG4bK1a8cee82;received=123.183.86.231;rport=5060<BR>From:
<sip:999@pbx.itsp.com>;tag=as3218ff14<BR>To:
<sip:999@pbx.itsp.com>;tag=as7d680d48<BR>Call-ID: </FONT><A
href="mailto:3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1"><FONT face=Arial
size=2>3ec8bba250eab701464d5b1f4d2c51b9@127.0.0.1</FONT></A><BR><FONT
face=Arial size=2>CSeq: 103 REGISTER<BR>User-Agent: Asterisk PBX<BR>Allow:
INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<BR>Expires:
120<BR>Contact: <sip:s@123.183.86.231:5060>;expires=120<BR>Date: Fri, 04
May 2007 19:27:58 GMT<BR>ontent-Length: 0</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><-- SIP read from 123.183.86.231:5060:
<BR>OPTIONS sip:pbx.itsp.com SIP/2.0<BR>Via: SIP/2.0/UDP
123.183.86.231:5060;branch=z9hG4bK36c1df86;rport<BR>From: "asterisk"
<sip:asterisk@123.183.86.231>;tag=as6e5334cf<BR>To:
<sip:pbx.itsp.com><BR>Contact:
<sip:asterisk@123.183.86.231:5060><BR>Call-ID: </FONT><A
href="mailto:5f9dafd128057f97406f0a0736c0d878@123.183.86.231"><FONT face=Arial
size=2>5f9dafd128057f97406f0a0736c0d878@123.183.86.231</FONT></A><BR><FONT
face=Arial size=2>CSeq: 102 OPTIONS<BR>User-Agent: Asterisk
PBX<BR>Max-Forwards: 70<BR>Date: Fri, 04 May 2007 19:38:36 GMT<BR>Allow:
INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<BR>Content-Length:
0</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>--- (12 headers 0 lines) ---<BR>Looking for s in
entryunauthorized (domain pbx.itsp.com)<BR>Transmitting (no NAT) to
123.183.86.231:5060:<BR>SIP/2.0 200 OK<BR>Via: SIP/2.0/UDP
123.183.86.231:5060;branch=z9hG4bK36c1df86;received=123.183.86.231;rport=5060<BR>From:
"asterisk" <sip:asterisk@123.183.86.231>;tag=as6e5334cf<BR>To:
<sip:pbx.itsp.com>;tag=as51d476cd<BR>Call-ID: </FONT><A
href="mailto:5f9dafd128057f97406f0a0736c0d878@123.183.86.231"><FONT face=Arial
size=2>5f9dafd128057f97406f0a0736c0d878@123.183.86.231</FONT></A><BR><FONT
face=Arial size=2>CSeq: 102 OPTIONS<BR>User-Agent: Asterisk PBX<BR>Allow:
INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<BR>Contact:
<sip:74.110.57.25><BR>Accept: application/sdp<BR>Content-Length:
0</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>--Bandwidth and
Colocation provided by Easynews.com --<BR><BR>asterisk-users mailing
list<BR>To UNSUBSCRIBE or update options visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE></BODY></HTML>