Every time the customer answers the call, I put the call to extension 8368 in extensions.conf.
But immeditely after I land the call to 8368,1 the agi returns 0 and call hangs up.
But actually the call dont disconnect untill its ringing. the moment the call is answered by the customer it hangs up.
Please find below the logs.
> Channel Local/17807946798@default-e9c2,1 was answered.
-- Executing [8368@default:1] Playback("Local/17807946798@default-e9c2,1", "sip-silence") in new stack
-- <Local/17807946798@default-e9c2,1> Playing 'sip-silence' (language 'en')
WARNING[25741]: file.c:1297 waitstream_core: Unexpected control subclass '-1'
-- Executing [h@default:1] DeadAGI("Local/17807946798@default-e9c2,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----8-----0") in new stack
-- Executing [8368@default:2] AGI("DAHDI/0:2-1", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing [8368@default:3] AGI("DAHDI/0:2-1", "agi-VDAD_ALL_outbound.agi|NORMAL-----LB") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
ERROR[25741]: utils.c:967 ast_carefulwrite: write() returned error: Broken pipe
-- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
________________________________________________________________________________________________
Extensions.conf entry
[default]
include => vicidial-auto
exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,n,Set(CALLTIME=${STRFTIME(${EPOCH},Europe/London,%d-%b-%Y-%H-%M)})
exten => _X.,n,Mixmonitor(/var/spool/asterisk/calls/${EXTEN}-${CALLTIME}.wav)
exten => _X.,n,Dial(${trunk_1}/${EXTEN},30,tTo)
exten => _X.,n,Hangup
exten => _1X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1X.,n,Set(CALLTIME=${STRFTIME(${EPOCH},Europe/London,%d-%b-%Y-%H-%M)})
exten => _1X.,n,Mixmonitor(/var/spool/asterisk/calls/${EXTEN:1}-${CALLTIME}.wav)
exten => _1X.,n,Dial(${trunk_1}/${EXTEN:1},30,tTo)
exten => _1X.,n,Hangup
; VICIDIAL_auto_dialer transfer script Load Balanced:
exten => 8368,1,Playback(sip-silence)
exten => 8368,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8368,3,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LB)
exten => 8368,4,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LB)
exten => 8368,5,Hangup
__________________________________________________________________________________________
please adivice what should be done.