Added a Multi-call option to the agent 3-way press-1 calls feature.

git-svn-id: svn://192.168.202.10@3792 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2023-12-29 03:34:37 +00:00
parent 19f98387f1
commit bac897234d
13 changed files with 1282 additions and 210 deletions
+2 -2
View File
@@ -1508,11 +1508,11 @@ if ($ACTION == 'refresh')
{
// Check for alerts
// Activate notifications that are ready to be sent systemwide
$upd_stmt="update vicidial_agent_notifications set notification_status='READY' where notification_date<=now() and notification_status='QUEUED'";
$upd_stmt="update vicidial_agent_notifications set notification_status='READY' where notification_date<=now() and notification_status='QUEUED';";
$upd_rslt=mysql_to_mysqli($upd_stmt, $link);
# gather all READY notifications to be triggered, limit with $user, $VU_user_group, $campaign
$alert_stmt="select * from vicidial_agent_notifications where notification_status='READY' and ( (recipient_type='USER' and recipient='$user') or (recipient_type='USER_GROUP' and recipient='$VU_user_group') or (recipient_type='CAMPAIGN' and recipient='$campaign') ) order by notification_date asc limit 1";
$alert_stmt="select * from vicidial_agent_notifications where notification_status='READY' and ( (recipient_type='USER' and recipient='$user') or (recipient_type='USER_GROUP' and recipient='$VU_user_group') or (recipient_type='CAMPAIGN' and recipient='$campaign') ) order by notification_date asc limit 1;";
$alert_rslt=mysql_to_mysqli($alert_stmt, $link);
while ($alert_row=mysqli_fetch_array($alert_rslt))
{