mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update app_defaults.php
Music on hold import from XML strip the domain name and rate from the name.
This commit is contained in:
@@ -66,6 +66,11 @@
|
|||||||
$$name = $p['@attributes']['value'];
|
$$name = $p['@attributes']['value'];
|
||||||
$attributes[] = $name;
|
$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
|
//insert the data into the database
|
||||||
$music_on_hold_uuid = uuid();
|
$music_on_hold_uuid = uuid();
|
||||||
|
|||||||
Reference in New Issue
Block a user