Re: How to append_branch() after location lookup without affecting looked up branches?

Benoit Panizzon via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Organization ImproWare AG
Message-ID <[email protected]>
Hi Yuriy

> The branch management is a little bit tricky part. $ru and $du are append
> data only for 0 branch ( it's default one you work with by default). The
> rest you have to manage on your own via $branch variable. Take a look to
> the doc here for clear explanation and example
> 
> 
> https://www.kamailio.org/wikidocs/cookbooks/6.0.x/pseudovariables/#branchname-branch-attributes

Thank you. Yes - now I remember some part of it:

First just:

append_branch();

Then alter that last appended branch which has index -1:

$(branch(dst_uri)[-1]) = "sip:user@host";
$(branch(uri)[-1]) = "sip:user@host";

But still not getting the result I need, the R-URI of that branch I
added still contains the original userpart.

It is sent to the correct host now so that part is solved.

I also attemted:

append_branch("<sip:user@host>");

but got the same result.

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch
______________________________________________________
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.