Commit Graph

51 Commits

Author SHA1 Message Date
FusionPBX
6cc4f79f5a Update switch_music_on_hold.php 2020-06-20 23:23:17 -06:00
Antonio Mark
6cc4e6f9e6 Fixed error when deleting moh as user (#5267)
When deleting moh as user the sql statement was corrupt and moh was not deleted.
2020-05-18 22:58:16 -06:00
Nate
acff646b5b MOH: Delete bug fix. 2020-03-20 14:51:59 -06:00
Nate
15fdaa86d2 MOH: Include clear cache on class delete() method. 2020-02-12 13:31:44 -07:00
Nate
2e21be8cd4 MOH: List view updates. 2019-12-16 12:00:33 -07:00
chansizzle
8e2439074f Update switch_music_on_hold.php (#4648)
removes potential "Warning: sizeof(): Parameter must be an array or an object that implements Countable"
2019-09-24 13:38:32 -06:00
FusionPBX
e37e8b8a20 Update switch_music_on_hold.php 2019-08-29 23:47:17 -06:00
Nate
e4abb2eebe Misc Classes: Database class integration. 2019-08-29 18:20:33 -06:00
FusionPBX
907de6cdb4 Update switch_music_on_hold.php 2018-07-09 14:01:29 -06:00
FusionPBX
54776476f5 Update switch_music_on_hold.php 2018-02-19 21:38:32 -07:00
FusionPBX
3e39cc1e91 Update switch_music_on_hold.php 2017-11-21 20:28:22 -07:00
FusionPBX
0939acf79c Update switch_music_on_hold.php
Sometimes we don't want to set music on hold on the extension level.
2017-11-21 20:22:48 -07:00
FusionPBX
cdeb3f20c2 Update switch_music_on_hold.php
Remove permission for the select list as we would want all users to see global music on hold.
2016-07-06 15:41:26 -06:00
Luis Daniel Lucio Quiroz
e6567d6d8d More efficient and compatible SQL query (#1737)
Don't do a nested select, it adds unnecessary overload to the db. Instead, use a left join, quicker and more compatible among db types.
2016-07-06 12:36:18 -06:00
FusionPBX
230257fff9 Update switch_music_on_hold.php 2016-07-06 11:19:41 -06:00
FusionPBX
20dc89d7a4 Update switch_music_on_hold.php
Eliminate duplicates in the music list for the music on hold class.
2016-06-30 19:32:30 -06:00
FusionPBX
51c12ea5bd Update switch_music_on_hold.php
Change music on hold class method streams to get. Following HTTP REST concept for the name to get the list of data. This same convention can be used in any class.
2016-06-30 19:08:10 -06:00
FusionPBX
65d482fbe4 Update switch_music_on_hold.php
Add the $ to the row to correct the rate.
2016-06-30 01:28:19 -06:00
FusionPBX
a7277e2032 Update switch_music_on_hold.php
Fix the alias on the moh sql select string.
2016-06-30 00:40:01 -06:00
FusionPBX
a877998390 Update switch_music_on_hold.php
Build the music on hold select list based on domain name, name and rate.
2016-06-30 00:23:51 -06:00
FusionPBX
9f815b908e Update switch_music_on_hold.php
Music on hold select list use the UUIDs instead of the names.
2016-06-29 16:52:32 -06:00
FusionPBX
96197d6ad4 Update switch_music_on_hold.php
Update the music on hold list.
2016-06-23 23:14:03 -06:00
markjcrane
11e51de389 Get music on hold from list from the database. 2016-06-22 20:28:20 -06:00
Mafoo
a559e51dff BugFix-default moh for source mode (#1657)
populate the default moh for switch source installs
set comment indents as preferred
2016-06-13 17:48:36 -06:00
Mafoo
c5e1e2f36f BugFix-Double default moh (#1639)
because app_defaults now deals with detecting the default music we don't
need to forcefully put it on the list
if default is detected name it using the $text['opt-default']
2016-06-08 15:40:05 -06:00
Mafoo
27dc84b3b8 BugFix-remove-legacy-warning (#1638)
changed switch_music_on_hold->select to be more inline of usage
changed extension_edit to use new format
changed call_center_queue_edit to use new format while
https://github.com/fusionpbx/fusionpbx/pull/1637 is in testing
2016-06-08 15:15:36 -06:00
Mafoo
e7b177a174 BugFix-moh class bad ref (#1635)
fixed incorrect referenced to the switch_recordings class
2016-06-08 13:27:23 -06:00
Mafoo
d663891bd8 Enhance Ringback (#1590)
created new class to look after generating the list of ringbacks
available
adjusted MOH class so legacy method is still possible (just not recommend) and utilizes optgroups as well
converted ring_groups and ivr_menus to use new method
added translations
implemented list_recordings in switch_recordings class
2016-06-08 07:21:45 -06:00
FusionPBX
7f1873df99 Update switch_music_on_hold.php
Add missing forward slashes so the pattern will be correct for the preg_replace.
2016-05-25 17:42:56 -06:00
Mafoo
b8e3070cdc Added basic searching for moh (#1614)
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)
2016-05-25 14:12:17 -06:00
markjcrane
d5b69dec32 Working on music on hold. 2016-05-10 19:09:45 -06:00
Alexey Melnichuk
134f44e4d4 Fix. Path to records in music on hold. 2016-01-28 13:17:30 +03:00
markjcrane
cde9debb29 After removing domain name from the default recordings dir path need to add the domain name every where the recordings directory is currently used. 2015-12-06 13:37:35 -07:00
Nate Jones
fe8032b1c3 Misc: Removed use of GLOB_BRACE as doesn't work on some systems, use non-GLOB_BRACE method instead. Thanks [xming] and Risk64. Should resolve Issue 916, as well. 2015-05-12 18:11:05 +00:00
Nate Jones
5f6bf426c3 MOH: Restore 'Default' label in select box. 2015-04-08 20:13:45 +00:00
Nate Jones
313f7af98c MOH: Prevent duplicate options in MOH select boxes. 2015-03-18 22:47:11 +00:00
Nate Jones
2448ab3a8e Use the new multi-lingual code on misc files. 2015-01-18 10:33:34 +00:00
Mark Crane
01f34c0210 Update the example code to set MOH. Add the auto_loader class only if it is not defined. 2014-12-24 06:36:09 +00:00
Mark Crane
8c6155902f Fix a syntax problem. 2014-10-25 00:19:43 +00:00
Richard Neese
be7ba59b6e fix for reading template from correct dir. 2014-10-24 18:24:16 +00:00
Mark Crane
e9993f4c3e Update the dev branch version to 3.7 and get rid of GLOB_BRACE which is not defined in Solaris 2014-08-19 09:16:01 +00:00
Mark Crane
3a58d1e08d Move references to php classes in includes/classes to resource/classes. 2013-07-06 07:13:36 +00:00
Mark Crane
fc33d20f61 Move the references to includes/templates to resources/templates. 2013-06-09 05:05:17 +00:00
Mark Crane
c6bf72b2af Add recordings to the ring back list. 2013-03-01 07:28:40 +00:00
Mark Crane
9dafa8d502 Fix a notice error on the menu. 2013-01-16 06:38:45 +00:00
Mark Crane
545649bd77 Add select options to add ring back tones to hunt groups. 2012-12-04 02:39:49 +00:00
James Rose
f7c8aa10b3 music on hold, added preliminary support for translations. 2012-11-24 23:23:20 +00:00
Mark Crane
eec73dfc48 Fix single tenant music on hold. 2012-11-18 06:32:01 +00:00
Mark Crane
0f079a5b34 Move the moh xml into the music on hold class. Add both an xml and save method. Run the save method when deleting a category. 2012-10-24 02:45:51 +00:00
Mark Crane
54e59691a3 Reload music on hold when there is changes. The module will not reload if there is someone actively listening to music on hold at that time. 2012-10-23 06:01:23 +00:00