<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>1) could set "ulimit -c unlimited" before starting opensips so
      you can get a core file -&gt; provide a backtrace<br>
      <br>
      2) open a bug report on the GITHUB tracker.<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 13:38, Minh Phan wrote:<br>
    </div>
    <blockquote
cite="mid:CAMqAU1hrA5sLtBsCPHOKDOs5Ay3MHKqroVOV59r1QryJc34A9Q@mail.gmail.com"
      type="cite">
      <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">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></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 moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              <div>
                <div class="h5">
                  <div>On <a moz-do-not-send="true"
                      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" } } } &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
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a></a>:
                          child process 23220 exited by a signal 11</div>
                        <div>Feb  1 16:21:34 [23213] <a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a></a>:
                          core was not generated</div>
                        <div>Feb  1 16:21:34 [23213] <a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a></a>:
                          terminating due to SIGCHLD</div>
                        <div>Feb  1 16:21:34 [23219] <a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                          signal 15 received</div>
                        <div>Feb  1 16:21:34 [23218] <a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                          signal 15 received</div>
                        <div>Feb  1 16:21:34 [23217] <a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                          signal 15 received</div>
                        <div>Feb  1 16:21:34 [23216] <a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                          signal 15 received</div>
                        <div>Feb  1 16:21:34 [23214] <a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                          signal 15 received</div>
                        <div>Feb  1 16:21:34 [23215] <a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                          signal 15 received</div>
                        <div>Feb  1 16:21:34 [23213] <a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:cleanup">INFO:core:cleanup</a></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&amp;aU=$aU&amp;fd=$fd&amp;si=$si"
                            target="_blank"><a class="moz-txt-link-freetext" href="http://localhost:8090/ws/callrouter/authenticate?fU=$fU&amp;aU=$aU&amp;fd=$fd&amp;si=$si">http://localhost:8090/ws/callrouter/authenticate?fU=$fU&amp;aU=$aU&amp;fd=$fd&amp;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 &lt; 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&amp;rU=$rU&amp;si=$si"
                            target="_blank"><a class="moz-txt-link-freetext" href="http://localhost:8090/ws/callrouter/route_invite?fU=$fU&amp;rU=$rU&amp;si=$si">http://localhost:8090/ws/callrouter/route_invite?fU=$fU&amp;rU=$rU&amp;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 &lt; 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 moz-do-not-send="true" href="mailto:Devel@lists.opensips.org" target="_blank">Devel@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
    </blockquote>
    <br>
  </body>
</html>