mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-06 16:48:43 +00:00
added basic searching for the default moh directory added app_defaults so moh is configured/repairable with app_defaults changed to use PROJECT_ROOT changed template replacement to be encased in comment so xml will validate changed to use preg_replace so leading spaces and tabs can be stripped (to output clean xml) local_stream_conf dos2unixed made default search consistent (they should all be music/default or music not a mixture)
36 lines
1017 B
PHP
36 lines
1017 B
PHP
<?php
|
|
/*
|
|
FusionPBX
|
|
Version: MPL 1.1
|
|
|
|
The contents of this file are subject to the Mozilla Public License Version
|
|
1.1 (the "License"); you may not use this file except in compliance with
|
|
the License. You may obtain a copy of the License at
|
|
http://www.mozilla.org/MPL/
|
|
|
|
Software distributed under the License is distributed on an "AS IS" basis,
|
|
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
for the specific language governing rights and limitations under the
|
|
License.
|
|
|
|
The Original Code is FusionPBX
|
|
|
|
The Initial Developer of the Original Code is
|
|
Mark J Crane <markjcrane@fusionpbx.com>
|
|
Portions created by the Initial Developer are Copyright (C) 2016
|
|
the Initial Developer. All Rights Reserved.
|
|
|
|
Contributor(s):
|
|
Mark J Crane <markjcrane@fusionpbx.com>
|
|
Matthew Vale <github@mafoo.org>
|
|
*/
|
|
|
|
if ($domains_processed == 1) {
|
|
|
|
require_once "app/music_on_hold/resources/classes/switch_music_on_hold.php";
|
|
$moh = new switch_music_on_hold;
|
|
$moh->xml();
|
|
$moh->save();
|
|
}
|
|
|
|
?>
|