我刚刚从 Asterisk 11 (Elastix) 升级到 Asterisk 14,此脚本可以正常运行。我收到大量令人吃惊的错误。问题似乎是缺少一些“默认”应用程序。
我尝试使用“make menuselect”卸载并重建版本 13 和 14,确保选中大多数应用程序的选项,包括 Read 应用程序。完成后,我在 Asterisk 应用程序列表中看不到它:
*CLI> core show applications
-= Registered Asterisk Applications =-
Answer: Answer a channel if ringing.
BackGround: Play an audio file while waiting for digits of an extension to go to.
Bridge: Bridge two channels.
Busy: Indicate the Busy condition.
CallCompletionCancel: Cancel call completion service
CallCompletionRequest: Request call completion service for previous call
Congestion: Indicate the Congestion condition.
ExecIfTime: Conditional application execution based on the current time.
Goto: Jump to a particular priority, extension, or context.
GotoIf: Conditional goto.
GotoIfTime: Conditional Goto based on the current time.
Hangup: Hang up the calling channel.
ImportVar: Import a variable from a channel into a new variable.
Incomplete: Returns AST_PBX_INCOMPLETE value.
MessageSend: Send a text message.
MSet: Set channel variable(s) or function value(s).
NoOp: Do Nothing (No Operation).
Proceeding: Indicate proceeding.
Progress: Indicate progress.
RaiseException: Handle an exceptional condition.
Ringing: Indicate ringing tone.
SayAlpha: Say Alpha.
SayAlphaCase: Say Alpha.
SayDigits: Say Digits.
SayNumber: Say Number.
SayPhonetic: Say Phonetic.
Set: Set channel variable or function value.
SetAMAFlags: Set the AMA Flags.
Wait: Waits for some time.
WaitExten: Waits for an extension to be entered.
-= 30 Applications Registered =-
我所构建的 Elastix 列出了 150 多个执行相同操作的应用程序。我该怎么办?除了使用“menuselect”方法之外,我还没有看到任何关于如何启用特定应用程序的教程,任何提示都值得赞赏。
答案1
模块安装在 /lib/asterisk/modules 中。查找 app_read.so。尝试手动将其加载到 asterisk 中(module load app_read.so)。如果未加载,请检查 asterisk 日志。