<div dir="ltr"><div dir="ltr">Hi<br>I'm building some system with failover trunk<br>but my providers requires to set their doamin in domain part of To Header<br><br>so when I rewrite it at the my failure_route<br><br>$td = FAILOVER_PROVIDER<br>my To filed looks like<br>To: <sip: 123@my.failover.providermy.main.provider><br>what i tried:<br>Move this change to BRANCH_ROUTE:<br>here tried as <br>$td =  as <br>uac_replace_to('',"newToFieldValue)<br><br>Move to the my custom route with both variants<br>But result is the same<br>kamailio 5.1<br><br><div>version: kamailio 5.1.5 (x86_64/linux) d06080</div><div>flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES</div><div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB</div><div>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.</div><div>id: d06080</div><div>compiled on 00:43:08 Aug 23 2018 with gcc 6.3.0</div></div></div>