Brekeke SIP Server Wiki

$param

Get the value of the parameter from the specified string.

Syntax:
$param( string, variable )
Parameters:

variable – variable name

 

Returns:

the parameter’s value.

 

Version Since:

2.0

 

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

 

Example:
$param(Via,"branch") = (.+)

Get the branch parameter’s value.

$param("sip:bob@192.168.0.1;expires=3600”,”expires”) = ^300$

If the expires’s value is 300.

 

See Also:

$uriParam
$headerParam
$subParam 

Yes No
Suggest Edit