Hi all,
I have have been attempting to implement Remote-Party-ID support using
the app_lua module in Kamailio. Since more than one Remote-Party-ID
header may exist, this requires accessing the header pseudo-variable
with an index.
For example: $(hdr(Remote-Party-ID)[2])
Doing this causes Kamailio to output an error to the log when it fails
to parse the PV: 2012-02-02 16:38:58|E| 6(26940) ERROR: app_lua
[app_lua_sr.c:892]: invalid pv [$(hdr(remote-party-id)[0])] (-1/26)
This was triggered using sr.pv.get("$(hdr(remote-party-id)[0])") from
within Lua.
I have also tried sr.pv.get("$hdr(remote-party-id)[0]") which also
failed: 2012-02-02 18:26:28|E|15(26956) ERROR: app_lua
[app_lua_sr.c:892]: invalid pv [$hdr(remote-party-id)[0]] (21/24)
Am I doing something wrong? If not, any ideas for a workaround?
Thanks for your time.