Re: hfl not working as well

Daniel-Constantin Mierla via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <[email protected]>
Can you try with latest git master branch? I pushed a commit trying to
fix it, the problem was in the way the parser computed the length of the
Diversion value, not considering quoted values.

Cheers,
Daniel

On 12.06.25 11:25, ale Gural via sr-users wrote:
>
>
>       ale Gural
>
> 	
> 12:24 PM (0 minutes ago)
> 	
> 	
> to Benoit
>
> I am using KAMAILIO 5.8.6, 
> Diversion:"Ale Gural"<sip:[email protected]
> <mailto:sip%[email protected]>;user=phone>;reason=unconditional;privacy=off;counter=1;user-id="[email protected]"
>
> when I use the $(hfl(Diversion)[0]) I got 
> Diversion:"Ale Gural"<sip:[email protected]
> <mailto:sip%[email protected]>;user=phone>;reason=unconditional;privacy=off;counter=1;user-id="[email protected]
> Is a Bug?
>
> Thanks!
>
> On Thu, Jun 12, 2025 at 12:04 PM Benoit Panizzon
> <[email protected]> wrote:
>
>     Hi
>
>     > Does anyone know why using $(hfl(Diversion)[0]) cuts off the
>     last part of
>     > the value, while hdr doesn't?
>
>     $hfl tries to de-serialize comma (and probably semicolon)
>     separated one
>     line header. So maybe it stumbles over something which causes it to
>     believe the last part belongs to another header?
>
>     Is he missing part in [1]?
>     What does the complete Diversion header causing the issue look like?
>
>     Mit freundlichen Grüssen
>
>     -Benoît Panizzon-
>     -- 
>     I m p r o W a r e   A G    -    Leiter Commerce Kunden
>     ______________________________________________________
>
>     Zurlindenstrasse 29             Tel  +41 61 826 93 00
>     CH-4133 Pratteln                Fax  +41 61 826 93 01
>     Schweiz                         Web  http://www.imp.ch
>     ______________________________________________________
>
>
> __________________________________________________________
> 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!

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio Scalability Training - Online, June 16-19, 2025 -- asipto.com

__________________________________________________________
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!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.