Using dialplan routing from ESL?
Hi, I have set up some simple dialplan rules like: - Numbers with 4 digits or shorter: internal calls - 5 digits or longer: use external sip gateway This works perfectly fine with our (soft-)phones. Now I would also like to use the same rules when I make calls from our software over the ESL, but it seems that I always have to tell the "originate" command which gateway to use. Is there a syntax for "originate" (or another command) which uses the dialplan rules to decide which gateway to use, or do I have to implement the dialplan rules a 2. time in the software? Thanks, René
you can send the call to the loopback endpoint, then it will go through the dialplan logic: https://freeswitch.org/confluence/display/FREESWITCH/Loopback+Endpoint On Wed, Sep 9, 2015 at 8:24 AM, René Weiss <rw@panorgan.ch> wrote:
Hi,
I have set up some simple dialplan rules like: - Numbers with 4 digits or shorter: internal calls - 5 digits or longer: use external sip gateway
This works perfectly fine with our (soft-)phones.
Now I would also like to use the same rules when I make calls from our software over the ESL, but it seems that I always have to tell the "originate" command which gateway to use.
Is there a syntax for "originate" (or another command) which uses the dialplan rules to decide which gateway to use, or do I have to implement the dialplan rules a 2. time in the software?
Thanks, René
_________________________________________________________________________ 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
participants (2)
-
René Weiss
-
Stanislav Sinyagin