Re: SIP Diversion Problem
Alex Balashov via sr-users <[email protected]>
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Message-ID | <[email protected]> |
I wonder if manipulating the header structure while iterating through it isn't safe. > On Sep 7, 2025, at 10:35 AM, ale Gural via sr-users <[email protected]> wrote: > > Hello, > I am using version: kamailio 5.8.6 > I try to send in INVITE message the follow Diversion header, > > Diversion: "39988246 39988246" <sip:[email protected]>;privacy=off;reason=unconditional;counter=1,<sip:[email protected]>,<sip:[email protected];user=phone>;privacy=off;reason=unconditional;counter=1 > in my script code I need to separate every diversion Multibody wit the follow (example): > $var(i) = 0; > while($var(i) < $hflc(Diversion) ) { > remove_hf("Diversion"); > $vn(new_div) = $(hfl(Diversion)[1]); > $var(i) = $var(i) +1; > } > > when $var(i) = 1, the kamailio make restart with exit by signal 11 > > > I appreciate your help! > > > > > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected] > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to the sender! -- Alex Balashov Principal Consultant Evariste Systems LLC Web: https://evaristesys.com, https://www.csrpswitch.com Tel: +1-706-510-6800 __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!