[Freeswitch-users] Include text file in XML dialplan?
gmaruzz at gmail.com
Fri Jun 23 16:46:46 UTC 2017
On 23 June 2017 at 18:39, Yu Boot <yu at yu-boot.ru> wrote:
> Let me explain. All inbound calls are routed via one single context, where
> they are parsed by source IP etc. I want to have an option to insert (and
> delete) rule that all call will be pass BEFORE any other rules like IP
> parsing. For example, external script is analyzing CDR and "shuts down" any
> international calls in case of emergency. I can do this easily by including
> file with dialplan rules in Yate. I want similiar functionality in FS.
you insert an extension at dialplan beginning, with a catchall expression,
and a continue="true" parameter.
All calls will pass through this extension, and then continue. You do your
things there, possibly with script.
<extension name="tod_example" continue="true">
<action application="set" data="ciao=true"/>
Also, you may want to study the freeSWITCH books and the confluence
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users