Commit Graph

2062 Commits

Author SHA1 Message Date
markjcrane
204f67a2fc Replace $${hold_music} with local_stream://default. Remove the $${domain}, and outbound caller id name and number value as they wouldn't have a global value. 2016-07-19 10:03:51 -06:00
pixel2920
e1feb2364d Add silence_stream to default voicemail message (#1761)
This corrects the issue in #1760, where the default voicemail message was not being played and instead skipped directly to recording (start recording tone).
2016-07-18 22:55:41 -06:00
FusionPBX
77712fcbf9 Update conference.conf.lua
Add conference controls to the xml handler.
2016-07-17 15:42:14 -06:00
FusionPBX
da8349207a Update conference.conf.lua
Conference profile parameters are now working from the database.
2016-07-17 01:15:35 -06:00
markjcrane
f2af9048eb 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
dfb9dc0664 Update orm.php
Reset the parent_key_exists to default of false.
2016-07-15 12:13:45 -06:00
FusionPBX
6af31a91da 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
3bf7b917d4 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
Alexey Melnichuk
d2ce44736a 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
28215c455e Update orm.php
Remove some debug code.
2016-07-14 01:08:14 -06:00
FusionPBX
d46f758000 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
Alexey Melnichuk
9076df2302 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
44196ae739 Fix. Fusion set rate=48000 to all streams. (#1746) 2016-07-12 08:09:54 -06:00
FusionPBX
9993a93546 Update switch.sql
Add accountcode to detailed_calls view.
2016-07-10 15:12:58 -06:00
FusionPBX
4609e858fe Update switch.sql
basic_calls view - add AS to match freeswitch code and accountcode
2016-07-10 15:04:25 -06:00
FusionPBX
7a67e61d96 Update switch.sql
Add accountcode to the channels table.
2016-07-10 14:53:12 -06:00
FusionPBX
78b7841a74 Update switch.sql
Update sip_registrations table.
2016-07-10 14:38:53 -06:00
Mafoo
904a52434a 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
cae644c8a1 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
39bc0cad29 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
0d73573770 Update page.lua
Update page.lua add support for rtp_secure_media=true.
2016-07-06 14:48:00 -06:00
FusionPBX
711bca9e97 Update app_languages.php
Add label-global to the global languages file.
2016-07-06 13:10:12 -06:00
Alexey Melnichuk
3d1f5b6866 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
Alexey Melnichuk
68d65bf835 Fix. call_flow_monitor use new field call_flow_alternate_label instead old call_flow_anti_label (#1730) 2016-07-04 09:32:22 -06:00
Alexey Melnichuk
b7506b5b18 Fix. Send message count in each MWI notify. (#1728)
* move send event code to separate function
* move get message count to separate function
2016-07-01 10:08:55 -06:00
FusionPBX
b078881da4 Update ringbacks.php
Eliminate duplicates ringbacks class for the music list.
2016-06-30 19:31:24 -06:00
FusionPBX
bfa76cebcd Update ringbacks.php
Update the music on hold list for the ringbacks class.
2016-06-30 19:10:07 -06:00
FusionPBX
849f8fd050 Update page.lua
Add leading zero support to page.lua.
2016-06-30 15:08:14 -06:00
FusionPBX
069ad5d580 Update local_stream.conf.lua
Add a more generic query to make this code compatible with MySQL/Mariadb.
2016-06-30 10:03:32 -06:00
Alexey Melnichuk
8a72e2afd8 Add. Event handler to support MWI. (#1720)
* Add. Event handler to support MWI.

* Fix. store cache only when get data from memcache

* Change. Use UUID as PID.
2016-06-30 09:55:37 -06:00
Chris Black
ae1d180b5e Add programmable keys to yealink t46 (#1722)
Add programmable keys to yealink t46.
2016-06-30 09:54:08 -06:00
FusionPBX
debc6da476 Update local_stream.conf.xml
Remove the rate in the name xml handler will add it based on the rate that is defined in the param.
2016-06-30 09:50:32 -06:00
Alexey Melnichuk
65d9424078 Fix. event_socket_mkdir for Windows system. (#1724) 2016-06-30 08:11:52 -06:00
FusionPBX
2f9c1a7c9f Update local_stream.conf.lua
Changes to the conditions that build the name to make sure it builds it correctly.
2016-06-30 01:40:48 -06:00
FusionPBX
b0c69d6703 Update local_stream.conf.lua
Use the name/rate for global music on hold or domain_name/name/rate for local. If configuring as a default leave the /rate off the end of the string.
2016-06-30 01:18:17 -06:00
FusionPBX
bc670abb32 Update local_stream.conf.lua
Remove the default stream will handle it another way.
2016-06-29 17:19:21 -06:00
FusionPBX
eb8b64dcd3 Update local_stream.conf.lua
Use UUID for the name of the stream. Add a default to handle systems using default.
2016-06-29 16:25:17 -06:00
FusionPBX
9169788abc Update local_stream.conf.xml
Remove 'moh' local stream in favor of 'default'
2016-06-28 16:14:27 -06:00
markjcrane
bd23c78670 Use FreeSWITCH to run mkdir so it inherits its own user and group permissions. 2016-06-28 15:18:40 -06:00
FusionPBX
bc46191440 Update local_stream.conf.lua
Check if row.music_on_hold_timer_name is empty.
2016-06-28 12:24:31 -06:00
markjcrane
9f9cc5271a Merge branch 'master' of https://github.com/fusionpbx/fusionpbx 2016-06-27 19:40:38 -06:00
markjcrane
1ff661782a Remove the Polycom VVX template in favor of 4.x or 5.x templates. 2016-06-27 19:40:02 -06:00
Nate
060314b506 Merge pull request #1713 from mafoo/BugFix-Bootstrap-Remove-map-file
BugFix-Bootstrap Remove map file
2016-06-27 14:16:12 -06:00
mafoo
8f4473a0d9 BugFix-Bootstrap Remove map file
removed reference to pwstrength-bootstrap.min.map as it causes a 404 on
any browser with a debugger attached
2016-06-27 16:47:07 +01:00
Alexey Melnichuk
2d49b1b211 Change. remove CC configuration dependencies from mod_commands. (#1711) 2016-06-27 07:52:29 -06:00
Alexey Melnichuk
f8c2904aaf Add. option to store setting in memcache. (#1707) 2016-06-26 11:43:32 -06:00
Alexey Melnichuk
a4dfa0c04d Fix. Set default values for max length settings (#1706) 2016-06-26 11:42:33 -06:00
Alexey Melnichuk
7a9a4bc3da Fix. Load required libraries in voicemail. (#1705) 2016-06-26 09:03:21 -06:00
FusionPBX
8f26972c20 Update ivr.conf.lua
If the IVR Menu recordings are base64 don't update the path.
2016-06-24 18:40:14 -06:00
markjcrane
3e2dea7b70 Get the settings.recordings.storage_type for the ivr menu using xml handler. 2016-06-24 14:55:16 -06:00