Commit Graph

6973 Commits

Author SHA1 Message Date
FusionPBX 072c40dc84 Update app_config.php
Remove the domain_uuid from the conference profiles and params.
2016-07-16 17:30:32 -06:00
FusionPBX a030c3f614 Update conference_profile_param_edit.php
Comment out domain_uuid so the conference params are global.
2016-07-16 17:27:58 -06:00
FusionPBX f8acbf56ad Update conference_profile_param_delete.php
Remove the domain filter from the delete.
2016-07-16 17:24:59 -06:00
FusionPBX f27912591e Update conference_profiles.php
Right now conference profiles are global.
2016-07-16 17:24:05 -06:00
FusionPBX 1fd108043a Update app_defaults.php
Import the conference profiles.
2016-07-16 17:17:37 -06:00
FusionPBX 106427d25d Create app_defaults.php 2016-07-16 16:04:36 -06:00
markjcrane 3684dacfcd Add Conference Profiles. 2016-07-16 15:17:54 -06:00
markjcrane 9e568e56a8 Change the file name from <name>.conf.xml.noload to <name>.conf as freeswitch only loads the files with .xml. 2016-07-16 14:19:42 -06:00
FusionPBX 58fa00ddf2 Update device_dashboard.php
Handle saving device keys from a profile that has been changed.
2016-07-16 12:15:22 -06:00
FusionPBX 06f1b7fcec Update provision.php
Simplify the code where device keys can override keys assigned to the device profile keys.
2016-07-16 03:37:46 -06:00
FusionPBX 9fe48e8da2 Update device_dashboard.php
Add profile keys to the dashboard in a way they can be overridden by the device keys.
2016-07-16 03:34:51 -06:00
FusionPBX dd2e18fbdd Update orm.php
Reset the parent_key_exists to default of false.
2016-07-15 12:13:45 -06:00
FusionPBX fdc9a6a902 Update music_on_hold.php
Fix the upload to specific music on hold categories and fix an issue with case sensitivity that prevented ability to delete a file with upper case letters.
2016-07-15 10:44:27 -06:00
FusionPBX e2cdfb5f05 Update switch.sql
When using multiple-registrations the contact string can be longer than 255 characters.
2016-07-15 09:19:03 -06:00
FusionPBX 2373b38630 Update play_greeting.lua
Voicemail greeting will not play after being transferred from IVR #1749. Replace session:streamFile( with session:execute("playback", fixes this problem.
2016-07-15 08:43:53 -06:00
FusionPBX 851ab4e03b Update music_on_hold_edit.php
If the Music on Hold rate is empty use the 'Default' label.
2016-07-14 23:20:01 -06:00
Alexey Melnichuk 10f460cfd2 Fix. Lua can not generate non CUSTOM event with subclass. (#1756)
There 2 way.
First one generate `MEMCACHE` event without subclass
Second generate `CUSTOM` event with subclass e.g. `fusion::memcache`
2016-07-14 11:33:54 -06:00
FusionPBX ba2ad840a5 Delete ivr_menu_option_edit.php
ivr_menu_edit.php now allows editing all options at once so ivr_menu_option_edit.php is no longer needed.
2016-07-14 09:54:16 -06:00
FusionPBX 6bcad98cbd Update ivr_menu_edit.php
Use the right variable for the ivr_menu_options array.
2016-07-14 01:56:43 -06:00
FusionPBX 249210c9df Update ivr_menu_edit.php
When adding an IVR menu allow adding multiple IVR options.
2016-07-14 01:37:26 -06:00
FusionPBX 99df808606 Update ivr_menus.php
Add indentation, and improve the code in ivr_menus.php.
2016-07-14 01:16:07 -06:00
FusionPBX 8e8dce8579 Update ivr_menu.php
Update the ivr_menu class to use the orm class this simplifies and reduces the size of the code.
2016-07-14 01:13:02 -06:00
FusionPBX 92ff680c86 Update ivr_menu_edit.php
Simplify ivr_menu_edit.php and remove the edit option link as it is no longer needed.
2016-07-14 01:11:17 -06:00
FusionPBX 7996e33e4b Update orm.php
Remove some debug code.
2016-07-14 01:08:14 -06:00
FusionPBX f806e0297c Update orm.php
Make this code more resilient in case the primary key or sub table primary key was provided in the data.
2016-07-14 01:06:04 -06:00
FusionPBX bbe1705019 Update v_mailto.php
For the include for email transcription change the file name from email_translation.php to email_transcription.php.
2016-07-13 18:01:40 -06:00
Alexey Melnichuk 1834be5042 Add. Support `onInterval` method to EventConsumer class (#1747)
* Add. Support `onInterval` method to EventConsumer class

Usage
```Lua
-- execute action each 30 sec
events:onInterval(30*1000, function() end)

-- execute action once after 5 min
events:onIntervalOnce(5*60*1000, function() end)
```

* Fix. Remove timers

* Fix. Reset timer before callback

It allows stop timer inside callback.
Also it produce more accurate interval invocation
if callback take quite a long time.
E.g. Interval = 10 sec and callback took 5 sec then
if we reset timer after this callback then gap between
invocation will be 15 sec.

* Add. Timers now have TimeEvent class type.

Add. `reset` method to IntervalTimer class.

```Lua
events:onIntervalOnce(1000, function(self, timer)
  -- timer has type TimeEvent

  -- restart timer so it will be invoke again
  timer:restart()

  -- or reset new interval
  -- timer:reset(5000)
end)
```

* Fix. Typo in variable name
2016-07-13 09:43:51 -06:00
Alexey Melnichuk 9da40dc7b1 Fix. Fusion set rate=48000 to all streams. (#1746) 2016-07-12 08:09:54 -06:00
FusionPBX bec130b265 Update ivr_menu_edit.php
Improve the indentation and some progress to separate getting the data from displaying it.
2016-07-11 17:06:32 -06:00
FusionPBX 120b37361e Update switch.sql
Add accountcode to detailed_calls view.
2016-07-10 15:12:58 -06:00
FusionPBX 79117d1d83 Update switch.sql
basic_calls view - add AS to match freeswitch code and accountcode
2016-07-10 15:04:25 -06:00
FusionPBX 4de57b6a32 Update switch.sql
Add accountcode to the channels table.
2016-07-10 14:53:12 -06:00
FusionPBX a3f0f30907 Update switch.sql
Update sip_registrations table.
2016-07-10 14:38:53 -06:00
FusionPBX 0722bf3254 Update xml_cdr.php
Show the image in CDR only if direction is set.
2016-07-09 16:29:42 -06:00
FusionPBX 3f51ab0a43 Update scripts.php
Remove the extra ) to fix the syntax.
2016-07-08 17:09:09 -06:00
Mafoo 9bc0fded96 BugFix-Add PROJECT_PATH for lua (#1740)
added project_path for lua to use where it needs to build urls
2016-07-08 13:12:37 -06:00
Alexey Melnichuk a52e9c3626 Add. EventConsumer class. (#1741)
Rewrite MWI and CallFlow subscribe handlers based on EventConsumer class.
Also on my test VirtualBox/Debian system Lua function `os.clock` produce
very strange result(delta ~0.015 for 1 second) so I switch to `os.time`.
Now to to stop this background Lua scripts it possible send CUSTOM event
with subclass `fusion::XXX::shutdown`. Where XXX is `mwi` or `flow`.

Usage of EventConsumer class
```Lua
-- create new object with timeout one minute
local events = EventConsumer.new(60000)

-- bind to some FS event
events:bind("SHUTDOW", function(self, name, event) ... end)

-- bind to another FS event with subclass
events:bind("CUSTOM::fusion::mwi::shutdown", function(self, name, event) ... end)

-- handle timeout event
events:on("TIMEOUT", function(self, name) ... end)

--run event loop
events:run()
```
2016-07-08 13:10:43 -06:00
FusionPBX 1094a3fe92 Update app_defaults.php
Music on hold import from XML strip the domain name and rate from the name.
2016-07-08 10:32:56 -06:00
FusionPBX 1a76484b5f Update local_stream.conf.lua
Set a default rate for chime list if one is not provided.
2016-07-06 16:27:22 -06:00
FusionPBX ded9255613 Update music_on_hold_edit.php
Make sure reload mod local stream after editing it.
2016-07-06 15:50:43 -06:00
FusionPBX ade26ea704 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
FusionPBX 454fb19843 Update music_on_hold_edit.php
Fix the chime select list so that it will show what was selected.
2016-07-06 15:33:01 -06:00
FusionPBX 0f84dbc9cd Update page.lua
Update page.lua add support for rtp_secure_media=true.
2016-07-06 14:48:00 -06:00
FusionPBX ec26328577 Update music_on_hold.php
Show global then local for those with music_on_hold_domain.
2016-07-06 14:13:17 -06:00
FusionPBX 5f0235e9c8 Update music_on_hold.php
Remove scope to simplify the interface after upload a user with the right permission can make it global.
2016-07-06 13:58:03 -06:00
FusionPBX dba97dd94a Update music_on_hold_edit.php
Add the translation for global and protect adding global music on hold using permissions.
2016-07-06 13:12:16 -06:00
FusionPBX 7dae4a9d25 Update app_languages.php
Add label-global to the global languages file.
2016-07-06 13:10:12 -06:00
Alexey Melnichuk 79cdf70ebd Add. Support multiple events. (#1736)
Now subscriber stops and remove pid files when FS shutdown.
So if you use Status->Services you will see correct status.
2016-07-06 12:37:16 -06:00
Luis Daniel Lucio Quiroz 760987e0de 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 beab1e2f65 Update switch_music_on_hold.php 2016-07-06 11:19:41 -06:00