我正在尝试使自动拨出在星号中。我已经在/tmp 目录中创建了调用文件并将文件移动到"var/spool/asterisk/outgoing/"
它不起作用。请帮助我解决此问题。
调用文件
Channel: SIP/700
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: call-file-test
extensions_custom.conf
[call-file-test]
exten => S,1,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(hello-world)
exten => s,n,Wait(1)
exten => s,n,Hangup()
错误日志
[2015-04-12 11:05:24] NOTICE[4397]: pbx_spool.c:388 attempt_thread: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?)
[2015-04-12 11:05:24] NOTICE[4397]: pbx_spool.c:391 attempt_thread: Queued call to SIP/700 expired without completion after 2 attempts
首先确保您的SIP用户分机700已注册到星号服务器并处于活动状态在星号服务器中执行以下命令
asterisk -rx 'sip show peers'
它将显示当前活动并注册到星号服务器中的所有 sip 用户。不要忘记授予777权限您的呼叫文件和
chown asterisk:asterisk your_call_file.call