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.

--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

Sent from my BlackBerry.
From: Ali Jibran
Sent: Tuesday, April 21, 2015 14:48
To: freeswitch-users@lists.freeswitch.org
Reply To: FreeSWITCH Users Help
Subject: [Freeswitch-users] Trunk Calls

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>