[OpenSIPS-Users] using pseudo-variables while assigning keys to memcache

Brett Nemeroff brett at nemeroff.com
Wed Jul 21 15:47:26 CEST 2010


Try pushing the PV to an AVP. That will probably lex better



On Jul 21, 2010, at 2:19 AM, Jayesh Nambiar <jayesh.voip at gmail.com>
wrote:

> Hello All,
> I have been experimenting with the localcache and memcache module
> for a while and came across a strange problem while defining keys
> for cache using the pseudo-variables.
> For eg: If i wish to use a key name which starts with a pseudo-
> variable or if I wish to use two pseudo-variables in a key, it is
> not possible. Like if I try to use function like:
> cache_store("local", "$fU_passwd", "$avp(passwd)", 1800), this does
> not work since opensips does not start because of syntax error
> invalid pseudo-variable "$fU_".
> Also if I wish to use something like cache_store("local", "status_
> $fU_$si", "$avp(status)", 1800), even this does not work with same
> syntax error.
> Whereas if I use cache_store("local", "status_$fU$si", "$avp
> (status)", 1800), this will work.
>
> I think there should be some character to be introduced which
> indicates the end of pseudo-variable so that the script writer has
> the flexibility to define the variables according to his/her
> requirement. Also this might be affecting other areas where pseudo-
> variables are allowed in the functions etc.
>
> Just thought to get this into the notice.
>
> --- Jayesh
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list