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 sip:host2.example.com:8060;transport=tcp duid=stt_h02 1 sip:host3.example.com:8060;transport=tcp duid=stt_h03 2 sip:host1.example.com:8060;transport=tcp duid=tts_h01 2 sip:host2.example.com:8060;transport=tcp duid=tts_h02 2 sip:host3.example.com:8060;transport=tcp duid=tts_h03 The output of "kamctl dialog show” does not show any obvious information that the hosts will be load balanced according to the one with the least number of concurrent sessions.. Is this all I need? Am I missing something or this looks correct? How is the information that dialog keeps connected to the configuration of the backends? Thank you so much With best wishes, Unai Rodriguez On 25 Jan 2024 at 18:48 +0100, Alex Balashov via sr-users <sr-users@lists.kamailio.org>, wrote: > > > > On 25 Jan 2024, at 03:35, Unai Rodriguez via sr-users > > <sr-users@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 > > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to sr-users-le...@lists.kamailio.org > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe:
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: