<div dir="ltr"><div>Hi community.</div><div>I have a question regarding usage of core function - append_branch().</div><div>It's pretty clear for me, what is a purpose of it, but I have a few tricky questions regarding it.</div><div><br></div><div>First, how system behaves in case if I call append_branch() but don't make any changes on R-URI of a paternal branch - branch[0] ?<br></div><div>What will happen when both branches reach t_relay() function?</div><div>Will OpenSIPS application get that those branches have the same INVITE request, with completely similar destination URIs? And will it ignore branch[1] since of that?</div><div>In case if not, will those INVITE requests from branch[0] and branch[1] have different "branch=" values in the top most Via header (showing to remote system that those two are different transactions) ?<br></div><div><br></div><div>Second question is, what if I manually set destination URI just before calling append_branch():<br></div><div>$du = "sip:<a href="http://some.domain.com:5060">some.domain.com:5060</a>" ;<br></div><div>append_branch();<br></div><div><br></div><div>Will the second branch ( branch[1] ) inherit the same destination URI?</div><div>Or will it set its own destination URI using R-URI it inherited from branch[0] ?</div><div><br></div><div>Thanks for an answer in advance!<br></div><div><br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><font style="background-color:rgb(255,255,255)" color="#0b5394">-- <br>BR, Donat Zenichev
<br><br></font></div></div></div></div></div></div></div></div>