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

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Feb 2 12:41:08 CET 2016


1) could set "ulimit -c unlimited" before starting opensips so you can 
get a core file -> provide a backtrace

2) open a bug report on the GITHUB tracker.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 02.02.2016 13:38, Minh Phan wrote:
> 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 
> <mailto: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 Developer
>     http://www.opensips-solutions.com
>
>     On 02.02.2016 12 <tel:02.02.2016%2012>: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",
>>     "$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",
>>     "$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 list
>>     Devel at lists.opensips.org <mailto:Devel at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160202/22c4a602/attachment-0001.htm>


More information about the Devel mailing list