Javascript MatchingItem
From Yate Documentation
Contents |
General
Object implementing complex matching.
May be set as filter in Message handler and post hook install (match one or more message parameter(s)).
May be used for matching individual values
Constructor
- new Engine.MatchingItem(value[,name[,params])
Build a new MatchingItem object.
Parameters:
value: Value to match. May be another MatchingItem object (all other parameters will be ignored), RegExp, string.
name: Parameter name.
params: Build parameters.
Static methods
- validate(value[,name[,params]])
Parameters:
value:
name:
params:
Return:
Success: Object with matching properties
Success with empty optimized matching: null/undefined
Error: string describing the error
Methods
- matches(value)
- getDesc([params])
- dump([params[,indent,origIndent]])