From 5c1d7c639bdf5bfef94b1c86189bb9bf1faee20d Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 3 Apr 2014 23:55:44 +0000 Subject: [PATCH] Fixed minor bug in Hangup Cause Report git-svn-id: svn://192.168.202.10@2097 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/vicidial/AST_hangup_cause_report.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/agc_2-X/trunk/www/vicidial/AST_hangup_cause_report.php b/agc_2-X/trunk/www/vicidial/AST_hangup_cause_report.php index 5e09c5d5..a875b254 100644 --- a/agc_2-X/trunk/www/vicidial/AST_hangup_cause_report.php +++ b/agc_2-X/trunk/www/vicidial/AST_hangup_cause_report.php @@ -11,6 +11,7 @@ # 130621-0749 - Added filtering of input to prevent SQL injection attacks and new user auth # 130902-0731 - Changed to mysqli PHP functions # 140108-0739 - Added webserver and hostname to report logging +# 140403-1830 - Fixed SIP hangup bug # $startMS = microtime(); @@ -124,6 +125,7 @@ $hangup_cause_dictionary = array( #### SIP response code directory $sip_response_directory = array( + 0 => "", 100 => "Trying", 180 => "Ringing", 181 => "Call is Being Forwarded", @@ -727,14 +729,14 @@ if ($SUBMIT && $server_ip_ct>0) { $carrier_rpt_hf=""; $ll=$lower_limit-1000; if ($ll>=1) { - $carrier_rpt_hf.="[<<< PREV 1000 records]"; + $carrier_rpt_hf.="[<<< PREV 1000 records]"; } else { $carrier_rpt_hf.=sprintf("%-23s", " "); } $carrier_rpt_hf.=sprintf("%-145s", " "); if (($lower_limit+1000)=mysqli_num_rows($rpt_rslt)) {$max_limit=mysqli_num_rows($rpt_rslt)-$upper_limit;} else {$max_limit=1000;} - $carrier_rpt_hf.="[NEXT $max_limit records >>>]"; + $carrier_rpt_hf.="[NEXT $max_limit records >>>]"; } else { $carrier_rpt_hf.=sprintf("%23s", " "); }