[Users] Access to pseudo variables from within core
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Nov 7 13:26:39 CET 2005
Hi,
indeed, you can do it by using avp_write()/avp_printf() to write
whatever into an AVP and then avp_check() to test its content.
Th pseudo variables are accessible from all modules and core,
internally, from C code - avpops, xlog, acc, tm does already this.
But accessibility from the script is offered only by avpops at this moment.
regards,
bogdan
Klaus Darilion wrote:
> I think you can do this using avp_check from avpops. regards
> klaus
>
> Brandon Price wrote:
>
>> I have some questions about access to certain variables from within
>> openser. The documentation states that I can access more of the
>> pseudo variables like $fU and $fu from within more modules and the
>> openser core. I am trying to use $hdr(From[0]) something that I can
>> apparently still only do from within avpops or xlog. I need to have
>> openser perform a certain action only if no SIP Display info exists
>> if it does exist I do not want this action performed. For example....
>>
>> if ("$hdr(From[0])") =~ "^\<sip:.*") {....
>> do something
>> } else {
>> do something else...
>> };
>>
>> Or if there is SIP Display info do A else do B. Any help greatly
>> appreciated.
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list