THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Walter Doekes (wdoekes)
Attached to Project - sip-router
Summary - $hdr(SomeHeader)[$var(i)] fails when $var(i) is 0
Task Type - Bug Report
Category - Module
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - Hi,
when using $hdr(SomeHeader)[0], you get the 0th index.
when using $hdr(SomeHeadeR)[$var(i)] when $var(i) is 0, you get an error.
Reported initially for opensips:
https://sourceforge.net/tracker/?func=detail&aid=3423601&group_id=2…
I haven't tested the code in kamailio, but I saw the same pattern. It looks very much
like you're affected as well.
Regards,
Walter Doekes
OSSO B.V.
P.S. You'll want to remove the C++-style comments from the patch obviously.
They're there for clarification only.
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=167
You are receiving this message because you have requested it from the Flyspray bugtracking
system. If you did not expect this message or don't want to receive mails in future,
you can change your notification settings at the URL shown above.