<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>the error message from dispatcher is not relevant for runtime, it
is saying that you have to set some parameters to dispatcher
module (those with avp names) because you use
ds_next_dst()/ds_next_domain() -- without those parameters, you
can't do re-routing using failure_route and dispatcher functions.</p>
<p>From the logs, it is nothing showing the cause of the issue,
could be your own modules or something else.</p>
<p>Try to generate a corefile and then get the backtrace with gdb.
To generate the corefile:</p>
<p> - run "ulimit -c unlimited" in the terminal where you start
kamailio<br>
- run kamailio as root user<br>
- reproduce the issue<br>
- there should be a log message saying that the "core was
generated"<br>
- get the output of "bt full" from gdb inspecting the core file</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 22.08.18 11:40, Abdulaziz Alghosh
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAP61Auyu=+kNqRnqjR22auiK8Uv=1KvGsH9j0okt5oyB3dMJTw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">
<div>Hi Everyone,</div>
<div><br>
</div>
<div>I am trying to start kamailio 5.1.4 with two own modules.
After /etc/init.d/kamailio start , I am getting one error of
the dispatcher module and bunch of warrnings because of missed
reply and failure routes. <br>
</div>
<div><br>
</div>
<div>The first error before crashing is:</div>
<div><br>
</div>
<div>ERROR: dispatcher [dispatcher.c:814]: ds_warn_fixup():
failover functions used, but required AVP parameters are NULL
-- feature disabled</div>
<div><br>
</div>
<div><br>
</div>
<div>Later on, when I am trying to register a user (from a soft
phone) i am getting the following:</div>
<div><br>
</div>
<div>ERROR: sl [sl_funcs.c:362]: sl_reply_error(): stateless
error reply used: I'm terribly sorry, server error occurred
(1/SL)<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6960]: CRITICAL:
<core> [core/pass_fd.c:277]: receive_fd(): EOF on 20<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: ALERT:
<core> [main.c:746]: handle_sigs(): child process 6942
exited by a signal 11<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: ALERT:
<core> [main.c:749]: handle_sigs(): core was not
generated<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: INFO: <core>
[main.c:771]: handle_sigs(): terminating due to SIGCHLD<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6959]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6958]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6957]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6956]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6955]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6954]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6953]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6950]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6941]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6944]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6948]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6951]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6946]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6952]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6943]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6949]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6947]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6938]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6937]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6940]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6939]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a kernel: [296301.271457] kamailio[6942]:
segfault at 0 ip (null) sp 00007fffb3ddf368 error 14
in kamailio[400000+442000]<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6945]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6960]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6936]: INFO: <core>
[main.c:826]: sig_usr(): signal 15 received<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: ERROR: jsonrpcs
[jsonrpcs_fifo.c:594]: jsonrpc_fifo_destroy(): cannot delete
the fifo (/tmp/kamailio_jsonrpc.fifo): Operation not permitted<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: ERROR: jsonrpcs
[jsonrpcs_sock.c:511]: jsonrpc_dgram_destroy(): cannot delete
the socket (/tmp/kamailio_rpc.sock): Operation not permitted<br>
Aug 22 10:02:52 sgw1a /sbin/kamailio[6935]: INFO: <core>
[core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not
initialized</div>
<div><br>
</div>
<div>Regarding to the first error of the dispatcher module i
could not find out which calibration i can follow with its
parameters to get rid of this error.<br>
</div>
<div><br>
</div>
<div>Regarding the jasonrpcs and the last two erros, here are my
configuration in kamailio.cfg:</div>
<div><br>
</div>
<div>#/* set the path to RPC fifo control file */<br>
modparam("jsonrpcs", "fifo_name",
"/tmp/kamailio_jsonrpc.fifo")<br>
modparam("jsonrpcs", "fifo_mode", 0755)<br>
modparam("jsonrpcs", "fifo_group", "kamailio")<br>
modparam("jsonrpcs", "fifo_user", "kamailio")<br>
<br>
<br>
#/* set the path to RPC unix socket control file */<br>
modparam("jsonrpcs", "dgram_socket", "/tmp/kamailio_rpc.sock")<br>
modparam("jsonrpcs", "dgram_mode", 0755)<br>
modparam("jsonrpcs", "dgram_user", "kamailio")<br>
modparam("jsonrpcs", "dgram_group", "kamailio")</div>
<div><br>
</div>
<div>I think the root cause is even beyond the dispatcher and
jsonrpcs modules setting.</div>
<div><br>
</div>
<div>Please check the attached where you can find my complete
log file after starting Kamailio.</div>
<div><br>
</div>
<div>Best regards</div>
<div>Abdulaziz<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>