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

SourceForge.net noreply at sourceforge.net
Wed Feb 24 23:47:15 CET 2010


Bugs item #2958257, was opened at 2010-02-24 17:47
Message generated for change (Tracker Item Submitted) made by rshpount
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: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Roman Shpount (rshpount)
Assigned to: Nobody/Anonymous (nobody)
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>.

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

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