<div dir="ltr">Bogdan,<div><br></div><div>Below is the debug output when reloading dialplan</div><div><br></div><div>From what I have noticed, after a successful dp_reload, and then making the 1st test call, the next calls will have the same context result as the first one, even if the dialplan is different.</div><div><br></div><div>So, for example we tested and got context drgID=1 from the dialplan that matches, the consecutive dial plan matches will have the same context.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>





<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc8ad38: pr 0 next 0x7f458dc8b140 match_exp ^662261(.+) match_flags 0, subst_exp ^662261(.+), repl_exp 61\1 and attrs<span class="gmail-Apple-converted-space">  </span>and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc8b140: pr 0 next 0x7f458dc96470 match_exp ^2266(.+) match_flags 0, subst_exp ^2266(.+), repl_exp \1 and attrs user=2266; gateway=gtps and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc96470: pr 0 next 0x7f458dc96800 match_exp ^6[0-9][0-9][0-9](.+) match_flags 0, subst_exp ^6[0-9][0-9][0-9](.+), repl_exp \1 and attrs<span class="gmail-Apple-converted-space">  </span>and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc96800: pr 0 next 0x7f458dc96bc0 match_exp ^55551(.+) match_flags 0, subst_exp ^55551(.+), repl_exp 1\1 and attrs drgID=12 and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc96bc0: pr 0 next 0x7f458dc96f88 match_exp ^979744(.+) match_flags 0, subst_exp ^979744(.+), repl_exp 44\1 and attrs user=9797; gateway=gtps and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc96f88: pr 0 next 0x7f458dc97308 match_exp ^8000(.+) match_flags 0, subst_exp ^8000(.+), repl_exp \1 and attrs<span class="gmail-Apple-converted-space">  </span>and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc97308: pr 0 next 0x7f458dc976d0 match_exp ^40011(.+) match_flags 0, subst_exp ^40011(.+), repl_exp 1\1 and attrs gateway=GTPS_VTTel and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc976d0: pr 0 next 0x7f458dc97a98 match_exp ^22001(.+) match_flags 0, subst_exp ^22001(.+), repl_exp 1\1 and attrs gateway=GTPS_VTTel and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc97a98: pr 0 next 0x7f458dc97e18 match_exp ^9000(.+) match_flags 0, subst_exp ^9000(.+), repl_exp \1 and attrs<span class="gmail-Apple-converted-space">  </span>and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc97e18: pr 0 next 0x7f458dc98198 match_exp ^400244(.+) match_flags 0, subst_exp ^400244(.+), repl_exp 44\1 and attrs<span class="gmail-Apple-converted-space">  </span>and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc98198: pr 65 next 0x7f458dc98568 match_exp ^12121(.+) match_flags 0, subst_exp ^12121(.+), repl_exp 1\1 and attrs user=1212; gateway=GTPS_VTTel and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc98568: pr 99 next (nil) match_exp ^30111(.+) match_flags 0, subst_exp ^30111(.+), repl_exp 1\1 and attrs<span class="gmail-Apple-converted-space">  </span>and timerec<span class="gmail-Apple-converted-space"> </span></i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:core:db_free_columns: freeing result columns at 0x7f45a142e5a0</i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:core:db_free_rows: freeing 0 rows</i></span></p>
<p class="gmail-p1" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103)"><span class="gmail-s1" style="font-kerning:none"><i>Jun 25 07:46:14 [13757] DBG:core:db_free_result: freeing result set at 0x7f45a13fd7d0</i></span></p>
<p class="gmail-p2" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103);min-height:20px"><span class="gmail-s1" style="font-kerning:none"></span><br></p><p class="gmail-p2" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Helvetica Neue";color:rgb(86,88,103);min-height:20px"><br></p><p class="gmail-p2" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(86,88,103);min-height:20px"><br></p><p class="gmail-p2" style="margin:0px 0px 17px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(86,88,103);min-height:20px"><br></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 23, 2020 at 12:41 AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <tt>Vic,<br>
      <br>
      What is the exact opensips version you have ? (opensips -V)<br>
      <br>
      Also, please provide the log (in debug mode) generated during the
      reload attempt.<br>
      <br>
      Regards,<br>
    </tt>
    <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>

</pre>
    <div>On 6/17/20 10:01 PM, Vic Jolin wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Bogdan,
        <div><br>
        </div>
        <div>Hi, the dialplan loads properly on start up, it just
          doesn't reload on opensips-cli</div>
        <div><br>
        </div>
        <div>although when I do</div>
        <div>opensips-cli -x mi dp_reload<br>
        </div>
        <div><br>
        </div>
        <div>It returns OK</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Jun 18, 2020 at 2:29
          AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div> <tt>Hi,<br>
              <br>
              Do you see any errors in the logs, after reload ?<br>
              <br>
              Also, if you switch the DBG/4 log_level, do you see the
              logs for the reload ?<br>
              <br>
              Maybe your tests are not accurate enough to spot the
              reload.<br>
              <br>
              Regards,<br>
            </tt>
            <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>

</pre>
            <div>On 6/17/20 9:18 PM, Vic Jolin wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Hi,
                <div><br>
                </div>
                <div>I've been trying to get my dialplan to reload but
                  Im still getting the old dialplan when I test.</div>
                <div>the old dialplan has attributes on it, but I
                  removed it, and when I tried</div>
                <div><br>
                </div>
                <div>opensips-cli -x mi dp_reload<br>
                </div>
                <div><br>
                </div>
                <div>I am still getting the old attribute.</div>
                <div><br>
                </div>
                <div>Anything else I should do or check?</div>
              </div>
              <br>
              <fieldset></fieldset>
              <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>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>