<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=&quot;ivr&quot;&gt;</div><div>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(1234)$&quot;&gt;<span class="" style="white-space:pre">        </span> </div><div><span class="" style="white-space:pre">        </span>&lt;action application=&quot;ivr&quot; data=&quot;allonclick&quot;/&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;action application=&quot;callcenter&quot; data=&quot;support@default&quot;/&gt;</div><div>    &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&#39;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?  <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,&#39;Slate Pro&#39;,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,&#39;Slate Pro&#39;,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,&#39;Slate Pro&#39;,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">--<br>Alex Balashov | Principal | Evariste Systems LLC<br>303 Perimeter Center North, Suite 300<br>Atlanta, GA 30346<br>United States<br><br>Tel: <a href="tel:%2B1-800-250-5920" value="+18002505920" target="_blank">+1-800-250-5920</a> (toll-free) / <a href="tel:%2B1-678-954-0671" value="+16789540671" target="_blank">+1-678-954-0671</a> (direct)<br>Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" target="_blank">http://www.csrpswitch.com/</a><br><br>Sent from my 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,&#39;BB Alpha Sans&#39;,&#39;Slate Pro&#39;;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&#39;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,&#39;Courier New&#39;,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,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">  &lt;gateway name=&quot;voipfone&quot;&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">    &lt;param name=&quot;username&quot; value=&quot;XXXXX&quot;/&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">    &lt;param name=&quot;realm&quot; value=&quot;<a href="http://sip.voipfone.net" target="_blank">sip.voipfone.net</a>&quot;/&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">    &lt;param name=&quot;password&quot; value=&quot;XXXXX&quot;/&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">    &lt;param name=&quot;extension&quot; value=&quot;1234&quot;/&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">    &lt;param name=&quot;expire-seconds&quot; value=&quot;60&quot;/&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px;background-color:rgb(250,250,250)">  &lt;/gateway&gt;</span><br style="margin:0px;padding:0px;color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,monospace;font-size:11px;line-height:16.7999992370605px"><span style="color:rgb(68,68,68);font-family:Monaco,&#39;Courier New&#39;,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>