[SR-Users] Trying to use xavu with "two level naming"

Daniel-Constantin Mierla miconda at gmail.com
Tue Sep 29 09:32:34 CEST 2020


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_-_xavus
> <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.
>
>  
>
> 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200929/89d3b704/attachment.htm>


More information about the sr-users mailing list