[OpenSIPS-Users] uac_replace_to segmentation fault
Samuel Muller
sml at l33.fr
Wed Jan 15 15:08:36 CET 2014
FYI,
I noticed that OpenSips does not crash when module parameters are set to :
modparam("uac","restore_mode","none")
means that there's no encoding stuff like this line:
Jan 8 16:26:55 vp-scp1a opensips[29220]: DBG:uac:replace_uri: encode
is=<AAAAAAIDCAQCdV9VQlZdbgVHGUwEQR4RF0EUHAguY29t> len=44
But in that way I can't use replacement back in the next requests.
Hope that helps,
Samuel MULLER
Telecom & Media Consultant
co-owner
L33 NETWORKS
+33 663 128 505
sml at l33.fr
www.l33.fr
On Sat, Jan 11, 2014 at 12:15 PM, Samuel Muller <sml at l33.fr> wrote:
> 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