On 25 Jan 2024, at 03:35, Unai Rodriguez via sr-users
<sr-users(a)lists.kamailio.org> wrote:
I tried this (and some variations) to no avail:
request_route {
insert_hf("Contact: $fu\r\n");
...
...
I see the Contact header inserted but after receiving the first SIP INVITE (ie too late).
Is there a way I can instruct the DIALOG module to use a value of Contact that’s been
computed dynamically on the config? Is it possible to modify what Kamailio holds in memory
for the value of Contact before the dialog module processes it? Any other points on how I
could deal with this missing Contact header?
I believe that calling msg_apply_changes() will sync the change lumps to the in-memory
message structure.
Whether this will affect the version of the message that `dialog` operates on, I'm not
100% sure...
-- Alex
--
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web:
https://evaristesys.com
Tel: +1-706-510-6800