[Devel] replacing allow_refer_to with allow_uri

Juha Heinanen jh at tutpro.com
Mon Jul 17 16:43:23 CEST 2006


Bogdan-Andrei Iancu writes:

 > if the second param can be whatever pseudo-variable (including avps), 
 > I'm for this change.

yes,  new README says

1.4.6. allow_uri(basename, pseudo-variable)

     * pseudo-variable - Any pseudo-variable defined in OpenSER.

and includes examples:

...
if (allow_uri("basename", "$rt)) {  // Check Refer-To URI
        t_relay();
};
if (allow_uri("basename", "$avp(i:705)") {  // Check URI stored in $avp
(i:705)
        t_relay();
};
...

-- juha



More information about the Devel mailing list