From alex@speakup.nl Tue Dec 21 14:44:59 2010 From: Alex Hermann To: sr-users@lists.kamailio.org Subject: [SR-Users] How to access additional xavp's Date: Tue, 21 Dec 2010 14:44:57 +0100 Message-ID: <201012211444.57585.alex@speakup.nl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2057610477==" --===============2057610477== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, I'm currently toying with xavp's and have some trouble accessing the values. I want to have access to the xavp that isn't the last added one. From the wiki page on http://sip-router.org/wiki/devel/xavp I got the impression that indices are supported, but that doesn't seem to work. In the following fragment i want access to the values 1A & 1B, how to do that? $xavp(test=3D>a) =3D "1A"; $xavp(test[0]=3D>b) =3D "1B"; $xavp(test=3D>a) =3D "2A"; $xavp(test[0]=3D>b) =3D "2B"; =09 xlog("$xavp(test[0]=3D>a)"); xlog("$xavp(test[0]=3D>b)"); xlog("$xavp(test[1]=3D>a)"); xlog("$xavp(test[1]=3D>b)"); pv_xavp_print(); Which gives the following result: Dec 21 14:30:35 veyron wsproxy1[10398]: ERROR: