Project

General

Profile

Bug #7124

Call Recording Report not changing IP address

Added by Guilherme Bizzani 20 days ago. Updated 11 days ago.

Status:
Feedback
Priority:
Normal
Category:
-
Target version:
Start date:
11/20/2018
Due date:
% Done:

100%

Estimated time:

Description

By testing the GoAutoDial v4 we discovered a bug and already a fix to it, we used the IP address of the server of "127.0.0.1", but the ALT_IP for the recording links of "10.1.1.10" but when searching for the recordings in the Report page it does not changed the IP of the link.

The bug was that in the file "/goAPIv2/goCallRecordings/goGetCallRecordingList.php" it was trying to access $rsltx directly as an object but it is an array and trying to access an undeclared variable "rowx" for the preg_replace function.
The fix is to change it to $rsltx0 in all cases, so this file arround the lines 125 should stay like this:

if (preg_match("/ALT_IP/i", $rsltx[0]['recording_web_link'])) {
    $location             = preg_replace("/$URLserver_ip/i", "{$rsltx[0]['alt_server_ip']}", $location);
}
if (preg_match("/EXTERNAL_IP/i", $rsltx[0]['recording_web_link'])) {
    $location             = preg_replace("/$URLserver_ip/i", "{$rsltx[0]['external_server_ip']}", $location);
}

History

#1 Updated by Demian Biscocho 11 days ago

  • Status changed from New to Feedback

This should do the trick:

$rsltx                     = $astDB->getOne('servers', NULL, $cols);

if (preg_match("/ALT_IP/i", $rsltx['recording_web_link'])) {
    $location             = preg_replace("/$URLserver_ip/i", "{$rsltx['alt_server_ip']}", $location);
}
if (preg_match("/EXTERNAL_IP/i", $rsltx['recording_web_link'])) {
    $location             = preg_replace("/$URLserver_ip/i", "{$rsltx['external_server_ip']}", $location);
}

Also available in: Atom PDF

Go to top