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 prototypes:
      http://www.voice-system.ro/docs/avpops/

For ex., in your case, move first the FROM URI username into an AVP:
   avp_printf("$tmp","$fU");
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:
   http://www.voice-system.ro/docs/avpops/ar01s05.html#avp_aliases

regards,
bogdan

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
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to