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.
Submitted By: Roman Shpount (rshpount)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: hdr script var does not support  index
When trying to access first element of hdr collection using  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))\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>.