[OpenSIPS-Users] uac_replace_to segmentation fault

Samuel Muller sml at l33.fr
Sat Jan 11 12:15:46 CET 2014


Hello back,

Here you ave the result of your needs :

(gdb) f 1
#1  0x00007f83f453bcb9 in replace_uri (msg=msg at entry=0x7f83fd7bfb90,
display=display at entry=0x7fff9017ba30, uri=uri at entry=0x7fff9017ba20,
hdr=<optimized out>, to=44, to at entry=0) at replace.c:432
432 replace.c: No such file or directory.

(gdb) p uac_rrb
$1 = {add_rr_param = 0, check_route_param = 0, is_direction = 0,
get_route_param = 0, register_rrcb = 0, get_remote_target = 0,
get_route_set = 0, append_fromtag = 0, removed_routes = 0x0,
  routing_type = 0x0}


FYI, in the debug package,you have all the uac modules here :

~ $ ls -1 /usr/lib/debug/usr/lib/opensips/modules/ | grep uac
uac_auth.so
uac_redirect.so
uac_registrant.so
uac.so


I hope that you'll find what the matters ...


Samuel

> Hi, Samuel!
>
> Can you go back in gdb and print the following value:
>
> # f 1
> # p uac_rrb
>
> Best regards,
>
> Razvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com

On 01/09/2014 02:21 PM, Samuel Muller wrote:
> Hello Razvan,
>
> All the module parameters are set up as default ...
>
> #modparam("uac","restore_mode"
,"auto")
> #modparam("uac","restore_passwd","")
> #modparam("uac","force_dialog",no)
> #modparam("uac","rr_to_store_param","vst")
>
> the function is called in the branch route only, and only one time, like :
>
> 1300 branch_route[1] {
> ...
> 1310     if (is_method("INVITE")) {
> ...
> 1316         if (isbflagset(PSTNDISPLAY)) {
> 1317             uac_replace_from("+$avp(caller_e164)","$var(caller_pstnuri)");
> 1318         }
> 1319     }
> 1320 }
>
> The same problem happened when I tried with uac_replace_to() (see my
> first email entry).
>
> Thanks a lot,
>
> Samuel



More information about the Users mailing list