<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Ben,<br>
<br>
What OpensSIPS version and revision are you working with ?<br>
<br>
Regards,<br>
</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 01:07 AM, Ben Newlin
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:B246FD6D-3B9D-4B4A-AE8B-98592598A3CB@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;}
/* 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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@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">Hi,<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">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.<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">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.<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:10.0pt">Feb 21
22:47:42 [371] DBG:uri:del_uri_param: requested key not
found in RURI<o:p></o:p></span></p>
<p class="MsoNormal"><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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Feb 21
22:47:42 [371] DBG:core:evi_param_set: adding string param<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Feb 21
22:47:42 [371] DBG:core:evi_param_set: adding string param<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Feb 21
22:47:42 [371] DBG:core:evi_param_set: adding int param<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Feb 21
22:47:42 [371] DBG:core:evi_param_set: adding int param<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Feb 21
22:47:42 [371] DBG:core:destroy_avp_list: destroying list
(nil)<o:p></o:p></span></p>
<p class="MsoNormal"><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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Feb 21
22:47:42 [371] DBG:dialog:dlg_onreply: dialog 0x7f460780a8c8
failed (negative reply)<o:p></o:p></span></p>
<p class="MsoNormal"><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<o:p></o:p></span></p>
<p class="MsoNormal"><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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Feb 21
22:47:42 [371] DBG:dialog:unref_dlg: ref <=0 for dialog
0x7f460780a8c8<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Feb 21
22:47:42 [371] DBG:dialog:destroy_dlg: destroying dialog
0x7f460780a8c8<o:p></o:p></span></p>
<p class="MsoNormal"><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
'<a class="moz-txt-link-abbreviated" href="mailto:2-185@127.0.0.1">2-185@127.0.0.1</a>' and tags '185SIPpTag002' 'NULL'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Feb 21
22:47:42 [371] DBG:core:destroy_avp_list: destroying list
0x7f460780c048<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Feb 21
22:47:42 [371] DBG:core:receive_msg: cleaning up<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">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.<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">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.<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">Call traces
can be found here:
<a href="https://pastebin.com/9FnmJCD9"
moz-do-not-send="true">https://pastebin.com/9FnmJCD9</a><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">You will see
the same INVITE is offered multiple times as OpenSIPS is not
responding after dropping the previous requests and dialog.<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">Thanks,<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"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>