Update the timing API to have better support for multiple timing interfaces.

1) Add module use count handling so that timing modules can be unloaded.

2) Implement unload_module() functions for the timing interface modules.

3) Allow multiple timing modules to be loaded, and use the one with the
   highest priority value.

4) Report which timing module is being use in the "timing test" CLI command.

(closes issue #14489)
Reported by: russell

Review: http://reviewboard.digium.com/r/162/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@176666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2009-02-17 21:22:40 +00:00
parent 6f9e69adad
commit c461d29b0b
6 changed files with 180 additions and 137 deletions

View File

@@ -2499,7 +2499,7 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)
}
if (chan->timingfd > -1 && chan->fdno == AST_TIMING_FD) {
enum ast_timing_event res;
enum ast_timer_event res;
ast_clear_flag(chan, AST_FLAG_EXCEPTION);