[Freeswitch-users] Include text file in XML dialplan?

Giovanni Maruzzelli 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.

eg:

<extension name="tod_example" continue="true">

<condition destination_number=".*">

<action application="set" data="ciao=true"/>

....

</condition>
</extension>

Also, you may want to study the freeSWITCH books and the confluence
documentation site.

 -giovanni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170623/7e7b9be6/attachment.html>


More information about the FreeSWITCH-users mailing list