[SR-Users] textops.subst_uri does not change all branches

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 23 12:06:20 CET 2020


Hello,

do you needed before creating the transaction? If not, try with a branch
route.

Cheers,
Daniel

On 23.11.20 09:50, Anthony Alba wrote:
> Hello kamailioers,
>
> Version 5.4.2.
>
> I have a R-URI that  I need to change TLS -> TCP in all branches.
>
> I do this in request route before t_relay:
>
> // AoR has multiple contacts, all with transport=TLS
> route[REQUEST] {
> textops.subst_uri("/transport=TLS/transport=TCP/i")
> //parallel forking
> //why doesn't this change all branches?
> t_relay()
> }
> If I print out the R-URI in the branch route, I see that only the
> first R-URI is changed, in the other branches the R-URI transport=TLS
> is not changed to transport=TCP.
>
> Any suggestions on how to get this to work across all Contact addresses?
>
> Thanks
> Anthony Alba
>
> _______________________________________________
> 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
Funding: https://www.paypal.me/dcmierla




More information about the sr-users mailing list