[SR-Users] Changing the From User in Failure Route
abalashov at evaristesys.com
Wed Jul 6 04:50:01 CEST 2022
If you think about the logic of capriciously changing the From user in just a reply, in a way that doesn’t match the From user in the request which formed the transaction and/or dialog, there… isn’t any. :-)
Sent from mobile, with due apologies for brevity and errors.
> On Jul 5, 2022, at 10:07 PM, Mack Hendricks <mack at dopensource.com> wrote:
> 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?
> Kamailio - Users Mailing List - Non Commercial Discussions
> * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
> * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
More information about the sr-users