<div dir="ltr">Hi Bogdan,<div><br></div><div>Yes, I&#39;ve done a git pull on 2.1 branch yesterday before recompiling the whole thing but I&#39;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">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</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: { &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] <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(&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"></a><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"></a><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>
      <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>