Perfect. Thank you.
- Jeremy
-----Original Message-----
From: Iñaki Baz Castillo [mailto:ibc@aliax.net]
Sent: Wednesday, January 2, 2008 01:27 PM
To: users(a)lists.openser.org
Subject: Re: [OpenSER-Users] avp_pushto question
El Miércoles, 2 de Enero de 2008, Jeremy George escribió:
while($var(idx) < 5) {
if ($(avp(i:1)[$var(idx)]) != NULL) {
xlog("L_NOTICE", "avp(i:1)[$var(idx)]=$(avp(i:1)[$var(idx)])
avp(i:2)[$var(idx)]=$(avp(i:2)[$var(idx)])\n");
avp_pushto("$ru/username",
"$(avp(i:2)[$var(idx)])");
rewritehostport("10.10.10.10:5060");
xlog("L_NOTICE", "$ru\n");
} else {
xlog("L_NOTICE", "avp(i:1)[$var(idx)] == NULL\n");
}
$var(idx) = $var(idx) + 1;
}
} else {
xlog("L_NOTICE", "avp_db_query() returned no records\n");
};
Forget using avp_pushto, you can do:
$rU = $(avp(i:2)[$var(idx)]);
instead of:
avp_pushto("$ru/username", "$(avp(i:2)[$var(idx)])");
--
Iñaki Baz Castillo
_______________________________________________
Users mailing list
Users(a)lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users