<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>Hello,</p>
    <p>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.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 27.09.20 20:05, Chaigneau, Nicolas
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:AM4PR0202MB28202A78E057C7AF991BBFAEE6340@AM4PR0202MB2820.eurprd02.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I’m trying to use xavu as described in
          Kamailio documentation:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><a
href="https://www.kamailio.org/wiki/cookbooks/5.4.x/pseudovariables#xavu_id_-_xavus"
            moz-do-not-send="true">https://www.kamailio.org/wiki/cookbooks/5.4.x/pseudovariables#xavu_id_-_xavus</a><o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div style="mso-element:para-border-div;border:solid #CCCCCC
          1.0pt;padding:8.0pt 12.0pt 8.0pt 12.0pt;background:#FBFAF9">
          <p class="MsoNormal"
            style="margin-bottom:16.8pt;background:#FBFAF9;border:none;padding:0cm">
            <span
style="font-size:10.5pt;font-family:Consolas;color:#333333;mso-fareast-language:FR">$xavu</span><span
style="font-size:10.5pt;font-family:Consolas;color:#66CC66;mso-fareast-language:FR">(</span><span
style="font-size:10.5pt;font-family:Consolas;color:#333333;mso-fareast-language:FR">a</span><span
style="font-size:10.5pt;font-family:Consolas;color:#66CC66;mso-fareast-language:FR">=></span><span
style="font-size:10.5pt;font-family:Consolas;color:#333333;mso-fareast-language:FR">b</span><span
style="font-size:10.5pt;font-family:Consolas;color:#66CC66;mso-fareast-language:FR">)</span><span
style="font-size:10.5pt;font-family:Consolas;color:#333333;mso-fareast-language:FR">
            </span><span
style="font-size:10.5pt;font-family:Consolas;color:#66CC66;mso-fareast-language:FR">=</span><span
style="font-size:10.5pt;font-family:Consolas;color:#333333;mso-fareast-language:FR">
            </span><span
style="font-size:10.5pt;font-family:Consolas;color:red;mso-fareast-language:FR">"xyz"</span><span
style="font-size:10.5pt;font-family:Consolas;color:#66CC66;mso-fareast-language:FR">;</span><span
style="font-size:10.5pt;font-family:Consolas;color:#333333;mso-fareast-language:FR">
            </span><span
style="font-size:10.5pt;font-family:Consolas;color:#339933;mso-fareast-language:FR">#
              <- two level naming supported</span><span
style="font-size:10.5pt;font-family:Consolas;color:#333333;mso-fareast-language:FR"><o:p></o:p></span></p>
        </div>
        <p class="MsoNormal">However, this does not seem to work. The
          second level is ignored.<o:p></o:p></p>
        <p class="MsoNormal">When calling pv_xavu_print() it only shows
          the last element set, e.g.:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">$xavu(cdru=>one)
            = "one" ;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">$xavu(cdru=>two)
            = "two" ;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">pv_xavu_print() ;<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Result:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">11(14989)
            INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core>
            [core/xavp.c:592]: xavx_print_list_content():      *** (l:0
            - 0x7f217c55eab8) XAVU name: cdru<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">11(14989)
            INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core>
            [core/xavp.c:593]: xavx_print_list_content():      XAVU id:
            1863997055<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">11(14989)
            INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core>
            [core/xavp.c:594]: xavx_print_list_content():      XAVU
            value type: 2<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">11(14989)
            INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core>
            [core/xavp.c:603]: xavx_print_list_content():      XAVU
            value (str): two<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">11(14989)
            INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core>
            [core/xavp.c:629]: xavx_print_list_content():      *** (l:0
            - 0x7f217c55eab8) end<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:Consolas">11(14989)
            INFO: {1 1 INVITE 7rc2rGgOYS56zDqN} <core>
            [core/xavp.c:632]: xavx_print_list_content(): ----- end XAVU
            list: 0x7f217c55eab8 (level=0)<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Am I missing something, or is this a bug ?<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Regards,<o:p></o:p></p>
        <p class="MsoNormal">Nicolas.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <span style="font-size: 9px; line-height: 10px;">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.</span>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>