Commit Graph

1162 Commits

Author SHA1 Message Date
konradSC b192a96f84 Add Device Feature Sync (#2905)
* Update lua.conf.xml

Hook the feature_event lua script to Freeswitch "PHONE_FEATURE_SUBSCRIBE" events.

* Create index.lua

* Create feature_event_notify.lua

* Update call_forward.lua

Add trigger for feature sync.

* Update do_not_disturb.lua

Add trigger for feature sync.

* Update call_edit.php

* Create feature_event_notify.php

* Update index.lua

disable logging
2017-11-09 12:09:56 -07:00
FusionPBX 89fccdde93
Update index.lua 2017-11-04 12:37:58 -06:00
Luis Daniel Lucio Quiroz 63e33731c2 Same as 4.2 (#2898) 2017-10-30 12:40:05 -06:00
FusionPBX 8320353a14
Update index.lua 2017-10-27 21:50:05 -06:00
FusionPBX 58ea02ccfe Update index.lua 2017-10-18 01:50:30 -06:00
konradSC e6cfdd9ae0 Fix MWI for Extensions that with 0 (#2882)
* Fix MWI for Extensions that with 0

MWI was not turning off after messages were deleted for extensions that start with 0. This requires that real voicemail_id to be pulled from the database and not just taken from the destination number. To get around this we try to send mwi to the original vociemail_id (destination number) and voicemail_id_copy (from database). Index.lua is already doing something similar.

* Update listen_to_recording.lua

* Update menu_messages.lua
2017-10-17 22:23:40 -06:00
FusionPBX 9b9f2c4840 Update call_forward.lua 2017-10-16 11:34:14 -06:00
konradSC 8a1b572fbd Change Column to allow for more characters (#2874)
255 characters is too small for phones with 15+ BLF lines. 

The phone will generate a postgres ERROR:  value too long for type character varying(255)
2017-10-14 22:44:39 -06:00
FusionPBX 9b7258fcea Update index.lua 2017-10-10 13:07:27 -06:00
FusionPBX 6cc768bab6 Update call_forward.lua 2017-10-07 23:40:00 -06:00
FusionPBX 5c80259cd9 Update index.lua 2017-10-07 23:14:22 -06:00
Alexey Melnichuk ae7134d908 Change. Use BasicEventService to implement MWI service. (#2855) 2017-10-06 13:13:33 -06:00
Alexey Melnichuk 06e351f6f3 Fix. crash when using EventCounsumer.ievents iterator. (#2865)
Problem code is
``` Lua
for event in ievents{'SHUTDOWN','CUSTOM::event'} do
end
```
2017-10-06 12:36:23 -06:00
FusionPBX 6e4eb3f73f Set cal 2017-10-04 23:11:42 -06:00
FusionPBX f10dbb12ea Update ivr.conf.lua 2017-10-02 22:19:51 -06:00
FusionPBX 7b6189d010 Update ivr.conf.lua 2017-10-02 22:10:16 -06:00
FusionPBX 45f5273989 Update index.lua 2017-10-02 21:17:29 -06:00
konradSC 2bf5e15c83 Fix "invalid greeting" message played (#2860)
Fix "invalid greeting" message played on entry when pressing 5 for advanced, then 1 for record greeting.
2017-09-29 22:01:28 -06:00
Luis Daniel Lucio Quiroz a2b5889a0f Update ivr.conf.lua (#2861)
when debug["xml_string"] is on, it will overwrite /tmp/ivr.conf.xml file each hit an ivr goes. this makes very hard to trouble shoot in a living system. this patch allows to put one ivr menu per file.
2017-09-29 16:24:59 -06:00
FusionPBX 4c2ead3a0b Update index.lua 2017-09-28 16:51:53 -06:00
konradSC 6d1896052d Update to use curl instead of ssh (#2856)
SSH method never worked. I submitted the wrong file.
2017-09-27 22:01:58 -06:00
Adam Niedzwiedzki 1e6bf55869 Update index.lua (#2858)
Removal of the  ( ) in the sched_api cmd string allows the start_recording.lua to function as designed. 
Added "..scripts_dir.." as well.
2017-09-27 20:35:44 -06:00
FusionPBX ec6e5c85ff Update ivr.conf.lua 2017-09-26 22:40:30 -06:00
konradSC 73bea2f815 File cache sync via curl (#2851)
* Add sendevent when using file caching

* Create clear_cache.lua

FS receives a command via curl to call this script which deletes the single cache entry or flushes the entire cache.

* Create file_cache.lua

This scripts monitors for custom events. When an event is processed it will send out a command via curl to other FS servers telling them to clear their cache. 

This must be called from conf/autoload_configs/lua.conf.xml
 <param name="startup-script" value="app/server/resources/memcache.lua"/>
2017-09-20 16:19:56 -06:00
FusionPBX 7ab304399c Update index.lua 2017-09-12 14:32:13 -05:00
konradSC 620eaf86d4 Update mwi_notify.lua (#2836)
Search all profiles for the sofia_contact. For some reason on server it would automatically search all profiles, but on the other servers I had to add "*/".
2017-09-11 08:53:57 -06:00
konradSC 19ae8a7e95 Update index.lua (#2821)
Break the ring group query into two parts. One for getting the ring group info. Another for getting the ring group user. 

If a user was not assigned to a ring group, then the query will fail to return a result. This will cause forward, prefix, distinctive ring, etc to not work properly.
2017-09-05 10:57:30 -06:00
Tatermen 0c60d475a4 Use effective_caller_id_number instead of caller_id_number when storing voicemail messages. This resolves issue #2333. (#2728) 2017-09-01 09:32:06 -06:00
andycol 301397c832 Add South African Prefixes (#2811) 2017-09-01 08:54:02 -06:00
FusionPBX 7b786a7fc7 Update index.lua 2017-08-27 15:16:01 -06:00
FusionPBX a392cae1f8 Update index.lua 2017-08-27 15:11:31 -06:00
FusionPBX db83ba74c2 Update mwi_notify.lua 2017-08-23 23:05:51 -06:00
konradSC 67d6d7e4d2 Update do_not_disturb.lua (#2803)
Use cache function instead of directly clearing memcache.
2017-08-22 16:16:35 -06:00
FusionPBX 0c043f915c Update index.lua 2017-08-14 12:40:42 -06:00
FusionPBX ae363deaae Update dialplan.lua 2017-08-07 00:28:31 -06:00
konradSC fc1c8e3a22 VM Password Complexity through the Phone (#2773)
* Update index.lua

Store password complexity settings as variables.

* Update macro.lua

Add macros for "password is below minimum length" and "password is not secure"

* Update change_password.lua

Adds the ability to check for password complexity and minimum length.

Also, fixes a bug where the password was changed if the caller hung up in the middle of changing their password.
2017-07-31 10:39:28 -06:00
konradSC 7ef72a7a8e Bug Fix: Not rerouting back to Advanced vm menu (#2768)
Need to pass in the "advanced" menu variable to functions in order to get back to Advanced menu.
2017-07-30 10:55:27 -06:00
FusionPBX f19c4fe3fa Update index.lua 2017-07-29 23:06:43 -06:00
Alexey Melnichuk e728cb44ae Fix. Cache class. (#2755)
* Fix. Cache class.

 * `send_event` raise error so `Cache.del` did not remove key or send any event
 * use `memcache` method by default even if `cache` table does not defined in config
 * `Cache.get` did not return any data when use `memcache` method
 * `Cache.get` did not close file. (Its should not be a big problem because GC should do it by self).
 * `Cache.get` can returns some undefined global value. (if method is `file` and file not exists then method returns global `result` value)
 * `Cache.get` does not need check for file existence
 * Value escaping does not needed for `file` method
 * Needed different key escaping for `memcache` and `file` methods
 * Update self test

* Change. Use random names for temp files.
2017-07-26 09:40:53 -06:00
Alexey Melnichuk 5cc2869e5d Change. Use new service class to implement ha_monitor.lua (#2710)
This allows remove code related to create pid file and
handle system commands (e.g. to stop service) from service
file and leave it to base class.
2017-07-24 23:38:43 -06:00
FusionPBX d6333723c1 Update index.lua 2017-07-24 19:49:32 -06:00
FusionPBX 47b6e497ad Update index.lua 2017-07-23 23:40:39 -06:00
FusionPBX eb8bcc755e Update cache.lua 2017-07-22 15:18:20 -06:00
FusionPBX c126138cf7 Update cache.lua 2017-07-22 15:17:11 -06:00
FusionPBX c2663c3e59 Update cache.lua 2017-07-22 12:38:45 -06:00
FusionPBX 8e5eb0c110 Update cache.lua 2017-07-22 01:09:39 -06:00
FusionPBX f7a26d7711 Update lazy_settings.lua 2017-07-22 00:38:25 -06:00
FusionPBX c2c239d337 Update index.lua 2017-07-21 18:05:23 -06:00
FusionPBX 25a244f874 Update index.lua 2017-07-21 18:05:08 -06:00
Len 16b54e6581 Update index.lua 2017-07-21 00:10:35 -04:00