<div dir="ltr">Hi Bogdan,<div><br></div><div>Yes, I've done a git pull on 2.1 branch yesterday before recompiling the whole thing but I've got the same error.</div><div><br></div><div>Regards,</div><div>Minh</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-02 12:25 GMT+01:00 Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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 cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
<div>On <a href="tel:02.02.2016%2012" value="+33202201612" target="_blank">02.02.2016 12</a>:44, Minh Phan wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<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>INFO:core:handle_sigs</a>: child
process 23220 exited by a signal 11</div>
<div>Feb 1 16:21:34 [23213] <a>INFO:core:handle_sigs</a>: core was
not generated</div>
<div>Feb 1 16:21:34 [23213] <a>INFO:core:handle_sigs</a>:
terminating due to SIGCHLD</div>
<div>Feb 1 16:21:34 [23219] <a>INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23218] <a>INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23217] <a>INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23216] <a>INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23214] <a>INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23215] <a>INFO:core:sig_usr</a>: signal 15
received</div>
<div>Feb 1 16:21:34 [23213] <a>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 href="http://localhost:8090/ws/callrouter/authenticate?fU=$fU&aU=$aU&fd=$fd&si=$si" target="_blank"></a><a href="http://localhost:8090/ws/callrouter/authenticate?fU=$fU&aU=$aU&fd=$fd&si=$si" target="_blank">http://localhost:8090/ws/callrouter/authenticate?fU=$fU&aU=$aU&fd=$fd&si=$si</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 href="http://localhost:8090/ws/callrouter/route_invite?fU=$fU&rU=$rU&si=$si" target="_blank"></a><a href="http://localhost:8090/ws/callrouter/route_invite?fU=$fU&rU=$rU&si=$si" target="_blank">http://localhost:8090/ws/callrouter/route_invite?fU=$fU&rU=$rU&si=$si</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></fieldset>
<br>
</div></div><pre>_______________________________________________
Devel mailing list
<a href="mailto:Devel@lists.opensips.org" target="_blank">Devel@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>