Update app_defaults.php

Music on hold import from XML strip the domain name and rate from the name.
This commit is contained in:
FusionPBX 2016-07-08 10:32:56 -06:00 committed by GitHub
parent 1a76484b5f
commit 1094a3fe92
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,11 @@
$attributes[] = $name;
}
//strip the domain name and rate from the name
$array = explode('/', $stream_name);
if (count($array) == 3) { $stream_name = $array[1]; }
if (count($array) == 2) { $stream_name = $array[0]; }
//insert the data into the database
$music_on_hold_uuid = uuid();
$sql = "insert into v_music_on_hold ";