<div dir="ltr">Thanks for the quick reply.<br><br>Yeah I forward all calls to an IVR.<br><div><br></div><div><extension name="ivr"></div><div> <condition field="destination_number" expression="^(1234)$"><span class="" style="white-space:pre">        </span> </div><div><span class="" style="white-space:pre">        </span><action application="ivr" data="allonclick"/></div><div><span class="" style="white-space:pre">        </span><action application="callcenter" data="support@default"/></div><div> </condition></div><div></extension></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? <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"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></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 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,'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)"><include></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)"> <gateway name="voipfone"></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)"> <param name="username" value="XXXXX"/></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)"> <param name="realm" value="<a href="http://sip.voipfone.net" target="_blank">sip.voipfone.net</a>"/></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)"> <param name="password" value="XXXXX"/></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)"> <param name="extension" value="1234"/></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)"> <param name="expire-seconds" value="60"/></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)"> </gateway></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)"></include></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>