Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba
mysql> SELECT location, concat('http://225.192.22.54', substr(location,1,21)) as new_location FROM `recording_log` limit 1;
+----------------------------------------------------------------------------------+-------------------------------------------+
| location | new_location |
+----------------------------------------------------------------------------------+-------------------------------------------+
| http://225.192.18.154/RECORDINGS/MP3/PHONEINS_20110221-121910_7557353535-all.mp3 | http://225.192.22.54http://225.192.18.154 |
+----------------------------------------------------------------------------------+-------------------------------------------+
2 rows in set (0.00 sec)
mysql> SELECT location, concat('http://225.192.22.54', substr(location,22)) as new_location FROM `recording_log` limit 1;
+----------------------------------------------------------------------------------+---------------------------------------------------------------------------------+
| location | new_location |
+----------------------------------------------------------------------------------+---------------------------------------------------------------------------------+
| http://225.192.18.154/RECORDINGS/MP3/PHONEINS_20110221-121910_7557353535-all.mp3 | http://225.192.22.54/RECORDINGS/MP3/PHONEINS_20110221-121910_7557353535-all.mp3 |
+----------------------------------------------------------------------------------+---------------------------------------------------------------------------------+
1 row in set (0.00 sec)
update `recording_log` set location=concat('http://225.192.22.54', substr(location,22)) where substr(location,1,21)='http://225.192.18.154' limit 1;
/usr/share/astguiclient/ADMIN_update_archive_url.pl 192.168.0.1 220.xxx.xx.xxx
[root@dialer ~]# /usr/share/astguiclient/ADMIN_update_archive_url.pl XX.XX.XX.XX YY.YY.YY.YY
/usr/share/astguiclient/ADMIN_update_archive_url.pl - updates the url in the recording_log
command-line options:
[--debug] = shows the sql as it is being executed.
[--test] = activates debuging and does not actually
execute the updates.
[--old-server-url] = the old url used to access the recordings.
This is a required argument.
[--new-server-url] = the new url used to access the recordings.
This is a required argument.
[root@dialer ~]# perl /usr/share/astguiclient/ADMIN_update_archive_url.pl XX.XX.XX.XX YY.YY.YY.YY
/usr/share/astguiclient/ADMIN_update_archive_url.pl - updates the url in the recording_log
command-line options:
[--debug] = shows the sql as it is being executed.
[--test] = activates debuging and does not actually
execute the updates.
[--old-server-url] = the old url used to access the recordings.
This is a required argument.
[--new-server-url] = the new url used to access the recordings.
This is a required argument.
Return to ViciBox Server Install and Demo
Users browsing this forum: No registered users and 23 guests