The RecordingFilter object represents a configuration of recording filter (condition, action, filename etc).
Name of property | Type | Description |
name | string | Unique filter name. Name of filter may consits of following characters:
Note 1: Name is case insensitive. Following names are interpreted as the same:
Note 2: Special name is used for a default filter ("filter_"). Default filter is executed when no other filters match. |
priority | int | Priority of filter. Filters with lower values are executed before the ones with higher values. Note 1: It is permitted that two and more filters have the same priority, but in this case order of filters' execution is not determined. Note 2: Priority can have negative values. For example, -1. |
action | string | One of following:
|
condition | string | Expression string, for example: caller-number = '123' Note 1: Condition is ignored for default filter (with name "default_"). |
filename | string | Filename format for calls, that match a condition. For example: C:\Sales\%{setup-time#%Y%m%d}\%{call-id}.mp3 Note 1: This is optional parameter. If it is not specified than a default filename format is used (see parameter FileNameFormat inside MiaRec.ini file). |
customParameters[] | array of RecordingFilterCustomParameter | Optional custom parameters, which are assigned to call. This can be used for storing custom data, which is used by third-party applications, like CRM. |
See example of method recordingFilterSave()