Hello,
I’m trying to use xavu as described in Kamailio documentation:
https://www.kamailio.org/wiki/cookbooks/5.4.x/pseudovariables#xavu_id_-_xavus
$xavu(a=>b)
=
"xyz";
# <- two level naming supported
However, this does not seem to work. The second level is ignored.
When calling pv_xavu_print() it only shows the last element set, e.g.:
$xavu(cdru=>one) = "one" ;
$xavu(cdru=>two) = "two" ;
pv_xavu_print() ;
Result:
11(14989) INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core> [core/xavp.c:592]: xavx_print_list_content(): *** (l:0 - 0x7f217c55eab8) XAVU name: cdru
11(14989) INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core> [core/xavp.c:593]: xavx_print_list_content(): XAVU id: 1863997055
11(14989) INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core> [core/xavp.c:594]: xavx_print_list_content(): XAVU value type: 2
11(14989) INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core> [core/xavp.c:603]: xavx_print_list_content(): XAVU value (str): two
11(14989) INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core> [core/xavp.c:629]: xavx_print_list_content(): *** (l:0 - 0x7f217c55eab8) end
11(14989) INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core> [core/xavp.c:632]: xavx_print_list_content(): ----- end XAVU list: 0x7f217c55eab8 (level=0)
Am I missing something, or is this a bug ?
Regards,
Nicolas.