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:[email protected] <mailto:sip%[email protected]>");
                if (t_check_trans())
                        t_relay(8);
                exit;
        }



Regards,
Jason

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to