提交 f4bca18a authored 作者: Mike Jerris's avatar Mike Jerris

Merge pull request #793 in FS/freeswitch from…

Merge pull request #793 in FS/freeswitch from ~PIOTRGREGOR/freeswitch:bugfix/FS-9023-avmd-add-console-auto-completion to master

* commit '4fa43a24':
  [avmd] FS-9023 Add console auto completion
...@@ -291,8 +291,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_avmd_load) ...@@ -291,8 +291,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_avmd_load)
} }
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE,
"Advanced Voicemail detection enabled\n" "Advanced voicemail detection enabled\n");
);
#ifdef AVMD_FAST_MATH #ifdef AVMD_FAST_MATH
ret = init_fast_acosf(); ret = init_fast_acosf();
...@@ -335,7 +334,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_avmd_load) ...@@ -335,7 +334,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_avmd_load)
switch_log_printf( switch_log_printf(
SWITCH_CHANNEL_LOG, SWITCH_CHANNEL_LOG,
SWITCH_LOG_NOTICE, SWITCH_LOG_NOTICE,
"Advanced Voicemail detection: fast math enabled, arc cosine table " "Advanced voicemail detection: fast math enabled, arc cosine table "
"is [%s]\n", ACOS_TABLE_FILENAME "is [%s]\n", ACOS_TABLE_FILENAME
); );
#endif #endif
...@@ -347,6 +346,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_avmd_load) ...@@ -347,6 +346,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_avmd_load)
SWITCH_ADD_API(api_interface, "avmd", "Voicemail beep detection", SWITCH_ADD_API(api_interface, "avmd", "Voicemail beep detection",
avmd_api_main, AVMD_SYNTAX); avmd_api_main, AVMD_SYNTAX);
switch_console_set_complete("add avmd ::console::list_uuid ::[start:stop");
/* indicate that the module should continue to be loaded */ /* indicate that the module should continue to be loaded */
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
...@@ -466,7 +467,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_avmd_shutdown) ...@@ -466,7 +467,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_avmd_shutdown)
#endif #endif
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE,
"Advanced Voicemail detection disabled\n"); "Advanced voicemail detection disabled\n");
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论