Yes, this is possible. See the questions that deal with msg_apply_changes():

https://www.kamailio.org/wiki/tutorials/faq/main

Sent from mobile, with due apologies for brevity and errors.

On Feb 7, 2021, at 9:37 AM, alirsm <alirsm@protonmail.com> wrote:


Hi,

Call to a number forwarded to a FAX by using two Kamailio proxies. 

(INVITE) --> KamailioA --> GW1 --> KamailioB --> GW2 --> FAX
FAX --> (RE-INVITE) --> GW2 --> KamailioB --> (TO Header being corrupted)

KamailioB is corrupting TO header when receiving RE-INVITE and causing the call to fail.

1) Only one "uac_replace_from()" is being used in each Kamailio.
2) GW1 is adding +1 (using E164 format) to URI and FROM headers.

I was wondering if any of the above might cause the TO header corruption.

Any help would be appreciated.
AL

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users