[Devel] is_domain_local

Juha Heinanen jh at tutpro.com
Wed Jul 19 12:15:37 CEST 2006


is_domain_local is currently used like this:

1.4.3. is_domain_local(variable)

   This function checks if the domain contained in the variable
   is local. The variable can be an avp_name, an avp_alias or a
   special keyword pointing to certain SIP headers from where the
   domain should be taken.

   The input variable can be one of the following:

     * $ruri - take the domain part of the request URI
     * $from - take the domain part of the From header
     * avp - the domain is given by the value of the avp which is
       either an avp_name or an avp_alias

would it be ok to generalize it to take a pseudo variable as argument?

-- juha



More information about the Devel mailing list