[SR-Users] Issue with UAC restore_mode when restore_dlg is enabled

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 19 08:26:57 CET 2019


I do not recall any relevant changes recently in this part of the code,
so likely to be same result for 5.2.

With restore_dlg set to 1, dialog variables are used for storing the
headers. When do you call uac_replace_from()/_to()? Is it in a branch_route?

Cheers,
Daniel

On 19.02.19 08:07, jenus at cyberchaos.nl wrote:
> Forgot to mention, i'm running kamailio 5.1.7, did not test yet with
> the latest 5.2 release.
>
> Jan
>
>
> jenus at cyberchaos.nl schreef op 2019-02-18 15:22:
>> Hello,
>>
>> I'm running into a issue with restore_mode auto when i enable
>> restore_dlg in the uac module. I have a feature where i reroute calls
>> for a subscriber when it is offline. When routing calls to the
>> subscriber i check the exit status of "lookup("location")" and
>> re-route the call. This works fine. It seems to fail when i hit the
>> failure route (subscriber has a usrloc entry but does not respond). In
>> the failure route i append_branch and reroute the call.
>>
>> The rerouting works fine, but when i receive the ACK on the 200OK on
>> the re-routed call the "restore" feature seems to fail and i end up
>> with a header like:
>>
>> To:
>> <sip:+<null>@voip-dev.domain.nl>;tag=5B8ABC8A-5C6ABE83000EBF35-AB202700
>> in the ACK.
>>
>> If i disable restore_dlg feature from the UAC module it adds the
>> vsf/vst to the Record-Route header and all works fine.
>>
>> Do i need to do something special when i create a new branch and use
>> the restore_dlg feature?
>>
>>
>> Thanks,
>>
>> Jan Hazenberg
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com




More information about the sr-users mailing list