[SR-Users] Core Dump from select stmt
Reda Aouad
reda.aouad at gmail.com
Sat Apr 14 09:35:33 CEST 2012
Hi.
I don't know what your problem is, but here is a more elegant way to do it.
Instead of manually rewriting $ru, try the following function which
achieves the same result:
rewritehostport("ip:port");
Then route(relay).
Reda
On 14 avr. 2012, at 02:56, Akan Technology <forums at akan.net> wrote:
> hello,
>
> I am running kamailio 3.2.2 on Solaris 10 64 bit and I am getting a core dump on this statement:
>
> $ru = "sip:" + $rU + "@" + $sel(cfg_get.registrar1.server_ip)
> + $sel(cfg_get.registrar1.server_port);
>
>
> Here is how the variable is defined:
>
> registrar1.server_ip = "xxx.xxx.xxx.xxx" desc "Registrar server IP address"
> registrar1.server_port = "5080" desc "Registrar server Port"
>
>
> Here is the output from the logs with debug:
>
> 10(25373) ERROR: *** cfgtrace: c=[/opt/kamailio-3.2/etc/kamailio/kamailio.cfg] l=1072 a=65 n=assign
> 10(25373) DEBUG: <core> [select.c:424]: Calling SELECT 1004b2bc0
> 10(25373) DEBUG: <core> [select.c:424]: Calling SELECT 1004b4da0
> 10(25373) ERROR: *** cfgtrace:14(25377) : <core> [pass_fd.c:293]: ERROR: receive_fd: EOF on 22
> 14(25377) DEBUG: <core> [tcp_main.c:3555]: DBG: handle_ser_child: dead child 10, pid 25373 (shutting down?)
> 14(25377) DEBUG: <core> [io_wait.h:617]: DBG: io_watch_del (1003738b8, 22, 0, 0x0) fd_no=18 called
> 14(25377) DEBUG: <core> [tcp_main.c:3316]: DBG: handle_tcp_child: dead tcp child 0 (pid 25373, no 10) (shutting down?)
> 14(25377) DEBUG: <core> [io_wait.h:617]: DBG: io_watch_del (1003738b8, 24, 1, 0x0) fd_no=17 called
> 0(25363) ALERT: <core> [main.c:751]: child process 25373 exited by a signal 11
> 0(25363) ALERT: <core> [main.c:754]: core was generated
> 0(25363) INFO: <core> [main.c:766]: INFO: terminating due to SIGCHLD
> 14(25377) INFO: <core> [main.c:817]: INFO: signal 15 received
>
>
> Here is the full route code:
>
> route[TO_REGISTRAR] {
>
> # check if Registrar server's IP is defined
>
> if (strempty($sel(cfg_get.registrar1.server_ip))) {
>
> xlog("SCRIPT: REGISTRAR - registrar1.server_ip not defined\n");
> return;
>
> }
>
> $ru = "sip:" + $rU + "@" + $sel(cfg_get.registrar1.server_ip) + ":"
> + $sel(cfg_get.registrar1.server_port);
>
> route(RELAY);
> exit;
>
> } # End of TO_Registrar Route
>
>
> I am trying to setup the proxy server to route all registers requests to another kamailio server
>
>
> Thanks
>
> Nathaniel
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
More information about the sr-users
mailing list