[OpenSIPS-Users] using pseudo-variables while assigning keys to memcache
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Thu Jul 29 16:47:12 CEST 2010
Brett Nemeroff wrote:
> On Thu, Jul 29, 2010 at 9:21 AM, Bogdan-Andrei Iancu
> <bogdan at voice-system.ro <mailto:bogdan at voice-system.ro>> wrote:
>
> because when seeing "$fU_passwd", opensips cannot make difference
> (syntax-based only) between variable named "fU_passwd " or var "fU" +
> string "passwd".
>
> So you need to clarify a bit the syntax to delimit the exact name
> of the
> variable:
>
> cache_store("local", "$(fU)_passwd", "$avp(passwd)", 1800) ;
>
>
> Bogdan,
> I guess I never thought that this syntax would work. Seems a bit
> obvious now looking at it. Is that in the docs? It's good to know..
Brett,
The docs mention the usage of () for Pvar naming - see
http://www.opensips.org/Resources/DocsCoreVar16 ....not sure if clear
enough or not...
Regards,
Bogdan
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro
More information about the Users
mailing list