Project

General

Profile

Actions

Bug #7124

closed

Call Recording Report not changing IP address

Added by Guilherme Bizzani over 5 years ago. Updated over 4 years ago.

Status:
Closed
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);
}
Actions #1

Updated by Demian Biscocho over 5 years 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);
}
Actions #2

Updated by Wittie Manansala over 4 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Go to top