<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Ben,<br>
      <br>
      <tt>I <tt>just pushed the <tt>fi<tt>x on git, it was a<tt>
                really stupid error.<br>
                <br>
                <tt>Thanks <tt>for reporting,</tt></tt><br>
              </tt></tt></tt></tt></tt></tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
    <div class="moz-cite-prefix">On 02/22/2018 03:18 PM, Ben Newlin
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:CB6D2B95-CC97-4795-B09F-DB6B37F6BB4D@genesys.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:11.0pt">I saw this
            behavior in 2.3.2, 2.3.3, and I am now running on HEAD of
            the 2.3 branch.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">Ben Newlin<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <div style="border:none;border-top:solid #B5C4DF
          1.0pt;padding:3.0pt 0in 0in 0in">
          <p class="MsoNormal"><b><span style="color:black">From: </span></b><span
              style="color:black">Bogdan-Andrei Iancu
              <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a><br>
              <b>Date: </b>Thursday, February 22, 2018 at 5:20 AM<br>
              <b>To: </b>OpenSIPS users mailling list
              <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a>, Ben Newlin
              <a class="moz-txt-link-rfc2396E" href="mailto:Ben.Newlin@genesys.com"><Ben.Newlin@genesys.com></a><br>
              <b>Subject: </b>Re: [OpenSIPS-Users] del_uri_param
              failure<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        </div>
        <p class="MsoNormal"><a name="_MailOriginalBody"
            moz-do-not-send="true"><tt><span style="font-size:10.0pt">Hi
                Ben,</span></tt></a><span
            style="mso-bookmark:_MailOriginalBody"><span
              style="font-size:10.0pt;font-family:"Courier
              New""><br>
              <br>
              <tt>What OpensSIPS version and revision are you working
                with ?</tt><br>
              <br>
              <tt>Regards,</tt><br>
              <br>
            </span></span><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
        <pre><span style="mso-bookmark:_MailOriginalBody">Bogdan-Andrei Iancu<o:p></o:p></span></pre>
        <pre><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></pre>
        <pre><span style="mso-bookmark:_MailOriginalBody">OpenSIPS Founder and Developer<o:p></o:p></span></pre>
        <pre><span style="mso-bookmark:_MailOriginalBody">  </span><a href="http://www.opensips-solutions.com" moz-do-not-send="true"><span style="mso-bookmark:_MailOriginalBody">http://www.opensips-solutions.com</span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></pre>
        <pre><span style="mso-bookmark:_MailOriginalBody">OpenSIPS Summit 2018<o:p></o:p></span></pre>
        <pre><span style="mso-bookmark:_MailOriginalBody">  </span><a href="http://www.opensips.org/events/Summit-2018Amsterdam" moz-do-not-send="true"><span style="mso-bookmark:_MailOriginalBody">http://www.opensips.org/events/Summit-2018Amsterdam</span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></pre>
        <div>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody">On 02/22/2018 01:07
              AM, Ben Newlin wrote:<o:p></o:p></span></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt">Hi,</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt"> </span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt">I am very glad to have the new
                del_uri_param function. This was a common problem of
                mine and it is great not to have to use regex to do
                this. However, while implementing this I have run into
                some strange behavior by the function when the URI param
                being deleted does not exist.</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt"> </span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt">In my case I am using the
                dialog module and attempting to remove a URI param just
                after the dialog creation. When the function does not
                find the URI param, it causes the dialog to immediately
                be destroyed and all message processing stops, including
                exiting the script.</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt"> </span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:uri:del_uri_param: requested key not found in RURI</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:dialog:next_state_dlg: unref dlg 0x7f460780a8c8 with
                1 -> 2 in entry 0x7f46077fbfa8</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:core:evi_param_set: adding string param</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:core:evi_param_set: adding string param</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:core:evi_param_set: adding int param</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:core:evi_param_set: adding int param</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:core:destroy_avp_list: destroying list (nil)</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:dialog:next_state_dlg: dialog 0x7f460780a8c8 changed
                from state 1 to state 5, due event 1</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:dialog:dlg_onreply: dialog 0x7f460780a8c8 failed
                (negative reply)</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:dialog:unref_dlg: unref dlg 0x7f460780a8c8 with 1
                -> 1 in entry 0x7f46077fbfa8</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:dialog:unref_dlg: unref dlg 0x7f460780a8c8 with 1
                -> 0 in entry 0x7f46077fbfa8</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:dialog:unref_dlg: ref <=0 for dialog
                0x7f460780a8c8</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:dialog:destroy_dlg: destroying dialog 0x7f460780a8c8</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:dialog:destroy_dlg: dlg expired or not in list - dlg
                0x7f460780a8c8 [3710:1818203549] with clid '</span></span><a
              href="mailto:2-185@127.0.0.1" moz-do-not-send="true"><span
                style="mso-bookmark:_MailOriginalBody"><span
                  style="font-size:10.0pt">2-185@127.0.0.1</span></span><span
                style="mso-bookmark:_MailOriginalBody"></span></a><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">' and tags '185SIPpTag002'
                'NULL'</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:core:destroy_avp_list: destroying list
                0x7f460780c048</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:10.0pt">Feb 21 22:47:42 [371]
                DBG:core:receive_msg: cleaning up</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt"> </span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt">The logs indicate that a
                DLG_EVENT_TDEL is being raised which, when the dialog is
                still in UNCONFIRMED state, causes the dialog to be
                destroyed. It’s not clear to me how or why the
                del_uri_param function could be doing this, especially
                as a transaction hasn’t even been created for the
                message yet in this case. I’m not sure what effect this
                would have if the dialog is in other states or at other
                times during the call.</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt"> </span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt">It took me a while to realize
                it was the del_uri_param function causing this, as it
                seems so strange. But I have verified that when I remove
                the function, or when I verify the URI param exists
                before calling the function, everything is fine. That
                workaround works perfectly well, but it seemed such
                strange and catastrophic error behavior to drop the
                entire message that I wanted to report it anyway to see
                if anything needed to be addressed.</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt"> </span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt">Call traces can be found here:
              </span></span><a href="https://pastebin.com/9FnmJCD9"
              moz-do-not-send="true"><span
                style="mso-bookmark:_MailOriginalBody"><span
                  style="font-size:11.0pt">https://pastebin.com/9FnmJCD9</span></span><span
                style="mso-bookmark:_MailOriginalBody"></span></a><span
              style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt"> </span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt">You will see the same INVITE is
                offered multiple times as OpenSIPS is not responding
                after dropping the previous requests and dialog.</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt"> </span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt">Thanks,</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt">Ben Newlin</span><o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"> <o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="mso-bookmark:_MailOriginalBody"><span
                style="font-size:11.0pt"><br>
                <br>
                <br>
                <o:p></o:p></span></span></p>
          <pre><span style="mso-bookmark:_MailOriginalBody">_______________________________________________<o:p></o:p></span></pre>
          <pre><span style="mso-bookmark:_MailOriginalBody">Users mailing list<o:p></o:p></span></pre>
          <pre><span style="mso-bookmark:_MailOriginalBody"></span><a href="mailto:Users@lists.opensips.org" moz-do-not-send="true"><span style="mso-bookmark:_MailOriginalBody">Users@lists.opensips.org</span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></pre>
          <pre><span style="mso-bookmark:_MailOriginalBody"></span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true"><span style="mso-bookmark:_MailOriginalBody">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><o:p></o:p></span></pre>
        </blockquote>
        <p class="MsoNormal"><span
            style="mso-bookmark:_MailOriginalBody"><span
              style="font-size:11.0pt"><br>
              <br>
            </span></span><span style="font-size:11.0pt"><o:p></o:p></span></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>