[SR-Users] several uac_replace_from in one dialog

Никитенко Виталий v1t83 at yandex.ru
Tue Jun 9 12:01:18 CEST 2015


Hi!
Making calls via different trunks through kamailio
for simply so

uac_replace_from ("sip:regname at ipaddress");
if (! t_relay ())
{
   uac_replace_from ("sip:regname2 at ipaddress");
   t_relay ()
}
exit

and run tcpdump i see in fisrt INVITE
From: "testname" <sip: regname @ ipaddress>; tag = as21aea6e0


in second INVITE
From: "testname" <sip: regname @ ipaddress sipregname2 @ ipaddress>; tag = as21aea6e0

and in the log file EROOR: can not parse From URI, and then can not find a BYE to terminate the call
I try do
remove_hf
insert_hf
but then i do second remove_hf it realy not delete and i have two field From.
Who can tell me how few times to change the From field in a one dialog?



More information about the sr-users mailing list