Commit Graph

187 Commits

Author SHA1 Message Date
Chris Black
35d3470bd6 one more spot to add playandgetdigits (#1942) 2016-09-25 01:43:20 -06:00
FusionPBX
1b64726403 Update macro.lua 2016-09-20 10:56:34 -06:00
FusionPBX
4490709b23 Update macro.lua 2016-09-20 10:27:47 -06:00
FusionPBX
ad93950d25 Update index.lua 2016-09-20 10:22:05 -06:00
jebsolutions
185417c45a Update macro.lua to fix reading voicemail extension number (#1929)
Expected result: The person at extension XXX is unavailable ...
Actual result: The person at is unavailable... 
i.e. it doesn't say the extension number.

bug: trying to access local variable voicemail_greet_id outside it's scope...so it doesn't exist and you get this in the logs:

2016-09-18 12:32:54.615249 [ERR] switch_cpp.cpp:977 Error! invalid args. 

Fix moves local variable creation outside the inner "if" so it's available for the later table.insert
2016-09-18 14:02:25 -06:00
FusionPBX
e7ecc27901 Update macro.lua 2016-09-17 18:20:58 -06:00
Chris Black
00fa4c7064 fix the voicemail IVR with custom greeting (#1917) 2016-09-14 15:28:04 -06:00
Alexey Melnichuk
09f2d8fa43 Allow use odbc to store files (record/voicemail) in database. (#1535)
* Change. Allow use odbc to store files (record/voicemail) in database.

* Fix. Generate correct default config.
2016-09-04 13:05:47 -06:00
FusionPBX
0a67365786 Update forward_add_intro.lua 2016-09-03 21:15:07 -06:00
FusionPBX
644b862287 Update delete_recording.lua 2016-09-03 15:40:27 -06:00
FusionPBX
566824c7e1 Update delete_recording.lua
Remove the into_<uuid> voicemail file.
2016-09-03 15:40:11 -06:00
FusionPBX
0a0bd82444 Update listen_to_recording.lua
Play the voicemail introduction if it exists.
2016-09-03 15:39:13 -06:00
FusionPBX
6f78257495 Update forward_add_intro.lua 2016-09-03 15:27:41 -06:00
FusionPBX
002f2b67d4 Update forward_add_intro.lua
Use phrase:voicemail_forward_prepend and record the intro. Use the following naming convention for the intro_<uuid>.wav.
2016-09-03 15:18:53 -06:00
FusionPBX
aff5198bd5 Update index.lua 2016-09-01 14:38:56 -06:00
FusionPBX
18865d1bda Update forward_add_intro.lua 2016-09-01 14:37:30 -06:00
FusionPBX
58ef0ac93d Update mwi.lua 2016-09-01 14:25:51 -06:00
FusionPBX
d1ee2d6b94 Update forward_to_extension.lua 2016-09-01 13:33:41 -06:00
FusionPBX
2d5021ebd9 Update forward_add_intro.lua 2016-09-01 13:31:55 -06:00
FusionPBX
dfbb321b5b Update record_message.lua 2016-08-20 18:54:02 -06:00
FusionPBX
390cfd09e2 Create forward_add_intro.lua 2016-08-10 16:10:22 -06:00
Alexey Melnichuk
f214625ead Change. Use service::control event to control services (#1790)
* Change. Use `service::control` event to control services

This is more FS way. E.g. sofia sends `sofia::register` event
and add all information to headers. So now `service` script
emit `fusion::service::control` event and each service responsible
for test its own name. This also allows add in future evnets to
e.g. monitor service status like `fusion::service::satus` so it
will be possible write service which will be restart services.

* Change. rename service name from `flow` to `call_flow`
2016-08-02 14:00:49 -06:00
FusionPBX
795113c2b1 Update macro.lua
Add forward_add_intro to macro.lua.
2016-07-29 09:46:56 -06:00
Alexey Melnichuk
a73b8680cb Add service script and make timout optional for EventConsumer ctor (#1775)
* Change. Pass pid file first. Because there really no need pass timeout.
Add. `fsc` script to be able shutdown MWI and Call Flow subscribe services.

* Change. rename `fsc` to `service`.

* Change. Use `stop` command instead of `shutdown`
2016-07-26 11:58:37 -06:00
Mafoo
613b9c9bea Enhance Voicemail Emails (#1738)
* Renamed template variable account to voicemail_id and adjusted all
templates
* Added ${voicemail_description}
* Added ${voicemail_name_formatted} (will render the voicemail identifier in accordance with Default/Domain Settings > Voicemail > display_domain_name)
* Updated templates to be consistent spacing
* Updated templates to include use of ${voicemail_name_formatted}
* Changed ${account} to be voicemail_name_formatted instead of id
2016-07-22 09:23:03 -06:00
pixel2920
c26fc36bd1 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
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
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
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
Alexey Melnichuk
dc3575c05c 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
Alexey Melnichuk
ba857b6acf 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
Alexey Melnichuk
5a58cf1436 Fix. Set default values for max length settings (#1706) 2016-06-26 11:42:33 -06:00
Alexey Melnichuk
c0739c4d40 Fix. Load required libraries in voicemail. (#1705) 2016-06-26 09:03:21 -06:00
Mafoo
f88691618e Enhance-make voicemail length configurable (#1702)
allow the voicemail max_lengths to be configured from domain/default
settings
2016-06-24 10:28:47 -06:00
markjcrane
2955b8447e Increase the voicemail greeting length that is allowed to 90 seconds. 2016-06-21 18:35:05 -06:00
mafoo
b7555579bf WhitespaceClean-resources/install/scripts
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 13:21:52 +00:00
markjcrane
f525d2bbda Remove trailing whitespaces. 2016-02-03 19:03:16 -07:00
markjcrane
4bb748a300 Base64 - Make sure the directory structure exists. 2016-02-03 10:01:43 -07:00
markjcrane
19945b5095 Change the comment in check_password.lua. 2016-01-22 12:24:18 -07:00
Alexey Melnichuk
e4e6fe92a9 Fix. Do not prompt password if there no mailbox. 2016-01-22 11:37:34 +03:00
FusionPBX
f208e06a9d Revert "cherry picked changes from 4.0 branch" 2016-01-04 13:13:48 -07:00
Matthew Vale
4fdb6e9916 cherry picked changes from 4.0 branch 2015-12-31 10:11:31 +00:00
Alexey Melnichuk
3a5fc397ba Add. Text class to manage translate texts. 2015-11-30 10:22:55 +03:00
Alexey Melnichuk
84f3fde716 Add. send_mail wrapper function to freeswitch.email and v_mailto.php.
Fix. Send voicemail when set unknown language/dialect.
2015-11-27 15:47:14 +03:00
markjcrane
44ec8d5942 Add voicemail record-silence-threshold variable and change the default threshold from 30 to 300. 2015-11-16 16:59:11 -07:00
markjcrane
1c6f58ca03 MWI only turn on the light for new messages. 2015-10-29 17:34:39 -06:00
markjcrane
bf3c374e13 Play the message number first then the caller id number. 2015-10-24 21:12:43 -06:00
markjcrane
8f67f2c4c1 Add vm_say_caller_id_number option for true or false. 2015-10-24 21:00:22 -06:00
markjcrane
128bb6d857 Add voicemail caller id number announce as iterated. 2015-10-24 20:09:36 -06:00