Hello,
I've rebuilt with the following commit:
https://github.com/kamailio/kamailio/commit/aa8589ba66f984e93438a91a7fe8b26…
Confirming the issue is now fixed.
Thanks!
Regards,
Nicolas.
De : Daniel-Constantin Mierla <miconda(a)gmail.com>
Envoyé : mardi 29 septembre 2020 09:33
À : Kamailio (SER) - Users Mailing List; Chaigneau, Nicolas
Objet : Re: [SR-Users] Trying to use xavu with "two level naming"
Hello,
can you try with the latest branch 5.4, there was a mistake in setting the callback
function for parsing the name for this type of variable -- I just pushed a commit for in
to master and 5.4 branches.
Cheers,
Daniel
On 27.09.20 20:05, Chaigneau, Nicolas wrote:
Hello,
I'm trying to use xavu as described in Kamailio documentation:
https://www.kamailio.org/wiki/cookbooks/5.4.x/pseudovariables#xavu_id_-_xav…
$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.
This message contains information that may be privileged or confidential and is the
property of the Capgemini Group. It is intended only for the person to whom it is
addressed. If you are not the intended recipient, you are not authorized to read, print,
retain, copy, disseminate, distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender immediately and delete all copies
of this message.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> --
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Funding:
https://www.paypal.me/dcmierla