3. How To Call a Plug-In
The plug-in is called by specifying the class name and method name at the Matching Patterns.
$classname.methodname
If the method has parameters, please specify the parameters as follows:
$classname.methodname( parameter ) $classname.methodname( parameter1, parameter2 )
For example, if the classname is “sample” and the method name is “test” and the parameter is To header, the method returns new To header value.
[Matching Patterns]
$request = ^INVITE
$sample.test( To ) = (.+)
[Deploy Patterns]
To = %1