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