How to use callcounters module to count incoming calls

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with " cdrbuild.conf: [parameters] context=false callcounters.conf: [general] parameter=context direction=incoming If there are 3 incoming calls with context=abc and 2 with ...")
 
Line 9: Line 9:
 
  direction=incoming
 
  direction=incoming
  
If there are 3 incoming calls with context=abc and 2 with context=xyz in a new call.route with context=abc it will set:
+
If there are 3 incoming calls with context=abc and 2 with context=xyz in a new call.route with context=abc it will set:<br>
 
context_count=3
 
context_count=3
  
If allcounters=true then no matter the context in call.route it will set:
+
If allcounters=true then no matter the context in call.route it will set:<br>
 
context_count_abc=3
 
context_count_abc=3
 
context_count_xyz=2
 
context_count_xyz=2

Revision as of 14:57, 18 October 2012

cdrbuild.conf:

[parameters]
context=false

callcounters.conf:

[general]
parameter=context 
direction=incoming

If there are 3 incoming calls with context=abc and 2 with context=xyz in a new call.route with context=abc it will set:
context_count=3

If allcounters=true then no matter the context in call.route it will set:
context_count_abc=3 context_count_xyz=2

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers