$getSIPuser
Get the SIP user name
Syntax:
$getSIPuser( string )
Returns:
the SIP user name
Version Since:
3.0
Where the function can be used:
- Preliminary rules
- Regular rules
Example:
$getSIPuser("sip:bob@192.168.0.1”) = (.+)
It returns “bob”.
$getSIPuser(To) = (.+)
Get the SIP user name from To URI.