Fixes for server name and alternate IP audio store processes

git-svn-id: svn://192.168.202.10@1222 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2009-09-08 17:25:28 +00:00
parent 3d02e5e189
commit d22ecc8fbe
2 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -232,7 +232,7 @@ else
}
$URL = "http://$sounds_web_server/vicidial/audio_store.php?action=LIST";
$URL = "http://$sounds_web_server/vicidial/audio_store.php?action=LIST&audio_server_ip=$VARserver_ip";
$URL =~ s/&/\\&/gi;
if ($DB)
@@ -357,7 +357,7 @@ if ($upload > 0)
if ( ($found_file < 1) || ($force_upload > 0) )
{
$curloptions = "-s 'http://$sounds_web_server/vicidial/audio_store.php?action=AUTOUPLOAD' -F \"audiofile=\@$PATHsounds/$soundname\"";
$curloptions = "-s 'http://$sounds_web_server/vicidial/audio_store.php?action=AUTOUPLOAD&audio_server_ip=$VARserver_ip' -F \"audiofile=\@$PATHsounds/$soundname\"";
`$curlbin $curloptions`;
$event_string = "UPLOADING: $soundname $soundsize";
if ($DB > 0) {print " $event_string\n|$curlbin $curloptions|\n";}