I talked to voipfone and had to buy different virtual extensions for both the numbers. Now they come in via different numbers.<div><br></div><div>Thanks for the help people :)<span></span><br><br>On Tuesday, April 21, 2015, Stanislav Sinyagin &lt;<a href="mailto:ssinyagin@gmail.com">ssinyagin@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">remove the &quot;extension&quot; line from your gateway configuration. Then you<br>
will probably see the dialed number as destination_number.<br>
<br>
<br>
On Tue, Apr 21, 2015 at 12:47 PM, Ali Jibran &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;ali.jibran44@gmail.com&#39;)">ali.jibran44@gmail.com</a>&gt; wrote:<br>
&gt; Hi all.<br>
&gt;<br>
&gt; I have voipfone trunked to freeswitch. Everything works fine. But now I&#39;ve<br>
&gt; bought another number from the same provider.<br>
&gt; The call comes in but executes the same IVR at 1234. How do I change the<br>
&gt; dialplan that the call executes different IVR depending on the number<br>
&gt; dialed.<br>
&gt;<br>
&gt; here is the gateway conf:<br>
&gt; &lt;include&gt;<br>
&gt;   &lt;gateway name=&quot;voipfone&quot;&gt;<br>
&gt;     &lt;param name=&quot;username&quot; value=&quot;XXXXX&quot;/&gt;<br>
&gt;     &lt;param name=&quot;realm&quot; value=&quot;<a href="http://sip.voipfone.net" target="_blank">sip.voipfone.net</a>&quot;/&gt;<br>
&gt;     &lt;param name=&quot;password&quot; value=&quot;XXXXX&quot;/&gt;<br>
&gt;     &lt;param name=&quot;extension&quot; value=&quot;1234&quot;/&gt;<br>
&gt;     &lt;param name=&quot;expire-seconds&quot; value=&quot;60&quot;/&gt;<br>
&gt;   &lt;/gateway&gt;<br>
&gt; &lt;/include&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;consulting@freeswitch.org&#39;)">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;FreeSWITCH-users@lists.freeswitch.org&#39;)">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;consulting@freeswitch.org&#39;)">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="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;FreeSWITCH-users@lists.freeswitch.org&#39;)">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>