[OpenSIPS-Users] uac_replace_from in CANCEL
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Dec 20 13:31:02 UTC 2023
Hi Jason,
In transactional stateful SIP, the CANCEL requests are hop by hop - each
hop in the path is generating its own CANCEL requests to the next hop,
which consumes it; there is no actual relaying of the CANCELs. So, the
replacing (which works in relaying mode only) doesn't fit here.
Even more, the RFC3261 gives a rigorous way for building the CANCEL
requests, they are to be built 100% based on the INVITE request only
(nothing more). OpenSIPS internally builds the CANCEL in accordance to
the corresponding INVITE, so you should not need any such changes.
May you detail why you think you need this FROM replacement?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
https://www.siphub.com
On 20.12.2023 12:38, nz deals wrote:
> Hi,
> I've been attempting to modify the From header in the CANCEL, but it
> seems the changes aren't taking effect. I've also experimented with
> remove_hf and append_hf, but unfortunately, these methods didn't work
> either. Could someone kindly offer suggestions if I might be
> overlooking something?
>
> This is in the main request route
>
> if (is_method("CANCEL")) {
> uac_replace_from("","sip:test at test.com
> <mailto:sip%3Atest at test.com>");
> if (t_check_trans())
> t_relay(8);
> exit;
> }
>
>
>
> Regards,
> Jason
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20231220/04cee59c/attachment.html>
More information about the Users
mailing list