Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
($AcalleridCOUNT < 1)
; PSTN serves 's'
exten => s,1,AGI(agi-DID_route.agi)
exten => s,n,Hangup()
Time range: 2017-06-26 00:00:00 to 2017-06-26 23:59:59
---------- TOTALS
Total calls taken in to this In-Group: 52
Average Call Length for all Calls: 156 seconds
Answered Calls: 50 96%
Average queue time for Answered Calls: 6.12 seconds
Calls taken into the IVR for this In-Group: 0
---------- DROPS
Total DROP Calls: 0 0% drop/answered: 0%
Average hold time for DROP Calls: 0 seconds
---------- CUSTOM INDICATORS
GDE (Answered/Total calls taken in to this In-Group): 96%
ACR (Dropped/Answered): 0%
TMR1 (Answered within 1 seconds/Answered): 0%
TMR2 (Answered within 1 seconds/Answered): 0%
---------- QUEUE STATS
Total Calls That entered Queue: 50 96%
Average QUEUE Length for queue calls: 6.12 seconds
Average QUEUE Length across all calls: 5.88 seconds
MariaDB [asterisk]> select * from vicidial_live_agents;
+---------------+----------+----------------+------------+--------------+--------+---------+-------------+----------+----------+---------+-----------+---------------------+---------------------+---------------------+------------------------------------+----------------+------------+----------+-----------------+-------------+-----------------+-----------------+----------------+---------------+-------------------+------------------+-----------------------+------------------------+-----------------------------+-----------------------+-------------------------------+-------------------------------+--------------+---------------------+-------------------+-------------------+---------------------+---------+--------------+---------------+-----------------------+---------------+-----------------------------------+---------------+-------------------+---------------+------------------------+--------------------------+----------------+--------------------+---------------------+------------+-----------------+
| live_agent_id | user | server_ip | conf_exten | extension | status | lead_id | campaign_id | uniqueid | callerid | channel | random_id | last_call_time | last_update_time | last_call_finish | closer_campaigns | call_server_ip | user_level | comments | campaign_weight | calls_today | external_hangup | external_status | external_pause | external_dial | external_ingroups | external_blended | external_igb_set_user | external_update_fields | external_update_fields_data | external_timer_action | external_timer_action_message | external_timer_action_seconds | agent_log_id | last_state_change | agent_territories | outbound_autodial | manager_ingroup_set | ra_user | ra_extension | external_dtmf | external_transferconf | external_park | external_timer_action_destination | on_hook_agent | on_hook_ring_time | ring_callerid | last_inbound_call_time | last_inbound_call_finish | campaign_grade | external_recording | external_pause_code | pause_code | preview_lead_id |
+---------------+----------+----------------+------------+--------------+--------+---------+-------------+----------+----------+---------+-----------+---------------------+---------------------+---------------------+------------------------------------+----------------+------------+----------+-----------------+-------------+-----------------+-----------------+----------------+---------------+-------------------+------------------+-----------------------+------------------------+-----------------------------+-----------------------+-------------------------------+-------------------------------+--------------+---------------------+-------------------+-------------------+---------------------+---------+--------------+---------------+-----------------------+---------------+-----------------------------------+---------------+-------------------+---------------+------------------------+--------------------------+----------------+--------------------+---------------------+------------+-----------------+
| 632 | agentone | XXX.XXX.XXX.XX | 8600051 | SIP/agentone | INCALL | 60797 | ###### | 0 | | | 13390596 | 2017-06-29 09:45:58 | 2017-06-29 09:46:20 | 2017-06-29 09:45:53 | AGENTDIRECT#################### - | XXX.XXX.XXX.XX | 1 | INBOUND | 0 | 216 | 0 | | | | NULL | 0 | | 0 | | | | -1 | 1823 | 2017-06-29 09:45:58 | NULL | Y | N | | | | | | | N | 60 | | NULL | NULL | 1 | | | | 0 |
+---------------+----------+----------------+------------+--------------+--------+---------+-------------+----------+----------+---------+-----------+---------------------+---------------------+---------------------+------------------------------------+----------------+------------+----------+-----------------+-------------+-----------------+-----------------+----------------+---------------+-------------------+------------------+-----------------------+------------------------+-----------------------------+-----------------------+-------------------------------+-------------------------------+--------------+---------------------+-------------------+-------------------+---------------------+---------+--------------+---------------+-----------------------+---------------+-----------------------------------+---------------+-------------------+---------------+------------------------+--------------------------+----------------+--------------------+---------------------+------------+-----------------+
1 row in set (0.00 sec)
MariaDB [asterisk]> select * from vicidial_auto_calls;
+--------------+----------------+---------------+--------+---------+----------------+----------------------+-----------------------+------------+--------------+---------------------+-----------+------------+---------------------+----------+----------------+------------+------------+----------------+-----------+----------------------+
| auto_call_id | server_ip | campaign_id | status | lead_id | uniqueid | callerid | channel | phone_code | phone_number | call_time | call_type | stage | last_update_time | alt_dial | queue_priority | agent_only | agent_grab | queue_position | extension | agent_grab_extension |
+--------------+----------------+---------------+--------+---------+----------------+----------------------+-----------------------+------------+--------------+---------------------+-----------+------------+---------------------+----------+----------------+------------+------------+----------------+-----------+----------------------+
| 216 | XXX.XXX.XXX.XX | ############# | CLOSER | 60797 | 1498697155.230 | Y6290945560000060797 | SIP/########-000000dc | ## | ########### | 2017-06-29 09:45:56 | IN | CLOSER-1.5 | 2017-06-29 09:45:57 | NONE | 0 | | agentone | 1 | | |
+--------------+----------------+---------------+--------+---------+----------------+----------------------+-----------------------+------------+--------------+---------------------+-----------+------------+---------------------+----------+----------------+------------+------------+----------------+-----------+----------------------+
1 row in set (0.00 sec)
Prior:
$stmt="SELECT status,callerid,agent_log_id,campaign_id,lead_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
### DEAD logging section
$stmt="SELECT count(*) from vicidial_auto_calls where callerid='$Acallerid';
$AcalleridCOUNT=$row[0];
if ( ($AcalleridCOUNT < 1) and (preg_match("/INCALL/i",$Astatus)) and (strlen($Aagent_log_id) > 0) ){
$DEADcustomer++;
...
}
echo <...>'|DEADcall: ' . $DEADcustomer<...>;
DBI::db=HASH(0x16c8598)->disconnect invalidates 1 active statement handle (either destroy statement handles or call finish on them before disconnecting) at /usr/share/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi line 3707, <STDIN> line 47.
UPDATE vicidial_live_agents set uniqueid=0,callerid='',channel='', random_id='$random',comments='',last_state_change='$NOW_TIME' $vla_autodialSQL $vla_pausecodeSQL where user='$user' and server_ip='$server_ip';
UPDATE vicidial_live_agents set status='QUEUE',lead_id='$insert_lead_id',uniqueid='$unique_id', channel='$channel', callerid='$callerid', call_server_ip='$VARserver_ip',comments='INBOUND',ring_callerid='' where user='$VDADuser';
Users browsing this forum: Bing [Bot], Google [Bot] and 71 guests