Brekeke SIP Server Wiki

%{} in Dial Plan Deploy Patterns

From Brekeke SIP Server v3.2, %{} definition can be used to get value of property variables, functions and SIP headers directly without catching these values with parenthesis in Matching Patterns and reference by %n.

Syntax:

%{string}

  • %{&property_variable_name}
  • %{$function_name}
  • %{header_name}
Example:
------------------
[Matching Patterns]
$request = ^INVITE
To = sip:(.+)@

[Deploy Patterns]
To = sip:%{$getSIPuser(To)}@192.168.200.81
------------------

The deploy patterns is the same as To = sip:%1@192.168.200.81

Yes No
Suggest Edit