<p></p>
Hi,<br>
<br>
El mié., 26 ago. 2020 20:25, Cindy Leung <notifications@github.com><br>
escribió:<br>
<br>
> Is it possible that the branches are handled differently when they're<br>
> added by append_branch()?<br>
><br>
>         append_branch("sip:1001@gateway1.carrierB.com;transport=tcp", "0.3");<br>
>         append_branch("sip:1001@gateway2.carrierB.com;transport=tcp", "0.2");<br>
>         append_branch("sip:1001@gateway3.carrierB.com;transport=tcp", "0.7");<br>
>         append_branch("sip:1001@gateway4.carrierB.com;transport=tcp", "0.5");<br>
>         append_branch("sip:1001@gateway5.carrierB.com;transport=tcp", "0.6");<br>
>         xlog ("=== $(branch(uri)[0]), $(branch(q)[0])\n");<br>
>         xlog ("=== $(branch(uri)[1]), $(branch(q)[1])\n");<br>
>         xlog ("=== $(branch(uri)[2]), $(branch(q)[2])\n");<br>
>         xlog ("=== $(branch(uri)[3]), $(branch(q)[3])\n");<br>
>         xlog ("=== $(branch(uri)[4]), $(branch(q)[4])\n");<br>
>         t_load_contacts();<br>
>         while (t_next_contacts()) {<br>
>             xlog ("==== $ru\n");<br>
>         }<br>
><br>
><br>
https://www.kamailio.org/docs/modules/devel/modules/tm.html#tm.f.t_load_contacts<br>
<br>
Function t_load_contacts() **removes all branches** from the current<br>
destination set and stores them into the XAVP whose name is configured with<br>
the parameter contacts_avp<br>
<br>
It doesn't matter how you're adding branches before. t_load_contacts() will<br>
remove them.<br>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2449#issuecomment-681135784">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKJIP3KSMFP7FSF5QLSCV5U7ANCNFSM4QFF6F4Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZK5SQ7NMHIUPCF3VIDSCV5U7A5CNFSM4QFF6F42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFCMU5KA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2449#issuecomment-681135784",
"url": "https://github.com/kamailio/kamailio/issues/2449#issuecomment-681135784",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>