Javascript MatchingItem

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Constructor)
Line 10: Line 10:
 
Build a new MatchingItem object.<br/>
 
Build a new MatchingItem object.<br/>
 
Parameters:<br/>
 
Parameters:<br/>
'''value''': <br/>
+
'''value''': Value to match. May be another MatchingItem object (all other parameters will be ignored), RegExp, string.<br/>
'''name''': <br/>
+
'''name''': Parameter name.<br/>
'''params''': <br/>
+
'''params''': Build parameters.<br/>
 
+
 
+
 
+
  
 
== Static methods ==
 
== Static methods ==

Revision as of 09:28, 4 September 2024

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]])
Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers