<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p><br>
    </p>
    <p>iirc, xavp specs do not support variables in their name, it would
      require some C coding.</p>
    <p><br>
    </p>
    <p>Getting the value might be possible using pv_evalx(), the result
      should be string, but then using {s.int} can get it to int.<br>
    </p>
    <p><br>
    </p>
    <p>If you need an workaround, you can probably do it with using
      sqlops with sql_xquery and some temporary tables, but it can look
      strange in config.  <br>
    </p>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 28.09.17 05:46, Luis Azedo wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:BN4PR13MB064116A3B99E3781C1B300F2A0790@BN4PR13MB0641.namprd13.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
        dir="ltr">
        <p>Hi List,</p>
        <p><br>
        </p>
        <p>shouldn't this be possible ?</p>
        <p><br>
        </p>
        <p><span style="font-family: Calibri, Helvetica, sans-serif,
            EmojiFont, "Apple Color Emoji", "Segoe UI
            Emoji", NotoColorEmoji, "Segoe UI Symbol",
            "Android Emoji", EmojiSymbols; font-size: 16px;">$xavp(ulattrs=>first)
            = 33;</span><br>
        </p>
        <div>$var(ccv) = "whatever";</div>
        <div><span style="font-size: 12pt;">$xavp(ulattrs[0]=>$var(ccv))
            = "some value";</span><br>
        </div>
        <div><span style="font-size: 12pt;"><br>
          </span></div>
        <div><span style="font-size: 12pt;">when using in the particular
            case of usrloc attrs, i see the value of the attr created as
            "first" (correct) and "<span>$var(ccv)" which i believe is
              incorrect, it should be "<span style="font-family:
                Calibri, Helvetica, sans-serif, EmojiFont, "Apple
                Color Emoji", "Segoe UI Emoji",
                NotoColorEmoji, "Segoe UI Symbol",
                "Android Emoji", EmojiSymbols; font-size:
                16px;">whatever</span>".</span></span></div>
        <div><span style="font-size: 12pt;"><span><br>
            </span></span></div>
        <div><span style="font-size: 12pt;"><span>thoughts ?</span></span></div>
        <div><span style="font-size: 12pt;"><span><br>
            </span></span></div>
        <div><span style="font-size: 12pt;"><br>
          </span></div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Development Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.kamailio.org">sr-dev@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<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>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>