[OpenSIPS-Users] Using pseudo variables everywhere

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Oct 28 16:21:25 CET 2008


Hi Kristian,

That is a good question.

unfortunately, the way the pseudo-variable were initially added, drove 
us on a up-side-down approach:
    - the interpretation of the PVs is done inside the script functions 
- so the functions need to to be able to understand PVs
    - normal way is to have PVs totally transparent for functions - they 
need to be managed at script level (at upper level).

Regards,
Bogdan

Kristian Kielhofner wrote:
> Hello everyone,
>
>   Something I've always wondered - why is the use of pseudo variables
> so inconsistent?
>
>   Recently I needed to be able to call load_gws() with an AVP/pseudo variable:
>
> load_gws($avp(i:45))
>
>   Of course this is not allowed even though that is the most elegant
> solution in my scenario.
>
>   I don't have any other specific examples but I have noticed this
> several times before.  Whether it's the core OpenSIPS script, a
> module, etc the use of pseudo variables seems to be inconsistent.
> What's up with that?
>
>   




More information about the Users mailing list