[OpenSIPS-Users] uac_replace_to segmentation fault

Răzvan Crainea razvan at opensips.org
Thu Apr 17 14:33:03 CEST 2014


Hi, Samuel!

Sorry for getting back so late. Do you still have this issue with the 
latest 1.10 source?

Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 01/21/2014 02:44 PM, Samuel Muller wrote:
> Hello Răzvan ,
>
> Yes, rr module is loaded, with this needed parameter :
> modparam("rr","enable_double_rr",1)
>
> others are in default config.
>
> With the module parameters set up as you asked, same problem happened :
>
> [Script Trace][line 362][me][module uac_replace_to] -> (INVITE
> cf6ade52a95d-bvzxxpfi54fl fU=10935 rU=0663128505)
> Jan 21 13:40:49 [1762] DBG:uac:replace_uri: uri to replace
> [sip:8 at ibtel.v.ibrowse.com]
> Jan 21 13:40:49 [1762] DBG:uac:replace_uri: replacement uri is
> [sip:0663128505 at ibtel.v.ibrowse.com]
> Jan 21 13:40:49 [1762] DBG:uac:replace_uri: encode
> is=<AAAAAAh2X1FFV1QbRhspCxAbEh9LWE0GD3Jvd3NlLmNvbQ--> len=48
> Segmentation fault
>
>
> Regards,
>
>
>
> Samuel MULLER
> Telecom & Media Consultant
> co-owner
> L33 NETWORKS
> +33 663 128 505
> sml at l33.fr
> www.l33.fr
>
>
> On Mon, Jan 20, 2014 at 2:59 PM, Răzvan Crainea <razvan at opensips.org> wrote:
>> Hi, Samuel!
>>
>> Are you loading the 'rr' module in your script? Also, have you tried the
>> 'manual' mode?
>>
>> Bet regards,
>>
>>
>> Razvan Crainea
>> OpenSIPS Core Developer
>> http://www.opensips-solutions.com
>>
>> On 01/15/2014 04:08 PM, Samuel Muller wrote:
>>>
>>> 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