[SR-Users] record_route_preset and set_advertised_address in branch_route

Володимир Іванець volodyaivanets at gmail.com
Fri May 29 21:01:09 CEST 2020


I tried to add it to the *request_route* and the behavior didn't change.
According to the function description and the example, it is meant for new
branches that are created in the *failure_route*. The requirement is to
send INVITEs to all contacts at the same time.

I figured that I can just use *insert_hf* to create Record-Route headers
she way they need to be. It does not affect other branches which works for
me.

Thank you!

пт, 29 трав. 2020 о 21:16 Sergiu Pojoga <pojogas at gmail.com> пише:

> *> t_save_lumps* look like it's meant for serial forking
>
> I don't think so. Have you tried it?
>
> Regards,
>
> On Fri, May 29, 2020 at 12:55 PM Володимир Іванець <
> volodyaivanets at gmail.com> wrote:
>
>> Hello Sergiu,
>>
>> Thank you for the suggestion. Sorry, I had to clarify that I'm using
>> parallel forking and *t_save_lumps* look like it's meant for serial
>> forking.
>>
>> Thank you!
>>
>> пт, 29 трав. 2020 о 18:55 Sergiu Pojoga <pojogas at gmail.com> пише:
>>
>>> Check out the  t_save_lumps() function, which should solve your problem.
>>>
>>> https://kamailio.org/docs/modules/5.3.x/modules/tm.html#tm.f.t_save_lumps
>>>
>>> On Fri, May 29, 2020 at 11:12 AM Володимир Іванець <
>>> volodyaivanets at gmail.com> wrote:
>>>
>>>> Hello!
>>>>
>>>> I'm having interesting behavior and wanted to ask if someone knows if
>>>> this is correct or not. Kamailio v5.3.3. is used.
>>>>
>>>> Asterisk sends INVITE to Kamailio. Kamailio performs lookup. Some
>>>> contacts require Record-Route and Via headers adjustments before sending
>>>> out INVITEs. I use functions *record_route_preset* and
>>>> *set_advertised_address* in the branch_route.
>>>>
>>>> Everything works as expected when branch 0 does not require changes.
>>>> But when it does, changes are applied to all other branches as well.
>>>>
>>>> Is it by design or it's a bug?
>>>>
>>>> Thank you!
>>>> _______________________________________________
>>>> 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
>>>
>> _______________________________________________
>> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200529/31547b62/attachment.html>


More information about the sr-users mailing list