Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
##### This 'h' exten is VERY important for VICIDIAL usage,
##### you will have problems if it is not in your dialplan!
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log)
exten => h,2,DeadAGI(agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}))
-- Executing AGI("Local/901142231278@default-48b3,2", "AGI(agi://127.0.0.1:4577/call_log") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/AGI(agi://127.0.0.1:4577/call_log
-- AGI Script AGI(agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing Dial("Local/901142231278@default-48b3,2", "SIP/01142231278@10.1.0.100|50|tTo") in new stack
-- Called 01142231278@10.1.0.100
-- SIP/10.1.0.100-b44053a0 is ringing
-- SIP/10.1.0.100-b44053a0 is making progress passing it to Local/901142231278@default-48b3,2
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
Oct 26 10:13:01 NOTICE[9674]: rtp.c:331 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 10.1.0.100
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Refreshing DNS lookups.
== Spawn extension (default, 901142231278, 2) exited non-zero on 'Local/901142231278@default-48b3,2'
-- Executing DeadAGI("Local/901142231278@default-48b3,2", "agi://127.0.0.1:4577/call_log") in new stack
== Manager 'sendcron' logged off from 127.0.0.1
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing DeadAGI("Local/901142231278@default-48b3,2", "agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------)") in new stack
-- AGI Script agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------) completed, returning 0
### delete call records that are SENT for over 2 minutes
$stmtA = "DELETE FROM vicidial_auto_calls where server_ip='$server_ip' and call_time < '$XDSQLdate' and status NOT IN('XFER','CLOSER','LIVE')";
$affected_rows = $dbhA->do($stmtA);
$event_string = "| lagged call vac agent DELETED $affected_rows|$XDSQLdate|";
&event_logger;
Users browsing this forum: No registered users and 87 guests