Starting CDR Ring Timer on call.progress
From Yate Documentation
(Difference between revisions)
(Created page with " Cdrbuild module starts ring timer when processing call.ringing or call.progress with early media.<br> It can be forced to start ring timer on call progress. ===Configuration...") |
(→Regexroute example) |
||
(3 intermediate revisions by one user not shown) | |||
Line 16: | Line 16: | ||
The call progress message can be altered to override the cdrbuild 'ring_on_progress' configuration parameter by a 'ringing' parameter. | The call progress message can be altered to override the cdrbuild 'ring_on_progress' configuration parameter by a 'ringing' parameter. | ||
− | Here is a javascript example: | + | ====[[Javascript]] example==== |
+ | Here is a [[javascript]] example: | ||
function onCallProgress(msg) | function onCallProgress(msg) | ||
Line 26: | Line 27: | ||
Message.install(onCallProgress,"call.progress",25); | Message.install(onCallProgress,"call.progress",25); | ||
+ | ====[[Regular expressions|Regexroute]] example==== | ||
Here is a regexroute.conf example: | Here is a regexroute.conf example: | ||
Line 38: | Line 40: | ||
* [[CDR Build Module]] | * [[CDR Build Module]] | ||
+ | |||
+ | [[Category:Javascript]] [[Category:Programmers]] [[Category:CDR]] |
Latest revision as of 15:35, 31 October 2013
Cdrbuild module starts ring timer when processing call.ringing or call.progress with early media.
It can be forced to start ring timer on call progress.
Contents |
[edit] Configuration
Starting ring timer on call progress can be enabled for all calls in the configuration file.
cdrbuild.conf
[general] ring_on_progress=yes
[edit] Alter the call.progress message
The call progress message can be altered to override the cdrbuild 'ring_on_progress' configuration parameter by a 'ringing' parameter.
[edit] Javascript example
Here is a javascript example:
function onCallProgress(msg) { msg.ringing = true; return false; } Message.install(onCallProgress,"call.progress",25);
[edit] Regexroute example
Here is a regexroute.conf example:
[extra] call.progress=25 [call.progress] .*=;ringing=true
See also