<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Minh,<br>
<br>
Are you using the latest 2.1 from GIT (2.1.2) ?<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></pre>
<div class="moz-cite-prefix">On 02.02.2016 12:44, Minh Phan wrote:<br>
</div>
<blockquote
cite="mid:CAMqAU1gUNS2yCzE6rqxAYTKS8OD4PvcfZVKzgAuSvF_jMP555A@mail.gmail.com"
type="cite">
<div dir="ltr"><span style="font-size:12.8px">Hi list,</span>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">I am having problem enabling the
dialog module. If I load dialog.so, opensips crashes when it
receives an INVITE message. My configuration is bellow. I
think it is because I call async function twice. I can see
from the log that the second async (in red) is called and my
web service has returned some data. OpenSIPS crash before
getting to the <b>resume_invite </b>route (I see no log from
this route). Any help is appreciated!</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Regards,</div>
<div style="font-size:12.8px">Minh Phan</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">-----------------------------------------------------
CRASH LOG
---------------------------------------------------------------</div>
<div style="font-size:12.8px">
<div>Request INVITE received from 192.168.24.101</div>
<div>HTTP Request success with result: { "status": 0,
"return_value": { "action": "ip_authenticated", "auth_data":
{ "reason": "ip" } } } <null></div>
<div>Feb 1 16:21:34 [23220] CRITICAL:core:context_get_ptr:
NULL context given</div>
<div>Feb 1 16:21:34 [23213] <a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a>: child
process 23220 exited by a signal 11</div>
<div>Feb 1 16:21:34 [23213] <a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a>: core was
not generated</div>
<div>Feb 1 16:21:34 [23213] <a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a>:
terminating due to SIGCHLD</div>
<div>Feb 1 16:21:34 [23219] <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23218] <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23217] <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23216] <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23214] <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23215] <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23213] <a class="moz-txt-link-freetext" href="INFO:core:cleanup">INFO:core:cleanup</a>: cleanup</div>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">-------------------------------------------------------
opensips.cfg
---------------------------------------------------------------------------------------</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">route{ <b>#main</b></div>
<div style="font-size:12.8px"> ...</div>
<div style="font-size:12.8px"> if (is_method("INVITE")) {</div>
<div style="font-size:12.8px"> route("<b>authenticate</b>");</div>
<div style="font-size:12.8px"> }</div>
<div style="font-size:12.8px"> ...</div>
<div style="font-size:12.8px">}</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">
<div>route[<b>authenticate</b>] {</div>
<div> <b><font color="#0000ff">async</font></b>(rest_get("<a
moz-do-not-send="true"
href="http://localhost:8090/ws/callrouter/authenticate?fU=$fU&aU=$aU&fd=$fd&si=$si"
target="_blank"><a class="moz-txt-link-freetext" href="http://localhost:8090/ws/callrouter/authenticate?fU=$fU&aU=$aU&fd=$fd&si=$si">http://localhost:8090/ws/callrouter/authenticate?fU=$fU&aU=$aU&fd=$fd&si=$si</a></a>",
"$avp(routing_result)", "$avp(routing_retcode)"), <b>resume_auth</b>);</div>
<div>}</div>
<div><br>
</div>
<div>route[<b>resume_auth</b>] {</div>
<div> if ($rc < 0) {</div>
<div> xlog("Error code $var(rcode) in HTTP GET!\n");</div>
<div> send_reply("501", "Internal server error");</div>
<div> exit;</div>
<div> }</div>
<div> else {</div>
<div> $json(routing_result) := $avp(routing_result);</div>
<div> xlog("HTTP Request success with result:
$json(routing_result) $json(msg_data) \n");</div>
<div> if ($rm == 'INVITE') {</div>
<div> <b><font color="#ff0000">async</font></b>(rest_get("<a
moz-do-not-send="true"
href="http://localhost:8090/ws/callrouter/route_invite?fU=$fU&rU=$rU&si=$si"
target="_blank"><a class="moz-txt-link-freetext" href="http://localhost:8090/ws/callrouter/route_invite?fU=$fU&rU=$rU&si=$si">http://localhost:8090/ws/callrouter/route_invite?fU=$fU&rU=$rU&si=$si</a></a>",
"$avp(routing_result)", "$avp(routing_retcode)"), <b>resume_invite</b>);</div>
<div> }</div>
<div> }</div>
<div> exit;</div>
<div>}</div>
<div><br>
</div>
<div>route [<b>resume_invite</b>] {</div>
<div> if ($rc < 0) {</div>
<div> xlog("Error code $var(rcode) in HTTP GET!\n");</div>
<div> send_reply("403", "GET Forbidden");</div>
<div> exit;</div>
<div> }</div>
</div>
<div style="font-size:12.8px"> xlog("resumed_invite got
called");</div>
<div style="font-size:12.8px">}</div>
<div style="font-size:12.8px"><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
</blockquote>
<br>
</body>
</html>