Possibly. Can you provide the incoming INVITE packet sent by the provider in both cases?

--
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:58
To: FreeSWITCH Users Help
Reply To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Trunk Calls

Thanks for the quick reply.

Yeah I forward all calls to an IVR.

<extension name="ivr">
    <condition field="destination_number" expression="^(1234)$">  
<action application="ivr" data="allonclick"/>
<action application="callcenter" data="support@default"/>
    </condition>
</extension>

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?  


On Tue, Apr 21, 2015 at 3:50 PM, Alex Balashov <abalashov@evaristesys.com> wrote:
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
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>


_________________________________________________________________________
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