<div dir="ltr">Hi Bogan,<div><font face="arial, sans-serif">Yes my opensips predictably crashes, when I do routes reload. Even when I do not change anythihg. But I think.. It' s probably crashes when I use </font></div><div><font face="arial, sans-serif">return s<span style="color:rgb(102,102,102);font-size:13.008px">tatement like:</span></font></div><div>if (is_method("INVITE")) {<span style="color:rgb(102,102,102);font-family:"Trebuchet MS",sans-serif,Verdana,Arial;font-size:13.008px"><br></span></div><div> route(get_account_code);<br> route(check_callerid);<br> route(number_normalize);<br></div><div>}</div><div><br></div><div>route[check_callerid]{<br> xlog("L_INFO","Check callerid to path for operators\n");<br> if(! dp_translate(999,$fU,$avp(FromNum))){<br> send_reply(404,"Bad From User");<br> exit;<br> } else {<br> return;<br> }<br>}<br></div><div>When Opensips run as systemd service It restarts and<font face="arial, sans-serif"> core was not generated.</font></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 25 июн. 2019 г. в 18:06, Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>>:<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 bgcolor="#FFFFFF">
<tt>Hi Kirill,<br>
<br>
Does your opensips predictably crashes each time you do the routes
reload ? if yes, do you get each time an invalid corefile ? <br>
<br>
Best regards,<br>
</tt>
<pre class="gmail-m_1563049264936379451moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="gmail-m_1563049264936379451moz-txt-link-freetext" href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
<a class="gmail-m_1563049264936379451moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/" target="_blank">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
<div class="gmail-m_1563049264936379451moz-cite-prefix">On 06/25/2019 11:47 AM, Kirill
Galinurov wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">One more information
<div>I run opensips in debug mode with command:<br>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">opensips -f
/etc/opensips/opensips.cfg.j2 -p "python3
/etc/opensips/opensips-preproc.py" a Q_MALLOC_DBG -m
16832 -M 512</span></span></div>
</div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br>
</span></span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">After </span></span><span style="color:rgb(0,0,0);font-family:monospace">opensips-cli
-x mi reload_routes</span></div>
<div><span style="font-family:monospace"><span style="font-weight:bold;color:rgb(255,84,84)">ERROR</span><span style="color:rgb(0,0,0)">: communication exception for
'reload_routes' returned: </span><br>
<span style="font-weight:bold;color:rgb(255,84,84)">ERROR</span><span style="color:rgb(0,0,0)">: Is OpenSIPS running?</span><br>
</span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br>
</span></span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">Logs:</span></span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br>
</span></span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">Jun 25 04:37:33 [21481]
DBG:core:fix_actions: fixing t_was_cancelled,
/etc/opensips/opensips_routes.cfg:346
</span><br>
Jun 25 04:37:33 [21481] <a class="gmail-m_1563049264936379451moz-txt-link-freetext">INFO:core:routes_reload_per_proc</a>:
process successfully parsed new cfg (seq 1)
<br>
Jun 25 04:37:55 [21460] DBG:core:reload_routing_script:
done with waiting after 20001 miliseconds
<br>
Jun 25 04:38:13 [21457] DBG:core:handle_sigs: unknown
child process 21458 ended. Ignoring
<br>
Jun 25 04:38:13 [21457] DBG:core:handle_sigs: OpenSIPS
exit status = 139
<br>
Jun 25 04:38:13 [21457] <a class="gmail-m_1563049264936379451moz-txt-link-freetext">INFO:core:handle_sigs</a>: child
process 21463 exited by a signal 11
<br>
Jun 25 04:38:13 [21457] <a class="gmail-m_1563049264936379451moz-txt-link-freetext">INFO:core:handle_sigs</a>: core was
generated
<br>
Jun 25 04:38:13 [21457] <a class="gmail-m_1563049264936379451moz-txt-link-freetext">INFO:core:handle_sigs</a>: terminating
due to SIGCHLD</span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br>
</span></span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">(gdb) bt full:</span><br>
</span></div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">#0 0x00000000004652b0 in ?? ()
</span><br>
No symbol table info available.
<br>
#1 0x0000000000000044 in ?? ()
<br>
No symbol table info available.
<br>
#2 0x000053d70577fc74 in ?? ()
<br>
No symbol table info available.
<br>
#3 0x0000000000000000 in ?? ()
<br>
No symbol table info available.<br>
</span><span style="font-family:monospace">
<br>
</span></div>
</div>
</div>
<br>
<fieldset class="gmail-m_1563049264936379451mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a class="gmail-m_1563049264936379451moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="gmail-m_1563049264936379451moz-txt-link-freetext" 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>