On 23 June 2017 at 18:39, Yu Boot <yu@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