Hello - <br><br>Thanks for the suggestions, I actually learned since my post that the problem is related to the formation of the initial SIP invite sent from our Sonus gateway through our NexTone SBC.&nbsp; Using your idea regarding the variable I think i've found a work-around.
<br><br>When the Sonus sends the inital invite the format is:<br><br>INVITE sip:315579xxxx;npdi=<a href="mailto:yes@66.218.x.xx">yes@66.218.x.xx</a> SIP/2.0<br><br>It appears the Asterisk server is able to parse this message if I am only using one context, it appears to fail when I use multiple contexts to route my ingress calls.
<br><br>From what I can tell Asterisk parses the invite and looks to send the call to s in the default context (domain 315579xxxx).<br><br>Looking for s in default (domain 315579xxxx)<br><br>If 's' doesn't exist in [315579xxxx] the call chokes.
<br><br>If I create a variable based on the ingress 'domain' using:<br><br>exten =&gt; s,1,Goto(${SIPDOMAIN},s,1)<br><br>The call is sent to the correct context.<br><br>I think it's a work-around, but it seems to do the trick.
<br><br>&nbsp;&nbsp;&nbsp; -- Executing Goto(&quot;SIP/15241-08198868&quot;, &quot;315579xxxx|s|1&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Goto (315579xxxx,s,1)<br>&nbsp;&nbsp;&nbsp; -- Executing Answer(&quot;SIP/15241-08198868&quot;, &quot;&quot;) in new stack<br>
<br><br>Notes on Digium:<br><br><a href="http://bugs.digium.com/view.php?id=7208&amp;nbn=24">http://bugs.digium.com/view.php?id=7208&amp;nbn=24</a><br><br><br><br><br><br><br><br><br><br><br><br><div><span class="gmail_quote">
On 6/28/06, <b class="gmail_sendername">El Flynn</b> &lt;<a href="mailto:el_flynn@lanvik-icu.com">el_flynn@lanvik-icu.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Christopher Aloi wrote:<br>&gt; Hello -<br>&gt;<br>&gt; I currently have 10 DID's coming into one Asterisk server, I seem to be<br>&gt; having some difficulty routing based on the DID dialed and am hoping<br>&gt; someone<br>
&gt; on the list can assist me.<br>&gt;<br>&lt;snip&gt;<br><br>Unless I'm misunderstanding you, how about trying this:<br><br>1. In your sip.conf:<br><br>[general]<br>useragent=Asterisk<br>port=5060<br>context=default<br>
tos=lowdelay<br>disallow=all<br>allow=ulaw<br>allow=alaw<br>allow=gsm<br>rtptimeout=300<br>rtpholdtimeout=600<br><br>2. In your extensions.conf:<br><br>[default]<br>exten =&gt; s,1,Goto(${CALLERIDNUM},s,1)<br><br>[123456789]
<br>exten =&gt; s,1,Answer()<br>exten =&gt; s,2,Playback(beep)<br>exten =&gt; s,3,GoTo(queue-test,s,1)<br><br><br>So if you get an incoming SIP call from 123456789, it enters the &quot;default&quot;<br>context and is then routed to the &quot;123456789&quot; context.
<br><br>Flynn<br><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:
<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>