<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Michael,<br>
    <br>
    fortget it, I already put thim in extensions and it work.<br>
    <br>
    Regards,<br>
    Miha<br>
    <br>
    On 3/26/2012 8:29 AM, Miha wrote:
    <blockquote cite="mid:4F700CD3.2030904@softnet.si" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Hi Michael,<br>
      <br>
      here is my dialplan: <a moz-do-not-send="true"
        class="moz-txt-link-freetext"
        href="http://pastebin.freeswitch.org/18732">http://pastebin.freeswitch.org/18732</a><br>
      <br>
      It is not perfect as I was witting it for the first time.<br>
      I need to block certain destination numbers with toll_allow.<br>
      <br>
      I am trying to add this part:<br>
      <br>
      <small><br>
        &nbsp;&lt;condition field="${toll_allow}" expression="mobilne"&nbsp;
        break="on-true" /&gt;<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number"
        expression="^(051|041|031|030|040|070|071)(\d{6})|^(0038651|0038641|0038631|0038630|0038640|0038670|0038671)(\d{6})"


        break="on-true"&gt;<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="respond" data="403"/&gt;<br>
        &lt;/condition&gt;<br>
        <br>
        <br>
        <br>
        &lt;condition field="${toll_allow}" expression="tuje"/&gt;<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number"
        expression="^00\d+"&gt;<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="respond" data="403"/&gt;<br>
        &lt;/condition&gt;<br>
        <br>
        <br>
        &lt;condition field="${toll_allow}" expression="vroce"/&gt;<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number"
        expression="^(090)(\d{4})|^(090)(\d{6})"&gt;<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="respond" data="403"/&gt;<br>
        &lt;/condition&gt;</small><br>
      <br>
      before it hits the main part of dialplan. So that I can block this
      destiantion numbers if condition is true.<br>
      <br>
      Thank you!<br>
      <br>
      Regards,<br>
      Miha<br>
      <br>
      Regards,<br>
      Miha<br>
      On 3/23/2012 4:33 PM, Michael Collins wrote:
      <blockquote
cite="mid:CAKzWOxU977KCZB0aYLMKVRcSm-EiSx+OtvDD-+KjZpYVtck-qA@mail.gmail.com"
        type="cite">Miha,<br>
        <br>
        It might help if you show us a bit more of your dialplan. It may
        be that you need to break some of these out into separate
        extensions. Also, what is your "big picture" application? What
        is the problem that you are attempting to solve?<br>
        <br>
        -MC<br>
        <br>
        <br>
        <div class="gmail_quote">On Fri, Mar 23, 2012 at 6:04 AM, Miha <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:miha@softnet.si">miha@softnet.si</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> <small>Hi,<br>
                <br>
                In same extension a have multiple conditions. Problem is
                if the first condition is false, dialplan will go
                further as I have set on-true.<br>
                How can I prevent that dialplan will go after
                break="on-true" on second condition and will not go
                looking condition inside condition.<br>
                <br>
                So if the variable mobilne is not set, in this dialplan
                FS will go looking to </small><small> &lt;condition
                field="destination_number"
                expression="^(051|041|031|030|040|070|071)(\d{6})|^(0038651|0038641|0038631|0038630|0038640|0038670|0038671)(\d{6})"



                break="on-true"&gt; and reject call instead of goint to
                second condtion which is </small><small>&lt;condition
                field="${toll_allow}" expression="tuje"/&gt;.<br>
                <br>
                I hope I make it clear:D<br>
              </small><small><br>
                &nbsp;&lt;condition field="${toll_allow}"
                expression="mobilne"&nbsp; break="on-true" /&gt;<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number"
                expression="^(051|041|031|030|040|070|071)(\d{6})|^(0038651|0038641|0038631|0038630|0038640|0038670|0038671)(\d{6})"


                break="on-true"&gt;<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="respond" data="403"/&gt;<br>
                &lt;/condition&gt;<br>
                <br>
                <br>
                <br>
                &lt;condition field="${toll_allow}"
                expression="tuje"/&gt;<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number"
                expression="^00\d+"&gt;<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="respond" data="403"/&gt;<br>
                &lt;/condition&gt;<br>
                <br>
                <br>
                &lt;condition field="${toll_allow}"
                expression="vroce"/&gt;<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number"
                expression="^(090)(\d{4})|^(090)(\d{6})"&gt;<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="respond" data="403"/&gt;<br>
                &lt;/condition&gt;<br>
              </small><br>
              <br>
              Regards and thank you for your help!<span class="HOEnZb"><font
                  color="#888888"><br>
                  <br>
                  Miha<br>
                </font></span></div>
            <br>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
            <a moz-do-not-send="true" href="http://www.cudatel.com"
              target="_blank">http://www.cudatel.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://wiki.freeswitch.org"
              target="_blank">http://wiki.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>