How to use callcounters module to count incoming calls

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
 
  context=false
 
  context=false
  
===Configure [[callcounters]]===
+
===Configure [[Call Counters|callcounters]]===
  
 
callcounters.conf:
 
callcounters.conf:

Revision as of 14:20, 10 December 2012

Our purpose is to count the incoming calls using callcounters module.

Contents

Configure cdrbuild

cdrbuild.conf:

[parameters]
context=false

Configure callcounters

callcounters.conf:

[general]
parameter=context 
direction=incoming

Scenarios

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

Enable allcounters parameter

If allcounters=true in [general] section in callcounters.conf then no matter the context in call.route it will set:
context_count_abc=3
context_count_xyz=2


See also

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers