How to use callcounters module to count incoming calls
From Yate Documentation
(Difference between revisions)
(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 ...") |
(→Enable allcounters parameter) |
||
(8 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | Our purpose is to count the incoming calls using Callcounters Module. | ||
+ | |||
+ | ===Configure [[CDR Build Module|cdrbuild]]=== | ||
cdrbuild.conf: | cdrbuild.conf: | ||
[parameters] | [parameters] | ||
context=false | context=false | ||
+ | |||
+ | ===Configure [[Call Counters|callcounters]]=== | ||
callcounters.conf: | callcounters.conf: | ||
Line 9: | Line 14: | ||
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: | + | ===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:<br> | ||
context_count=3 | context_count=3 | ||
− | If allcounters=true then no matter the context in call.route it will set: | + | ==== Enable allcounters parameter==== |
− | context_count_abc=3 | + | |
+ | If ''allcounters=true'' in [general] section in callcounters.conf then no matter the context in call.route it will set:<br> | ||
+ | context_count_abc=3<br> | ||
context_count_xyz=2 | context_count_xyz=2 | ||
+ | |||
+ | |||
+ | '''See also''' | ||
+ | |||
+ | * [[Call Counters|Call Counters Module]] | ||
+ | * [[Routing]] | ||
+ | |||
+ | [[Category:Call counters]] |
Latest revision as of 17:03, 31 October 2013
Our purpose is to count the incoming calls using Callcounters Module.
Contents |
[edit] Configure cdrbuild
cdrbuild.conf:
[parameters] context=false
[edit] Configure callcounters
callcounters.conf:
[general] parameter=context direction=incoming
[edit] 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
[edit] 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