Hello,
the changes to headers/body of sip messages are not applied immediately,
see:
-
http://www.kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or
In your case, you can use msg_apply_changes() before the second
uac_replace_from().
A better option is to use branch_route and do
Hi!
Making calls via different trunks through kamailio
for simply so
uac_replace_from ("sip:regname@ipaddress");
if (! t_relay ())
{
uac_replace_from ("sip:regname2@ipaddress");
t_relay ()
}
exit
and run tcpdump i see in fisrt INVITE
From: "testname" ; tag = as21aea6e0
in second INVITE
Fr