<html><head></head><body style="background-color: rgb(255, 255, 255); line-height: initial;">                                                                                      <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Possibly. Can you provide the incoming INVITE packet sent by the provider in both cases?</div>                                                                                                                                     <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br style="display:initial"></div>                                                                                                                                     <div style="display:none"></div>                                                              <div style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">--<br>Alex&nbsp;Balashov&nbsp;|&nbsp;Principal&nbsp;|&nbsp;Evariste&nbsp;Systems&nbsp;LLC<br>303&nbsp;Perimeter&nbsp;Center&nbsp;North,&nbsp;Suite&nbsp;300<br>Atlanta,&nbsp;GA&nbsp;30346<br>United&nbsp;States<br><br>Tel:&nbsp;+1-800-250-5920&nbsp;(toll-free)&nbsp;/&nbsp;+1-678-954-0671&nbsp;(direct)<br>Web:&nbsp;http://www.evaristesys.com/,&nbsp;http://www.csrpswitch.com/<br><br>Sent&nbsp;from&nbsp;my&nbsp;BlackBerry.</div>                                                                                                                                                                                  <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">                           <div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;">  <div><b>From: </b>Ali Jibran</div><div><b>Sent: </b>Tuesday, April 21, 2015 14:58</div><div><b>To: </b>FreeSWITCH Users Help</div><div><b>Reply To: </b>FreeSWITCH Users Help</div><div><b>Subject: </b>Re: [Freeswitch-users] Trunk Calls</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style=""><div dir="ltr">Thanks for the quick reply.<br><br>Yeah I forward all calls to an IVR.<br><div><br></div><div>&lt;extension name="ivr"&gt;</div><div>&nbsp; &nbsp; &lt;condition field="destination_number" expression="^(1234)$"&gt;<span class="" style="white-space:pre">        </span>&nbsp;</div><div><span class="" style="white-space:pre">        </span>&lt;action application="ivr" data="allonclick"/&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;action application="callcenter" data="support@default"/&gt;</div><div>&nbsp; &nbsp; &lt;/condition&gt;</div><div>&lt;/extension&gt;</div><div><br>The issue is how do I control depending on what number is dialed? As you can see I have explicitly declared in the gateway conf to route to 1234. If I don't put that there it looks for my voipfone-username in the dialplan and not the number that I have actually dialed. Could this be a trunk issue? &nbsp;<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 21, 2015 at 3:50 PM, Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="background-color:rgb(255,255,255);line-height:initial">                                                                                      <div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">Do you have a generic condition rule in the dialplan for all incoming traffic from this provider? If so, you need to add specific rules which prescribe different actions depending on number dialed.</div>                                                                                                                                     <div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br style="display:initial"></div>                                                                                                                                     <div></div>                                                              <div style="font-size:initial;font-family:Calibri,'Slate Pro',sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">--<br>Alex&nbsp;Balashov&nbsp;|&nbsp;Principal&nbsp;|&nbsp;Evariste&nbsp;Systems&nbsp;LLC<br>303&nbsp;Perimeter&nbsp;Center&nbsp;North,&nbsp;Suite&nbsp;300<br>Atlanta,&nbsp;GA&nbsp;30346<br>United&nbsp;States<br><br>Tel:&nbsp;<a href="tel:%2B1-800-250-5920" value="+18002505920" target="_blank">+1-800-250-5920</a>&nbsp;(toll-free)&nbsp;/&nbsp;<a href="tel:%2B1-678-954-0671" value="+16789540671" target="_blank">+1-678-954-0671</a>&nbsp;(direct)<br>Web:&nbsp;<a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>,&nbsp;<a href="http://www.csrpswitch.com/" target="_blank">http://www.csrpswitch.com/</a><br><br>Sent&nbsp;from&nbsp;my&nbsp;BlackBerry.</div>                                                                                                                                                                                  <table width="100%" style="background-color:white;border-spacing:0px"> <tbody><tr><td colspan="2" style="font-size:initial;text-align:initial;background-color:rgb(255,255,255)">                           <div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in;font-family:Tahoma,'BB Alpha Sans','Slate Pro';font-size:10pt">  <div><b>From: </b>Ali Jibran</div><div><b>Sent: </b>Tuesday, April 21, 2015 14:48</div><div><b>To: </b><a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a></div><div><b>Reply To: </b>FreeSWITCH Users Help</div><div><b>Subject: </b>[Freeswitch-users] Trunk Calls</div></div></td></tr></tbody></table><div><div class="h5"><div style="border-style:solid none none;border-top-color:rgb(186,188,209);border-top-width:1pt;font-size:initial;text-align:initial;background-color:rgb(255,255,255)"></div><br><div><div dir="ltr">Hi all.<br><br>I have voipfone trunked to freeswitch. Everything works fine. But now I've bought another number from the same provider. <br>The call comes in but executes the same IVR at 1234. How do I change the dialplan that the call executes different IVR depending on the number dialed.<br><br>here is the gateway conf:<div><span style="color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">&lt;include&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">&nbsp; &lt;gateway name="voipfone"&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">&nbsp; &nbsp; &lt;param name="username" value="XXXXX"/&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">&nbsp; &nbsp; &lt;param name="realm" value="<a href="http://sip.voipfone.net" target="_blank">sip.voipfone.net</a>"/&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">&nbsp; &nbsp; &lt;param name="password" value="XXXXX"/&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">&nbsp; &nbsp; &lt;param name="extension" value="1234"/&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">&nbsp; &nbsp; &lt;param name="expire-seconds" value="60"/&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">&nbsp; &lt;/gateway&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,'Courier New',monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">&lt;/include&gt;</span><br></div></div>
<br></div></div></div></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br><!--end of _originalContent --></div></body></html>