<div>After reading some more documentation it appears that a type peer needs to have a host directive to match the context properly. I am assuming the dynamic is throwing it off. I have to try this next.</div>
<div> </div>
<div><a href="http://www.voip-info.org/wiki-Asterisk+config+sip.conf">http://www.voip-info.org/wiki-Asterisk+config+sip.conf</a></div>
<div> </div>
<div>The problem is that the request could come from 3 separate servers but I was trying to limit the amount of usernames needed in sip.conf. I guess I could make 3 separate usernames and passwords...</div>
<div> </div>
<div>Does anyone know a way to avoid this?</div>
<div> </div>
<div>Thanks for your replies!<br><br> </div>
<div><span class="gmail_quote">On 11/3/06, <b class="gmail_sendername">Alex Robar</b> <<a href="mailto:alex.robar@gmail.com">alex.robar@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">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>
<div><span class="e" id="q_10eae668788a75ce_1"><span class="gmail_quote">On 11/3/06, <b class="gmail_sendername"><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nrbwpi@gmail.com" target="_blank">nrbwpi@gmail.com
</a></b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nrbwpi@gmail.com" target="_blank">nrbwpi@gmail.com</a>> wrote:</span></span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><span class="e" id="q_10eae668788a75ce_3">
<div>Hi All,</div>
<div> </div>
<div>I am trying to configure asterisk to receive an inbound SIP connection and send it to a specified context. Instead of sending the call the specified context, asterisk is using the context default from [general]? Any thoughts? I am sure that it is something simple I am missing.
</div>
<div> </div>
<div>To recap, it is sending calls to the context default, not thecontext...</div>
<div> </div>
<div>[general]<br>context=default<br>srvlookup=yes</div>
<div> </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 onclick="return top.js.OpenExtLink(window,event,this)" href="http://0.0.0.0/0.0.0.0" target="_blank">
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> </div>
<div>Thanks</div>
<div><br> </div></span></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> <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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:alex.robar@gmail.com" target="_blank">
alex.robar@gmail.com</a> <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> <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>