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>
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 *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>
_________________________________________________________________________ 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
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
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 <javascript:;>> 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 <javascript:;> 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 <javascript:;> 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 <javascript:;> 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 <javascript:;> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Alex Balashov
-
Ali Jibran
-
Stanislav Sinyagin