[SR-Users] Changing the From User in Failure Route

Mack Hendricks mack at dopensource.com
Wed Jul 6 04:06:48 CEST 2022

Hey All,

I'm just trying to change the From user before I do a 301 Redirect within a
Failure Route.  Here's the code snippet:

$fu = "+15555555555";
append_to_reply("Contact: sip:+1$var(redirect_did)@$si:$sp\r\n");
t_reply("302", "Redirect");

The From user is not changed and msg_apply_changes() isn't allowed.  What
am I doing wrong?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220705/a3d5932e/attachment.htm>

More information about the sr-users mailing list