I talked to voipfone and had to buy different virtual extensions for both the numbers. Now they come in via different numbers.

Thanks for the help people :)

On Tuesday, April 21, 2015, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
remove the "extension" line from your gateway configuration. Then you
will probably see the dialed number as destination_number.


On Tue, Apr 21, 2015 at 12:47 PM, Ali Jibran <ali.jibran44@gmail.com> wrote:
> Hi all.
>
> I have voipfone trunked to freeswitch. Everything works fine. But now I've
> bought another number from the same provider.
> 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.
>
> here is the gateway conf:
> <include>
>   <gateway name="voipfone">
>     <param name="username" value="XXXXX"/>
>     <param name="realm" value="sip.voipfone.net"/>
>     <param name="password" value="XXXXX"/>
>     <param name="extension" value="1234"/>
>     <param name="expire-seconds" value="60"/>
>   </gateway>
> </include>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting@freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org