From 60ee18ff6bf9f7eeaf8230b30149054621dbf873 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 9 Sep 2009 13:25:54 +0000 Subject: [PATCH] bug tracker fixes to AGI inbound and search page git-svn-id: svn://192.168.202.10@1224 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/branches/agc_2.0.5/agi/agi-VDAD_ALL_inbound.agi | 6 +++--- .../branches/agc_2.0.5/www/vicidial/admin_search_lead.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agc_2-X/branches/agc_2.0.5/agi/agi-VDAD_ALL_inbound.agi b/agc_2-X/branches/agc_2.0.5/agi/agi-VDAD_ALL_inbound.agi index 239071be..92138fb4 100644 --- a/agc_2-X/branches/agc_2.0.5/agi/agi-VDAD_ALL_inbound.agi +++ b/agc_2-X/branches/agc_2.0.5/agi/agi-VDAD_ALL_inbound.agi @@ -1874,7 +1874,7 @@ if ( ($start_place_in_line > 0) && ($moh_delay == '1') ) if ($rec_countWAIT > 0) {$place = $rec_countWAIT;} if ($rec_countWAITrem > 0) {$place = $rec_countWAITrem;} $place++; - if ($AGILOG) {$agi_string = "-- PLACE IN LINE: |$campaign_id|$place|"; &agi_output;} + if ($AGILOG) {$agi_string = "-- PLACE IN LINE: |$campaign|$place|"; &agi_output;} $AGI->stream_file('sip-silence'); # stop music-on-hold process $AGI->stream_file('sip-silence'); # stop music-on-hold process @@ -1965,7 +1965,7 @@ if ( ($start_hold_estimate > 0) && ($moh_delay == '1') ) if ($holdtime_estimate_sec_diff < 10) {$holdtime_estimate_sec_diff=10;} $holdtime_estimate = int($holdtime_estimate_sec_diff / 60); $holdtime_estimate_sec_rem = ( $holdtime_estimate_sec_diff - ($holdtime_estimate * 60) ); - if ($AGILOG) {$agi_string = "-- HOLD ESTIMATE: |$campaign_id|$holdtime_estimate|$holdtime_estimate_sec_rem|$holdtime_estimate_sec_diff| |$holdtime_estimate_sec|$livetime_estimate_sec|$avgtime_estimate_sec|"; &agi_output;} + if ($AGILOG) {$agi_string = "-- HOLD ESTIMATE: |$campaign|$holdtime_estimate|$holdtime_estimate_sec_rem|$holdtime_estimate_sec_diff| |$holdtime_estimate_sec|$livetime_estimate_sec|$avgtime_estimate_sec|"; &agi_output;} ##### play the hold time estimate to the caller if option is set if ($play_estimate_hold_time =~ /Y/i) @@ -2001,7 +2001,7 @@ if ( ($start_hold_estimate > 0) && ($moh_delay == '1') ) } ##### check if hold_time_option is set to leave Queue -if ( ($hold_time_option !~ /NONE/ ) && ( $holdtime_estimate_sec_diff > $hold_time_option_second ) && ($wait_in_queue < 2) ) +if ( ($hold_time_option !~ /NONE/ ) && ( $holdtime_estimate_sec_diff > $hold_time_option_seconds ) && ($wait_in_queue < 2) ) { $wait_in_queue=0; # exits wait loop $DROPexten = ''; diff --git a/agc_2-X/branches/agc_2.0.5/www/vicidial/admin_search_lead.php b/agc_2-X/branches/agc_2.0.5/www/vicidial/admin_search_lead.php index dc6453d3..1920d34a 100644 --- a/agc_2-X/branches/agc_2.0.5/www/vicidial/admin_search_lead.php +++ b/agc_2-X/branches/agc_2.0.5/www/vicidial/admin_search_lead.php @@ -270,7 +270,7 @@ else $SQL_log = "$stmt|"; $SQL_log = ereg_replace(';','',$SQL_log); $SQL_log = addslashes($SQL_log); - $stmt="INSERT INTO vicidial_admin_log set event_date='$NOW_TIME', user='$PHP_AUTH_USER', ip_address='$ip', event_section='LEADS', event_type='SEARCH', record_id='$search_lead', event_code='ADMIN MODIFY LEAD', event_sql=\"$SQL_log\", event_notes='';"; + $stmt="INSERT INTO vicidial_admin_log set event_date='$NOW_TIME', user='$PHP_AUTH_USER', ip_address='$ip', event_section='LEADS', event_type='SEARCH', record_id='$search_lead', event_code='ADMIN SEARCH LEAD', event_sql=\"$SQL_log\", event_notes='';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_query($stmt, $link); }