[OpenSIPS-Devel] Dialog module crash with 2 calls to async in 2.1

Minh Phan mphan at wengo.com
Tue Feb 2 12:38:23 CET 2016


Hi Bogdan,

Yes, I've done a git pull on 2.1 branch yesterday before recompiling the
whole thing but I've got the same error.

Regards,
Minh

2016-02-02 12:25 GMT+01:00 Bogdan-Andrei Iancu <bogdan at opensips.org>:

> Hi Minh,
>
> Are you using the latest 2.1 from GIT (2.1.2) ?
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 02.02.2016 12:44, Minh Phan wrote:
>
> Hi list,
>
> 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 *resume_invite *route
> (I see no log from this route). Any help is appreciated!
>
> Regards,
> Minh Phan
>
> ----------------------------------------------------- CRASH LOG
> ---------------------------------------------------------------
> Request INVITE received from 192.168.24.101
> HTTP Request success with result: { "status": 0, "return_value": {
> "action": "ip_authenticated", "auth_data": { "reason": "ip" } } } <null>
> Feb  1 16:21:34 [23220] CRITICAL:core:context_get_ptr: NULL context given
> Feb  1 16:21:34 [23213] INFO:core:handle_sigs: child process 23220 exited
> by a signal 11
> Feb  1 16:21:34 [23213] INFO:core:handle_sigs: core was not generated
> Feb  1 16:21:34 [23213] INFO:core:handle_sigs: terminating due to SIGCHLD
> Feb  1 16:21:34 [23219] INFO:core:sig_usr: signal 15 received
> Feb  1 16:21:34 [23218] INFO:core:sig_usr: signal 15 received
> Feb  1 16:21:34 [23217] INFO:core:sig_usr: signal 15 received
> Feb  1 16:21:34 [23216] INFO:core:sig_usr: signal 15 received
> Feb  1 16:21:34 [23214] INFO:core:sig_usr: signal 15 received
> Feb  1 16:21:34 [23215] INFO:core:sig_usr: signal 15 received
> Feb  1 16:21:34 [23213] INFO:core:cleanup: cleanup
>
>
> -------------------------------------------------------   opensips.cfg
>  ---------------------------------------------------------------------------------------
>
> route{  *#main*
>       ...
>       if (is_method("INVITE")) {
>             route("*authenticate*");
>       }
>       ...
> }
>
>
> route[*authenticate*] {
>     *async*(rest_get("
> <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",
> "$avp(routing_result)", "$avp(routing_retcode)"), *resume_auth*);
> }
>
> route[*resume_auth*] {
>     if ($rc < 0) {
>         xlog("Error code $var(rcode) in HTTP GET!\n");
>         send_reply("501", "Internal server error");
>         exit;
>     }
>     else {
>         $json(routing_result) := $avp(routing_result);
>         xlog("HTTP Request success with result: $json(routing_result)
> $json(msg_data) \n");
>         if ($rm == 'INVITE') {
>             *async*(rest_get("
> <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",
> "$avp(routing_result)", "$avp(routing_retcode)"), *resume_invite*);
>         }
>     }
>     exit;
> }
>
> route [*resume_invite*] {
>     if ($rc < 0) {
>         xlog("Error code $var(rcode) in HTTP GET!\n");
>         send_reply("403", "GET Forbidden");
>         exit;
>      }
>      xlog("resumed_invite got called");
> }
>
>
>
> _______________________________________________
> Devel mailing listDevel at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160202/9da00bd8/attachment.htm>


More information about the Devel mailing list