<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On 23 June 2017 at 18:39, Yu Boot <span dir="ltr"><<a href="mailto:yu@yu-boot.ru" target="_blank">yu@yu-boot.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>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.<br></p></div></blockquote><div><br></div><div>you insert an extension at dialplan beginning, with a catchall expression, and a continue="true" parameter.<br><br></div><div>All calls will pass through this extension, and then continue. You do your things there, possibly with script.<br><br></div><div>eg:<br><br><p class="m_-2997573855912983038gmail-western" style="margin-bottom:0.14in;line-height:115%" lang="en-GB">
<extension name="tod_example" continue="true"></p>
<p style="margin-left:0.25in;margin-bottom:0.02in">
      <font face="Courier Std"><font style="font-size:9pt" size="2"><condition
destination_number=".*"></font></font></p>
<p style="margin-left:0.25in;margin-bottom:0.02in">
        <font face="Courier Std"><font style="font-size:9pt" size="2"><action
application="set" data="ciao=true"/></font></font></p><p style="margin-left:0.25in;margin-bottom:0.02in"><font face="Courier Std"><font style="font-size:9pt" size="2">....<br></font></font></p>
<p style="margin-left:0.25in;margin-bottom:0.02in">
      <font face="Courier Std"><font style="font-size:9pt" size="2"></condition></font></font></p><font face="Courier Std"><font style="font-size:9pt" size="2"></extension></font></font>

<br><br></div><div>Also, you may want to study the freeSWITCH books and the confluence documentation site.<br><br></div><div> -giovanni<br><br><br></div></div></div></div>