I’m trying to make auto dial out in asterisk.I have created call file in /tmp directory and moved the file to “var/spool/asterisk/outgoing/”
It’s not working. Please help me to resolve this issue.
Call File
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()
Error Log
[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
There isn’t enough logging to be more precise.
Thank you for your reply,
Here the complete log
[2015-04-12 23:11:16] VERBOSE[11674] pbx_spool.c: Attempting call on SIP/701 for 700@call-file-test:1 (Retry 2)
[2015-04-12 23:11:16] WARNING[11674] chan_sip.c: Purely numeric hostname (701), and not a peer--rejecting!
[2015-04-12 23:11:16] VERBOSE[11674] chan_sip.c: Really destroying SIP dialog '73cf6bbc09a9f4245cdf061317f42abc@128.199.182.185:5061' Method: INVITE
[2015-04-12 23:11:16] NOTICE[11674] pbx_spool.c: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?)
[2015-04-12 23:12:16] VERBOSE[11679] pbx_spool.c: Attempting call on SIP/701 for 700@call-file-test:1 (Retry 3)
It’s working for me after changing the call file conf
From
To
You don’t have a
[701]
section in your sip.conf. This is possibly because you have been confused by the common bad habit of making sip.ocnf names the same as the primary extension number for outgoing calls to that device.