[Users] Help with pseudo-variable

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Nov 8 16:20:01 CET 2005

Hi Daryl,

you cannot use pseudo variable everywhere. To see exactly where you can 
use them, please read carefully the description of the avpops function's 

For ex., in your case, move first the FROM URI username into an AVP:
and them check the it against your avp:
    if (avp_check("s:myavp", "eq/$tmp/i")) {

do not forget to define the "tmp" avp alias (ex: tmp=i:13). See:


Daryl Sanders wrote:

>First I want to say thank you to everyone for all the kind help I've
>received as I start to dig into OpenSER.
>I think I'm starting to get a grasp of avps, as I've worked with SER
>for a while, but I am seriously struggling to understand the proper
>use of pseudo variables in OpenSER.
>My thought was to try something like this...
>if (avp_check("s:myavp", "eq/$fU/i")) {
># do something here...
>I was hoping to match against the From URI username with the $fU
>pseudo-variable, but this doesn't appear to work. I read the doc but
>it's still pretty gray to me.
>- Daryl
>Users mailing list
>Users at openser.org

More information about the Users mailing list