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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

SourceForge.net
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: None
Status: Open
Resolution: None
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 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

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel