your problem is that you need to handle this in your dialpan to achieve which DID has been dialed! look for SIPGETHEADER application on asterisk, you shoul look for variable &quot;to&quot; where it comes the DID<br><br><div>
<span class="gmail_quote">On 11/27/06, <b class="gmail_sendername">Frederico Madeira</b> &lt;<a href="mailto:fmadeira@gmail.com">fmadeira@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;">
I have an asterisk box registering 100 numbers on a voip provider.<br>Numers are: 2546.1000 to 2546.1099<br>My
problem is that every incoming call arrived to number 2546.1099 that is
the last number to register on voip provider. The correct is call
arrive in destination number.
<br>See this exaple:<br>I call to 2546.1000.<br>-- Executing Dial(&quot;SIP/25461099-08738060&quot;, &quot;Zap/g1/3000&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Requested transfer capability: 0x00 - SPEECH<br>&nbsp;&nbsp;&nbsp; -- Called g1/3000
<br>&nbsp;&nbsp;&nbsp; -- Zap/1-1 is proceeding passing it to SIP/25461099-08738060<br>&nbsp;&nbsp;&nbsp; -- Zap/1-1 is ringing<br>&nbsp;&nbsp;&nbsp; -- Zap/1-1 answered SIP/25461099-08738060<br>&nbsp;&nbsp;&nbsp; -- Hungup 'Zap/1-1'<br>&nbsp; == Spawn extension (default, 25461000, 1) exited non-zero on 'SIP/25461099-08738060'
<br>How i solve this problem ??<br>See parts of my sip.conf<br>register=&gt;<a href="http://25461000:xxxxx@sip.provider.com/25461000" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">25461000:xxxxx@sip.provider.com/25461000
</a><br>register=&gt;<a href="http://25461001:xxxxx@sip.provider.com/25461001" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
25461001:xxxxx@sip.provider.com/25461001</a><br>register=&gt;<a href="http://25461002:xxxxx@sip.provider.com/25461002" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">25461002:xxxxx@sip.provider.com/25461002
</a><br>register=&gt;<a href="http://25461003:xxxxx@sip.provider.com/25461003" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
25461003:xxxxx@sip.provider.com/25461003</a><br>.<br>.<br>.<br>register=&gt;<a href="http://25461099:xxxxx@sip.provider.com/25461099" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">25461099:xxxxx@sip.provider.com/25461099
</a><br>[provider-25461000]<br>
type=friend<br>
context=default<br>
secret=xxxx<br>
username=25461000<br>
host=<a href="http://sip.provider.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip.provider.com</a><br>
fromuser=25461000<br>
fromdomain=<a href="http://sip.provider.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip.provider.com</a><br>
nat=yes<br>
insecure=very<br>
canreinvite=no<br>
qualify=yes<br>
[provider-25461001]<br>
type=friend<br>
context=default<br>
secret=xxxx<br>
username=25461001<br>
host=<a href="http://sip.provider.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip.provider.com</a><br>
fromuser=25461001<br>
fromdomain=<a href="http://sip.provider.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip.provider.com</a><br>
nat=yes<br>
insecure=very<br>
canreinvite=no<br>
qualify=yes<br>
[provider-25461002]<br>
type=friend<br>
context=default<br>
secret=xxxx<br>
username=25461002<br>
host=<a href="http://sip.provider.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip.provider.com</a><br>
fromuser=25461002<br>
fromdomain=<a href="http://sip.provider.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip.provider.com</a><br>
nat=yes<br>
insecure=very<br>
canreinvite=no<br>
qualify=yes<br>
.<br>.<br>.<br>[provider-25461099]<br>
type=friend<br>
context=default<br>
secret=xxxx<br>
username=25461099<br>
host=<a href="http://sip.provider.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip.provider.com</a><br>
fromuser=25461099<br>
fromdomain=<a href="http://sip.provider.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip.provider.com</a><br>
nat=yes<br>
insecure=very<br>
canreinvite=no<br>
qualify=yes<br>
-- <br><span class="sg">Frederico Madeira<br><a href="mailto:fmadeira@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">fmadeira@gmail.com</a><br><a href="http://www.madeira.eng.br" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
www.madeira.eng.br</a><br>

</span><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>Best regards,<br><br>Marco Mouta