[OpenSIPS-Devel] [ opensips-Bugs-2958257 ] hdr script var does not support [0] index

SourceForge.net noreply at sourceforge.net
Thu Mar 4 16:41:49 CET 2010


Bugs item #2958257, was opened at 2010-02-25 00:47
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2958257&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
>Group: 1.6.x
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Roman Shpount (rshpount)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: hdr script var does not support [0] index

Initial Comment:
When trying to access first element of hdr collection using [0] index <null> is returned. Furthermore,  "DBG:core:pv_get_hdr: index out of range" message is generated in the log.

To reproduce see output of
xlog("L_INFO", "TRACE:TEST: $hdr(Allow)\n");
xlog("L_INFO", "TRACE:TEST: $(hdr(Allow)[0])\n");
while processing any Register message with Allow header. Both log messages are expected to produce the same result. In reality, first log message returns complete Allow header and the second message returns <null>.

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2010-03-04 17:41

Message:
Hi Roman,

bug found and fixed - see trunk, 1.6 and 1.5 releases.

Thanks and regards,
Bogdan

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2010-03-04 16:55

Message:
Hi Roman,

indeed, that seams to be true - let me take a look.

Regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2958257&group_id=232389



More information about the Devel mailing list