I would think that if the call isn't using the information you've setup under username1, then the call probably isn't coming into your system using username1. Try to verify which username the call is being sent to.<br><br>
Alex<br><br><div><span class="gmail_quote">On 11/3/06, <b class="gmail_sendername"><a href="mailto:nrbwpi@gmail.com">nrbwpi@gmail.com</a></b> &lt;<a href="mailto:nrbwpi@gmail.com">nrbwpi@gmail.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;">
<div>Hi All,</div>
<div>&nbsp;</div>
<div>I am trying to configure asterisk to receive an inbound SIP connection and send it to a specified context.&nbsp; Instead of sending the call the specified context, asterisk is using the context default from [general]?&nbsp; Any thoughts?&nbsp; I am sure that it is something simple I am missing.
</div>
<div>&nbsp;</div>
<div>To recap, it is sending calls to the context default, not thecontext...</div>
<div>&nbsp;</div>
<div>[general]<br>context=default<br>srvlookup=yes</div>
<div>&nbsp;</div>
<div>[username1]<br>type=peer<br>username=username1<br>secret=test1234<br>host=dynamic<br>dtmfmode=rfc2833<br>context=thecontext<br>nat=no<br>deny=<a href="http://0.0.0.0/0.0.0.0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
0.0.0.0/0.0.0.0</a><br>permit=XXX.XXX.XXX.XXX
/255.255.255.255<br>permit=XXX.XXX.XXX.XXX/255.255.255.255<br>permit=XXX.XXX.XXX.XXX/255.255.255.255<br>permit=XXX.XXX.XXX.XXX/255.255.255.0<br>permit=XXX.XXX.XXX.XXX/255.255.255.255</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div><br>&nbsp;</div>

<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Alex Robar<br><a href="mailto:alex.robar@gmail.com">alex.robar@gmail.com</a>