<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: { &quot;status&quot;: 0, &quot;return_value&quot;: { &quot;action&quot;: &quot;ip_authenticated&quot;, &quot;auth_data&quot;: { &quot;reason&quot;: &quot;ip&quot; } } } &lt;null&gt;</div><div>Feb  1 16:21:34 [23220] CRITICAL:core:context_get_ptr: NULL context given</div><div>Feb  1 16:21:34 [23213] INFO:core:handle_sigs: child process 23220 exited by a signal 11</div><div>Feb  1 16:21:34 [23213] INFO:core:handle_sigs: core was not generated</div><div>Feb  1 16:21:34 [23213] INFO:core:handle_sigs: terminating due to SIGCHLD</div><div>Feb  1 16:21:34 [23219] INFO:core:sig_usr: signal 15 received</div><div>Feb  1 16:21:34 [23218] INFO:core:sig_usr: signal 15 received</div><div>Feb  1 16:21:34 [23217] INFO:core:sig_usr: signal 15 received</div><div>Feb  1 16:21:34 [23216] INFO:core:sig_usr: signal 15 received</div><div>Feb  1 16:21:34 [23214] INFO:core:sig_usr: signal 15 received</div><div>Feb  1 16:21:34 [23215] INFO:core:sig_usr: signal 15 received</div><div>Feb  1 16:21:34 [23213] INFO:core:cleanup: 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(&quot;INVITE&quot;)) {</div><div style="font-size:12.8px">            route(&quot;<b>authenticate</b>&quot;);</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(&quot;<a href="http://localhost:8090/ws/callrouter/authenticate?fU=$fU&amp;aU=$aU&amp;fd=$fd&amp;si=$si" target="_blank">http://localhost:8090/ws/callrouter/authenticate?fU=$fU&amp;aU=$aU&amp;fd=$fd&amp;si=$si</a>&quot;, &quot;$avp(routing_result)&quot;, &quot;$avp(routing_retcode)&quot;), <b>resume_auth</b>);</div><div>}</div><div><br></div><div>route[<b>resume_auth</b>] {</div><div>    if ($rc &lt; 0) {</div><div>        xlog(&quot;Error code $var(rcode) in HTTP GET!\n&quot;);</div><div>        send_reply(&quot;501&quot;, &quot;Internal server error&quot;);</div><div>        exit;</div><div>    }</div><div>    else {</div><div>        $json(routing_result) := $avp(routing_result);</div><div>        xlog(&quot;HTTP Request success with result: $json(routing_result) $json(msg_data) \n&quot;);</div><div>        if ($rm == &#39;INVITE&#39;) {</div><div>            <b><font color="#ff0000">async</font></b>(rest_get(&quot;<a href="http://localhost:8090/ws/callrouter/route_invite?fU=$fU&amp;rU=$rU&amp;si=$si" target="_blank">http://localhost:8090/ws/callrouter/route_invite?fU=$fU&amp;rU=$rU&amp;si=$si</a>&quot;, &quot;$avp(routing_result)&quot;, &quot;$avp(routing_retcode)&quot;), <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 &lt; 0) {</div><div>        xlog(&quot;Error code $var(rcode) in HTTP GET!\n&quot;);</div><div>        send_reply(&quot;403&quot;, &quot;GET Forbidden&quot;);</div><div>        exit;</div><div>     }</div></div><div style="font-size:12.8px">     xlog(&quot;resumed_invite got called&quot;);</div><div style="font-size:12.8px">}</div><div style="font-size:12.8px"><br></div></div>