Copyright © 2003 FhG FOKUS
Copyright © 2005 voice-system.ro
Revision History | |
---|---|
Revision $Revision: 4594 $ | $Date: 2008-08-06 12:08:33 +0200 (Wed, 06 Aug 2008) $ |
Table of Contents
List of Examples
is_user
usagehas_totag
usageuri_param
usageuri_param
usageadd_uri_param
usagetel2sip
usageis_uri_user_e164
usageCheck if the username in credentials matches the given username.
Meaning of the parameters is as follows:
username - Username string.
This function can be used from REQUEST_ROUTE.
Check if To header field uri contains tag parameter.
This function can be used from REQUEST_ROUTE.
Find if Request URI has a given parameter with no value
Meaning of the parameters is as follows:
param - parameter name to look for.
This function can be used from REQUEST_ROUTE.
Find if Request URI has a given parameter with matching value
Meaning of the parameters is as follows:
param - parameter name to look for.
value - parameter value to match.
This function can be used from REQUEST_ROUTE.
Add to RURI a parameter (name=value);
Meaning of the parameters is as follows:
param - parameter to be appended in “name=value” format.
This function can be used from REQUEST_ROUTE.
Converts RURI, if it is tel URI, to SIP URI. Returns true, only if conversion succeeded or if no conversion was needed (like RURI was not tel URI.
This function can be used from REQUEST_ROUTE.
Checks if userpart of URI stored in pseudo variable is E164 number.
This function can be used from REQUEST_ROUTE and FAILURE_ROUTE.
Example 1.7. is_uri_user_e164
usage
... if (is_uri_user_e164("$fu")) { # Check From header URI user part ... } if (is_uri_user_e164("$avp(i:705)") { # Check user part of URI stored in avp i:705 ... }; ...