<p dir="ltr">Hi Alex, I tried to add a dialplan with 3[1-9][1-9] as a regex,  but the field remained empty,  then I changed a mysql escape control inside the file dialplan.add.php and now it&#39;s working. <br>
Thank you for your interest<br>
Best regards<br>
Marco</p>
<div class="gmail_quote">Il giorno 23/apr/2013 10:15, &quot;Alex Ionescu&quot; &lt;<a href="mailto:alex@opensips.org">alex@opensips.org</a>&gt; ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi Marco,<br>
      <br>
      Can you please tell me what are you trying to add ? Like give me
      an example so I can replicate your problem.<br>
      <br>
      Regards,<br>
      Alex Ionescu<br>
      <br>
      <br>
      On 04/22/2013 03:18 PM, Marco Grimandi wrote:<br>
    </div>
    <blockquote type="cite">
      
      
      
      <div>
        <p class="MsoNormal"><span lang="EN-US">Hi all,<u></u><u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US">I downloaded the virtual
            machine version of opensips 1.7 and when I try to add some
            rules to the dialplan using the control panel I’m not able
            to save any regular expression. All the time the regular
            expression tab is empty.<u></u><u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US">I looked at the
            error.log and this is the output:<u></u><u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:05
            2013] [error] [client 192.168.89.155] PHP Notice:  Undefined
            index: id in
            /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php
            on line 1, referer:
<a href="http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12" target="_blank">http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12</a><u></u><u></u></span></p>

        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:05
            2013] [error] [client 192.168.89.155] PHP Notice:  Undefined
            variable: check_boxes in
            /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php
            on line 53, referer:
<a href="http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12" target="_blank">http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12</a><u></u><u></u></span></p>

        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:05
            2013] [error] [client 192.168.89.155] PHP Notice:  Undefined
            variable: dpid in
            /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php
            on line 91, referer:
<a href="http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12" target="_blank">http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12</a><u></u><u></u></span></p>

        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:05
            2013] [error] [client 192.168.89.155] PHP Notice:  Undefined
            variable: pr in
            /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php
            on line 97, referer:
<a href="http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12" target="_blank">http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12</a><u></u><u></u></span></p>

        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:05
            2013] [error] [client 192.168.89.155] PHP Notice:  Undefined
            variable: match_exp in
            /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php
            on line 109, referer:
<a href="http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12" target="_blank">http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12</a><u></u><u></u></span></p>

        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:05
            2013] [error] [client 192.168.89.155] PHP Notice:  Undefined
            variable: match_len in
            /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php
            on line 115, referer:
<a href="http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12" target="_blank">http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12</a><u></u><u></u></span></p>

        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:05
            2013] [error] [client 192.168.89.155] PHP Notice:  Undefined
            variable: subst_exp in
            /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php
            on line 121, referer:
<a href="http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12" target="_blank">http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12</a><u></u><u></u></span></p>

        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:05
            2013] [error] [client 192.168.89.155] PHP Notice:  Undefined
            variable: repl_exp in
            /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php
            on line 127, referer:
<a href="http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12" target="_blank">http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modify&amp;id=12</a><u></u><u></u></span></p>

        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:05
            2013] [error] [client 192.168.89.155] File does not exist:
            /var/www/favicon.ico<u></u><u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:17
            2013] [error] [client 192.168.89.155] PHP Warning: 
            mysql_real_escape_string() expects parameter 2 to be
            resource, object given in
            /var/www/opensips-cp/web/tools/system/dialplan/dialplan.php
            on line 119, referer:
<a href="http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=add&amp;clone=0" target="_blank">http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=add&amp;clone=0</a><u></u><u></u></span></p>

        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:17
            2013] [error] [client 192.168.89.155] PHP Notice:  Undefined
            index: dialplan_id in
            /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.main.php
            on line 28, referer:
<a href="http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=add&amp;clone=0" target="_blank">http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=add&amp;clone=0</a><u></u><u></u></span></p>

        <p class="MsoNormal"><span lang="EN-US">[Mon Apr 22 13:22:17
            2013] [error] [client 192.168.89.155] File does not exist:
            /var/www/favicon.ico<u></u><u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US">Did someone find the
            same behavior?<u></u><u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US">Please help me!<u></u><u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US">Thank you<u></u><u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US">Best regards<u></u><u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US">Marco<u></u><u></u></span></p>
        <p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div>