<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    whenever you want to add one xavp, you must not provide the index.
    Try:<br>
    <br>
    <div>$xavp(arr=>foo1) = 'bar1';</div>
    <div>$xavp(arr[0]=>foo2) = 'bar2';</div>
    <div>$xavp(arr=>foo1) = 'bar3';</div>
    $xavp(arr[0]=>foo2) = 'bar4';<br>
    <br>
    Note that is still adding as a stack, like for avp. But when you
    provide an index, it is expecting to exist and overwritte if all
    indexes are provided.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 27/12/13 09:34, Kelvin Chua wrote:<br>
    </div>
    <blockquote
cite="mid:CAMF97-e-sUs_DLan28vwZzW3hxJU9_ASSDyURqAt0vMd0_4sjA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>i'm trying to create an array (similar to sql_xquery
          result) using xavp,</div>
        <div>i tried the ff:</div>
        <div><br>
        </div>
        <div>$xavp(arr[0]=>foo1) = 'bar1';</div>
        <div>$xavp(arr[0]=>foo2) = 'bar2';</div>
        <div>$xavp(arr[1]=>foo1) = 'bar3';</div>
        $xavp(arr[1]=>foo2) = 'bar4';
        <div><br>
        </div>
        <div>this does not work.<br>
          <div><br clear="all">
            <div>Kelvin Chua</div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>