<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-NZ" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am using the OpenSIPS 3.2.11 on Debian 11 and using the B2BUA for hair pining to the own OpenSIPS. With sngrep both the original and the B2B calls have clean SIP signalling.<o:p></o:p></p>
<p class="MsoNormal">However, after hang up the call there is at least (it depends if A or B subscriber ends the call) the original call dialog hangs up with call state: "state": 3 , from GUI: “Confirmed Not Acknowledged Call” and the syslog shows many different
errors, e.g. “ERROR:tm:partial_dlg_matching: INV/From not parsed”<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I delete the hanging dialog either from GUI or with cli OpenSIPS crashes:<o:p></o:p></p>
<p class="MsoNormal">(cli): mi dlg_end_dlg dialog_id=f0c.57deb687<o:p></o:p></p>
<p class="MsoNormal">ERROR: communication exception for 'dlg_end_dlg' returned: could not decode json: ''<o:p></o:p></p>
<p class="MsoNormal">ERROR: Is OpenSIPS running?<o:p></o:p></p>
<p class="MsoNormal">(cli):<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Mar 2 17:34:19 sbc1t kernel: [97206.071119] traps: opensips[8143] general protection fault ip:7f1671388250 sp:7ffcc4013100 error:0 in tracer.so[7f167137c000+13000]<o:p></o:p></p>
<p class="MsoNormal">Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: CRITICAL:db_mysql:wrapper_single_mysql_stmt_execute: driver error (1048): Column 'from_tag' cannot be null<o:p></o:p></p>
<p class="MsoNormal">Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: ERROR:acc:acc_db_request: failed to insert into acc table<o:p></o:p></p>
<p class="MsoNormal">Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: ERROR:dialog:build_dlg_t: invalid cseq<o:p></o:p></p>
<p class="MsoNormal">Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: ERROR:dialog:send_leg_bye: failed to create dlg_t<o:p></o:p></p>
<p class="MsoNormal">Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: CRITICAL:tracer:proto2str: unsupported proto 0<o:p></o:p></p>
<p class="MsoNormal">Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: CRITICAL:tracer:proto2str: unsupported proto 0<o:p></o:p></p>
<p class="MsoNormal">Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: CRITICAL:core:sig_usr: segfault in process pid: 8143, id: 2<o:p></o:p></p>
<p class="MsoNormal">Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8141]: INFO:core:handle_sigs: child process 8143 exited by a signal 11<o:p></o:p></p>
<p class="MsoNormal">Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8141]: INFO:core:handle_sigs: core was not generated<o:p></o:p></p>
<p class="MsoNormal">Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8141]: INFO:core:handle_sigs: terminating due to SIGCHLD<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In the script the B2B part is very simple:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">loadmodule "b2b_entities.so"<o:p></o:p></p>
<p class="MsoNormal">modparam("b2b_entities", "script_req_route", "b2b_request")<o:p></o:p></p>
<p class="MsoNormal">modparam("b2b_entities", "script_reply_route", "b2b_reply")<o:p></o:p></p>
<p class="MsoNormal">modparam("b2b_entities", "b2b_key_prefix", "B2B1")<o:p></o:p></p>
<p class="MsoNormal">modparam("b2b_entities", "db_mode", 1)<o:p></o:p></p>
<p class="MsoNormal">#modparam("b2b_entities", "replication_mode", 0)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#### B2B_Logic ####<o:p></o:p></p>
<p class="MsoNormal">loadmodule "b2b_logic.so"<o:p></o:p></p>
<p class="MsoNormal">modparam("b2b_logic", "init_callid_hdr", "Init-CallID")<o:p></o:p></p>
<p class="MsoNormal">modparam("b2b_logic", "server_address", "sip:own_address")<o:p></o:p></p>
<p class="MsoNormal">modparam("b2b_logic", "db_url", "mysql://xxxxxxx@yyyyyyyy")<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">A certain call scenario triggers the B2B call:<o:p></o:p></p>
<p class="MsoNormal">b2b_init_request("top hiding");<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">request and reply routes are just xlogs.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The issue can be simulated any time with the same call scenario.<o:p></o:p></p>
<p class="MsoNormal">Is anyone able to help or just report it as a bug?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
<p class="MsoNormal">Bela<o:p></o:p></p>
</div>
</body>
</html>