<div dir="ltr">Calling t_save_lumps() before the changes are made and before t_relay() might help, so that upon failure, Kam restores the SIP message to the original state and then further apply desired changes.<br><div><br></div><div>Cheers,</div><div>--Sergiu</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 7, 2020 at 3:39 PM Ilie Soltanici <<a href="mailto:iliusha.md@gmail.com">iliusha.md@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>We are using a few carries where we are sending calls to, each of them is using a special prefix in the From header in order to manage the callerid. Some of them are not recognizing headers like P-Asserted-Identity or Remote-Party-ID, so for them we have to replace the From header with the corresponding prefix. The way we do - it's by using the uac_replace_from function, which works fine. <br></div><div>The problem is when we are sending the same call to the failover trunk, and that trunk is using a different prefix. We have to call again the uac_replace_from function which is appending the new prefix to the existing one, something like:</div><div><br></div><div>From: <sip:12345@domain.localsip:+12345@domain.local>;tag=as404cb50c</div><div><br></div><div>I was trying to use uac_restore_from() function and call again uac_replace_from, but the result is the same.</div><div><br></div><div>Is there any way to call the uac_restore_from function twice for the same call?</div><div>Thank you.<br></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>