Brekeke SIP Server Wiki

$getUri

Get the SIP-URI from the specified string.

Syntax:
$getUri( string )
Returns:

a SIP-URI – if found in the string value
null – no SIP-URI found

Version Since:

1.0

 

Where the function can be used:
  • Preliminary rules
  • Regular rules

 

Example:
$getUri(From) = (.+)

Get the SIP-URI from the From header.

$getUri($request) = sip:100@192.168.1.2$

If the Request-URI is sip:100@192.168.1.2

Yes No
Suggest Edit