Hi Alex/All,
So using msg_apply_changes() worked! This is great, thank you! So now that I
can see results when I do "kamctl dialog show”. I’m using algorithm “call load
distribution” with this config:
# cat /etc/kamailio/dispatcher.list
1 sip:host1.example.com:8060;transport=tcp duid=stt_h01
1
> On 25 Jan 2024, at 03:35, Unai Rodriguez via sr-users
> 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
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
Hi,
Contact is mandatory in INVITEs. Per RFC 3261 § 8.1.1.8 ("Contact"):
The Contact header field MUST be present and contain exactly one SIP
or SIPS URI in any request that can result in the establishment of a
dialog. For the methods defined in this specification, that includes
Hi Unai,
The CONTACT is used as the R-URI in subsequent replies so upstream
providers parse this from my experience.
You can build one yourself in Kamailio if needed using the textops module -
https://kamailio.org/docs/modules/5.7.x/modules/textops.html#textops.f.append_hf
Rough examples: