Hi all.
I’m auto dialing by creating output files in /var/lib/asterisk/outgoing. Failed calls are NOT writing cdrs in asterisk-1.4.22, but ARE writing cdrs in asterisk-1.4.17. CDRs for successful calls are written in both cases. Is it preferable to set extension to Local/8885551111 and having the context perform a Dial?
I am using the context/extension/priority format in the .call files, as described in:
voip-info.org/tiki-index.php … o-dial+out
===================
The format of the .call file is:
channel: SIP/8885551111@carrierout
callerid: 2125551212 <12125551212>
maxretries: 0
retrytime: 90
waittime: 9
account: 2125551212
context: calldrop
extension: 8885551111
priority: 1
Archive: No
set: PassedInfo=8885551111-2125551212-carrier_out
===================
The extensions.conf context is:
[calldrop]
exten => _X.,1,Answer
exten => _X.,n,Wait(2)
exten => _X.,n,Playback(goodbye)
exten => _X.,n,Wait(1)
exten => _X.,n,Hangup
exten => failed,1,NoOp(${PassedInfo} failed)
exten => failed,n,Set(CDR(userfield)="${PassedInfo} R${REASON}")
exten => failed,n,Hangup
===================
Asterisk-1.4.17 output from /var/log/asterisk/messages:
[2008-10-04 01:31:00] VERBOSE[5121] logger.c: – Executing [failed@calldrop:1] NoOp(“OutgoingSpoolFailed”, “6265550077-8885557777-carrierout failed”) in new stack
[2008-10-04 01:31:00] VERBOSE[5121] logger.c: – Executing [failed@calldrop:2] Set(“OutgoingSpoolFailed”, "CDR(userfield)=“6265550077-8885557777-carrierout R0"”) in new stack
[2008-10-04 01:31:00] VERBOSE[5121] logger.c: – Executing [failed@calldrop:3] Hangup(“OutgoingSpoolFailed”, “”) in new stack
[2008-10-04 01:31:00] VERBOSE[5121] logger.c: == Spawn extension (calldrop, failed, 3) exited non-zero on ‘OutgoingSpoolFailed’
[2008-10-04 01:31:00] NOTICE[5121] pbx_spool.c: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?)
Asterisk-1.4.17 logs two CDR records:
“8885557777”,“18885557777”,“6265550077”,“calldrop”,""“8885557777"” <18885557777>
",“SIP/carrierout-09415428”,"",“Dial”,“SIP/16265550077@carrierout”,“2008-10-04
01:31:00”,“2008-10-04 01:31:00”,0,0,“NO ANSWER”,“DOCUMENTATION”,""
“8885557777”,"",“failed”,“calldrop”,"",“OutgoingSpoolFailed”,"","","",“2008-10-0
4 01:31:00”,“2008-10-04 01:31:00”,0,0,“NO ANSWER”,“DOCUMENTATION”,“6265550077-8
885557777-carrierout R0”
===================
Asterisk-1.4.22 has the same output from /var/log/asterisk/messages, but no CDRs: