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" <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?
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_...
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 the uac_replace_from() in the branch processing.
Cheers, Daniel
On 09/06/15 12:01, Никитенко Виталий wrote:
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" <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?
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users