[SR-Users] Re: Is the Contact header required for the dialog module?

2024-01-25 Thread Unai Rodriguez via sr-users
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 d

[SR-Users] Re: Roadmap to next major Kamailio release series v5.8.x

2024-01-25 Thread Henning Westerholt via sr-users
Hello Daniel, we will manage to commit an initial version of the module which some work in progress still open to the repository by the end of this month. Thanks, Henning -- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.com > -Original Message- > F

[SR-Users] How to assign xavp array to htable?

2024-01-25 Thread Benoit Panizzon via sr-users
Hi List Via sql_xquery I get a stacked xavp aka array. I would like to store that stacked xavp into a hash table for later usage in other transactions. Is this possible? Via xarp_parameters explode or implode does not work as that would stringy the same key multiple times. Mit freundlichen Gr

[SR-Users] How to set a branch specific variable?

2024-01-25 Thread Benoit Panizzon via sr-users
Hi Gang I would like to set a variable specific to the branch. Is there a way? append_branch($var(aor1)); $(branch(dst_uri)[-1]) = $var($dst1) $(branch(want_plus)[-1]) = 1; append_branch($var(aor2)); $(branch(dst_uri)[-1]) = $var($dst2) $(branch(want_plus)[-1]) = 0; t_on_branch("BR_T"); branch

[SR-Users] Re: Is the Contact header required for the dialog module?

2024-01-25 Thread Alex Balashov via sr-users
> 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 ther

[SR-Users] Re: How to assign xavp array to htable?

2024-01-25 Thread Alex Balashov via sr-users
> On 25 Jan 2024, at 06:34, Benoit Panizzon via sr-users > wrote: > > Hi List > > Via sql_xquery I get a stacked xavp aka array. > > I would like to store that stacked xavp into a hash table for later usage in > other transactions. Is this > possible? You can always iterate through the XA

[SR-Users] Re: How to assign xavp array to htable?

2024-01-25 Thread Benoît Panizzon via sr-users
Hi Alex > sql_xquery("db", "SELECT ...", "stuff"); > > $var(i) = 0; > > while(defined $xavp(stuff[$var(i)])) { > $sht(tbl=>$xavp(stuff[$var(i)]=>id)) = > $xavp(stuff[$var(i)]=>otherval); $var(i) = $var(i) + 1; > } > > etc. Thank you. So there is no 'direct' way I missed

[SR-Users] usrloc database duplicate keys issue

2024-01-25 Thread Benoît Panizzon via sr-users
Hi I have come across an issue with the usrloc database on kamailio 5.6 and 5.7 Jan 26 07:19:45 dev-cpereg01 kamailio[2708456]: ERROR: [db_query.c:244]: db_do_insert_cmd(): error while submitting query Jan 26 07:19:45 dev-cpereg01 kamailio[2708456]: ERROR: usrloc [ucontact.c:686]: db_insert_uc