Commit Graph

1406 Commits

Author SHA1 Message Date
FusionPBX c43d682f09
Update dialplan.lua 2018-08-03 11:21:16 -06:00
FusionPBX c04e2bfe68
Update index.lua 2018-08-01 22:44:03 -06:00
FusionPBX 1da0983dbf
Update call_forward.lua 2018-06-26 11:54:26 -06:00
ednt 7fe3aac2bb Update index.lua (#3196)
A reboot for snom provisioning is not needed.
2018-06-26 11:45:12 -06:00
FusionPBX 727b8a01c2
Update index.lua 2018-06-25 10:35:47 -06:00
FusionPBX 4bd7e18e79
Update route_to_bridge.lua 2018-06-18 17:43:25 -06:00
FusionPBX 4efcb6d84f
Update index.lua 2018-06-06 23:08:34 -06:00
FusionPBX db3a4fb5f3
Update index.lua 2018-06-06 21:10:23 -06:00
FusionPBX b6336f7d21
Update disa.lua 2018-05-30 19:54:11 -06:00
Caleb 8d99ab2a1c Added support for authentication via voicemail box passwords (#3076) 2018-05-30 19:52:52 -06:00
FusionPBX 3235eadd2d
Update mkdir.lua 2018-05-30 10:54:01 -06:00
FusionPBX 45cce55fdf
Update call_forward.lua 2018-05-09 22:47:21 -06:00
FusionPBX bd48a006a8
Update call_forward.lua 2018-05-09 22:45:55 -06:00
FusionPBX 08850a4323
Update index.lua 2018-05-09 09:57:47 -06:00
konradSC ff23a9c69c Bug Fix: Wrong Variable Type (#3050)
The variable "external" is set as a String not as a Boolean. Changed the If statement to reflect.
2018-05-09 09:54:41 -06:00
FusionPBX 41a2a18a0a
Update index.lua 2018-05-09 09:48:48 -06:00
FusionPBX 8bef63a8e0
Update index.lua 2018-05-09 09:07:40 -06:00
FusionPBX ebe56cd38c
Update index.lua 2018-05-09 09:01:56 -06:00
The-Operator 57e0905a36 Enhance Call Blocking [master] (#2988)
* Added support for regular expressions in the numbers to be blocked.
Reduced the caching timeout, as the counter is only incremented when a call is blocked and the number is not cached.

* Added default sort order.

* Added option to switch on/off use of regular expression matching for pgsql and mysql.

* Added support for sqlite and updated default number match to "LIKE" as suggested by MafooUK on IRC.

* Selection of behavior (default [=], regex or like matching) is now done via the variable call_block_matching = regex|like|EMPTY - type text - in the Call Block section of Default Settings.

* Updated comment to match new matching.
2018-05-08 08:50:57 -06:00
FusionPBX 9b7d4e4f80
Update index.lua 2018-05-07 19:59:41 -06:00
FusionPBX 8f25154950
Update index.lua 2018-05-06 13:10:08 -06:00
konradSC cfff4beb2b Use Freeswitch for mkdir (#3049)
This change reduces  the strain on the system by running the OS command through Freeswitch rather than directly from Lua. When running directly from Lua it causes RTP jitter in a high capacity system.
2018-05-04 13:32:36 -06:00
FusionPBX f7b57ebb3e
Update dialplan.lua 2018-05-03 15:19:23 -06:00
FusionPBX a9458de5df
Update record_greeting.lua 2018-04-30 10:32:05 -06:00
afanucchi 0983f3ec97 Allow call forwarding to be enabled and set by argument in INVITE. Useful for softkey on hard phones. (#3035) 2018-04-27 00:44:43 -06:00
Luis Daniel Lucio Quiroz fac71ed1da Same as 4.4 (#3040)
...
2018-04-26 14:42:23 -06:00
FusionPBX c4a0d01f40
Update index.lua 2018-04-25 21:19:31 -06:00
FusionPBX dce574b987
Update index.lua 2018-04-20 09:33:33 -06:00
FusionPBX 1ed83d341b
Update index.lua 2018-04-09 16:15:52 -06:00
FusionPBX deb40fa846
Update index.lua 2018-04-09 15:26:25 -06:00
FusionPBX 1217da9668
Update index.lua 2018-04-09 10:40:05 -06:00
FusionPBX 830dd27022
Update index.lua 2018-04-05 20:02:24 -06:00
FusionPBX 92d4e8e906
Update index.lua 2018-03-31 13:05:21 -06:00
FusionPBX aa636c0c74
Update callcenter.conf.lua 2018-03-31 11:13:08 -06:00
FusionPBX 89121398aa
Update index.lua 2018-03-28 22:40:55 -06:00
FusionPBX df373bfe9c
Update index.lua 2018-03-24 17:33:49 -06:00
FusionPBX 91e5344bc1
Update index.lua 2018-03-24 17:33:10 -06:00
FusionPBX 969502f70e
Update index.lua 2018-03-24 15:45:11 -06:00
FusionPBX c140c01668
Update index.lua 2018-03-24 15:38:10 -06:00
FusionPBX d3f7c5eb2a
Update index.lua 2018-03-24 15:35:32 -06:00
FusionPBX f374f0e521
Update index.lua 2018-03-24 15:34:54 -06:00
FusionPBX 1f45620624
Update index.lua 2018-03-24 15:24:43 -06:00
FusionPBX 3fb1e146ba
Update send_email.lua 2018-03-24 15:16:33 -06:00
FusionPBX 7d002c9f2e
Update index.lua 2018-03-16 00:44:11 -06:00
Caleb 5ea386da9e Changed NOTIFY Event header for Grandstream phones (#3014)
Changed SIP NOTIFY Event header for Grandstream phones to allow provisioning with out requiring a reboot of the device. Based on communication with a Grandstream support rep. Tested on Grandstream GXP2130 and GXP2160 models.
2018-03-07 13:51:22 -07:00
FusionPBX 791fc57f5c
Update index.lua 2018-02-22 12:47:47 -07:00
FusionPBX 4db64e5085
Update index.lua 2018-02-22 10:12:45 -07:00
ednt 6132599550 Update fax_retry.lua (#2994)
If the fax transmission fails the first time, the ident and header was not transmitted during the retries.
2018-02-15 09:19:05 -07:00
FusionPBX 6704dbeea2
Ring Groups route_to_bridge was fixed re-add it to the code. 2018-02-11 10:22:25 -07:00
Alexey Melnichuk eb72f3d5ce Change. library loads only needed files. (#2987) 2018-02-11 08:56:01 -07:00
FusionPBX 13575adba3
Update index.lua 2018-02-10 15:48:18 -07:00
FusionPBX 7bd18aa44b
Update call_flow.lua 2018-02-10 15:34:27 -07:00
FusionPBX 9cc13cd7d4
Update find_file.lua 2018-02-10 15:32:36 -07:00
FusionPBX 5412489442
Update call_flow.lua 2018-02-10 15:14:42 -07:00
FusionPBX 776c2d0b93
Update call_flow.lua 2018-02-10 15:14:22 -07:00
FusionPBX 129a9b5986
Create basename.lua 2018-02-10 13:42:02 -07:00
FusionPBX 39c4530cfd
Update find_file.lua 2018-02-10 13:40:45 -07:00
FusionPBX 4e0edb644c
Create is_absolute_path.lua 2018-02-10 13:39:54 -07:00
FusionPBX 90f5a3a16a
Create find_file.lua 2018-02-10 13:38:17 -07:00
FusionPBX 0c338047cf
Create play_file.lua 2018-02-10 13:35:07 -07:00
Alexey Melnichuk f82f73bc44 Fix. Use preloaded dialplan more then once. (#2986) 2018-02-10 13:27:07 -07:00
markjcrane b32cbd537c Remove the code changes that used route to bridge code as it broke calling multiple external destinations for Ring Groups. 2018-02-08 11:33:08 -07:00
FusionPBX 776016871e
Update send_mail.lua 2018-02-06 18:15:05 -07:00
Mafoo fca2e08a7f Enhance - send_mail.lua (#2978)
use the to address when email:smtp_from:var is empty
don't use email:smtp_from_name:var when empty
2018-02-06 17:45:53 -07:00
Mafoo d92adacc28 BugFix - send_mail.lua (#2977)
use correct header to retrieve call_uuid
2018-02-06 17:28:00 -07:00
Connor Strandt fc72b2250c update index.lua (#2976)
re-formatted table.
2018-02-06 00:09:52 -07:00
FusionPBX 16ff738c5b
Update index.lua 2018-02-05 23:56:22 -07:00
FusionPBX 3db4ecb08c
Update send_mail.lua
Remove this as it caused a nil error app/hangup/index.lua.
2018-02-05 23:47:36 -07:00
FusionPBX 7f201a8097
Update send_mail.lua
Revert the previous commit as it broke send_email.lua.
2018-02-05 22:23:18 -07:00
FusionPBX 5c092b8f57
Update send_mail.lua
Fix a spelling mistake.
2018-02-02 19:35:02 -07:00
Mafoo e06f21ccf3 BugFix - LUA send_mail() (#2975)
take call_uuid from the correct header
use smtp_from_name as part of the from address
2018-02-02 19:33:43 -07:00
Mafoo 9724c1384e BugFix - make hangup and failure use send_mail() (#2974)
change the failure_handler and hangup apps use
resources.functions.send_mail so they can use the correct smtp_from*
settings
2018-02-02 19:33:30 -07:00
Connor Strandt ff1ddaa1ae Formatting and sendmail to use smtp_from fix (#2973)
* Fixed formatting.
* Sendmail to use smtp_from variable

Changed sendmail to use smtp_from as the from address to keep from being blocked by spf check during spam filtering on recieving end.
2018-02-02 01:02:57 -07:00
FusionPBX d877dd0652
Update languages.lua
Prevent a nill error when the phrase was not found.
2018-01-31 14:45:24 -07:00
FusionPBX 704494c381
Update index.lua 2018-01-22 10:46:06 -07:00
FusionPBX debb46c221
Update index.lua 2018-01-22 10:45:48 -07:00
FusionPBX c1c8c5d453
Update index.lua 2018-01-22 10:32:25 -07:00
borisk1976 1af20b8bbd Add new features to disa.lua (#2961)
1. Allow custom sound_pin & sound_extension
2. Allow customization of max_tries, pin_tries & extension_tries
3. Add fallback_destination - fall to it if caller did not entered extension number
4. Allow custom digit_timeout
2018-01-22 00:01:41 -07:00
FusionPBX a11fb1a4ef
Update cache.lua
Make the cache.lua more robust in case of missing key or value.
2018-01-19 18:39:05 -07:00
FusionPBX 894b4bf7fd
Update sofia.conf.lua
Remove an extra double quote that broke xml syntax.
2018-01-19 11:36:08 -07:00
borisk1976 878297a44c Update disa.lua (#2959)
Play user defined greeting befor asking of pin. Usage: <application action="set" data="sound_greeting=/mysounds/mygreeting.wav"/>
2018-01-19 10:58:25 -07:00
FusionPBX 9c7a64cc61
Update disa.lua 2018-01-17 01:52:59 -07:00
FusionPBX 9b6ac876f6
Update languages.lua 2018-01-11 15:31:07 -07:00
FusionPBX 6d59d535d7
Update dialplan.lua 2018-01-11 12:43:58 -07:00
FusionPBX 8a1c43775c
Update translate.conf.lua 2018-01-11 12:31:25 -07:00
FusionPBX 28e74afd8f
Update sofia.conf.lua 2018-01-11 12:29:18 -07:00
FusionPBX b793289d41
Update ivr.conf.lua 2018-01-11 12:27:11 -07:00
FusionPBX 2eae15a643
Update callcenter.conf.lua 2018-01-11 12:25:33 -07:00
FusionPBX 1cf72013f1
Update acl.conf.lua 2018-01-11 12:20:04 -07:00
FusionPBX c3affc15f2
Update acl.conf.lua 2018-01-11 12:11:49 -07:00
FusionPBX 49460503e4
Update acl.conf.lua 2018-01-11 12:10:43 -07:00
FusionPBX d38aa31031
Update local_stream.conf.lua 2018-01-11 12:07:40 -07:00
sergey-mz 929b79d5d0 Check for request errors and return empty string (#2957)
* ODBC DSN detection

* Merge remote-tracking branch 'upstream/master'

* Merge remote-tracking branch 'upstream/master'

* Spelling errors

* Requests to speech platform can fail
2018-01-11 11:26:39 -07:00
konradSC 722021bdd7 Fix for Ring Groups with cfwd always & toll_allow (#2952)
This scenario was broken: 
A ring group member forwards their phone to a destination. The destination is an external number and the outbound route had a toll_allow condition. 

This error would be generated: [ERR] switch_cpp.cpp:1376 [route_to_bridge] Unsupportded condition: ${toll_allow}

This PR will get the toll_allow values from the RG member that is forwarding their phone. Then it will pass it to  'route_to_bridge.lua'.
2018-01-09 15:08:28 -07:00
konradSC 0a414da71d Emergency Notify lua script (#2953)
* Create index.lua

* Create email_body.tpl

* Create email_subject.tpl

* Update index.lua

* Update index.lua
2018-01-09 12:11:16 -07:00
konradSC 4bcbc7edee Ring Group Member - Call Forward (#2951)
After checking for Call Forward loops, set the destination_number to the call forward target.
2018-01-08 12:14:08 -07:00
sergey-mz 61b78ea73b Fix spelling (#2950)
* ODBC DSN detection

* Merge remote-tracking branch 'upstream/master'

* Merge remote-tracking branch 'upstream/master'

* Spelling errors
2018-01-05 13:04:26 -07:00
FusionPBX f8575a15b1
Update index.lua 2018-01-02 19:53:03 -07:00
FusionPBX 82391b67ea
Update main_menu.lua 2018-01-02 19:51:12 -07:00
FusionPBX 0408f79676
Update send_email.lua 2017-12-17 01:59:54 -07:00
markjcrane 0eee87d6c8 Move email_templates 2017-12-17 08:56:59 +00:00
FusionPBX fc7ab309a4
Update send_email.lua 2017-12-17 01:51:39 -07:00
FusionPBX d06b99e01e
Create email_templates.php 2017-12-17 01:51:29 -07:00
FusionPBX fbc40c20c4
Create email_template_edit.php 2017-12-17 01:50:46 -07:00
FusionPBX d00d4a88f6
Create email_template_delete.php 2017-12-17 01:50:19 -07:00
FusionPBX 4b17c4e2a3
Create app_menu.php 2017-12-17 01:49:52 -07:00
FusionPBX 2e1d987812
Create app_languages.php 2017-12-17 01:49:14 -07:00
FusionPBX 754110a4be
Create app_config.php 2017-12-17 01:48:42 -07:00
FusionPBX 7ee707e6f8
Create root.php 2017-12-17 01:47:49 -07:00
FusionPBX abcbe1b95c
Create email_templates.php 2017-12-17 01:47:22 -07:00
FusionPBX b2fb19c3d6
Update email_body.tpl 2017-12-15 20:16:42 -07:00
FusionPBX ecd9e5ef19
Update email_body.tpl 2017-12-15 20:16:23 -07:00
FusionPBX a47415ceca
Update email_body_transcription.tpl 2017-12-15 20:15:50 -07:00
FusionPBX 4ea67b2c17
Update wakeup.lua 2017-12-06 18:01:06 -07:00
Alexey Melnichuk f127969fe4 Fix. Use external numbers in ring groups with global outbound routes (#2937) 2017-11-29 00:21:21 -07:00
Alexey Melnichuk 07a49f37bd Add. Support variables in ring groups when use dierect dial (#2924)
Add. Support variables in ring groups when use direct dial
2017-11-29 00:20:45 -07:00
Alexey Melnichuk bbfbf4e065 Add. Lua script to set call forward for ring group. (#2934) 2017-11-29 00:19:43 -07:00
Alexey Melnichuk b0422af3e2 Add. Use `route_to_bridge` module to build routes for ring groups. (#2907)
* Add. Use `route_to_bridge` module to build routes fro ring groups.

This commit has several improvements
1. Select only needed fields. (do not select quite big XML text strings)
2. Filter routes also by context name
3. Filter dialplans also by hostname
4. Handle conditions based not only `destination_number`
5. Handle `break` and `continue` attributes for extensions
6. Escape vars inside dial-string
7. Add log messages similar as FS dialplan do

* Add. `route_to_bridge` set inline vars so it possible use then in next conditions.
Add. `route_to_bridge` can execute basic api commands from allowed lists.
`route_to_bridge` expand all known vars. If var is unknown then it pass as is.
Fix. `export nolocal:` action.

* Fix. Short variable names

* Add. some comments

* Fix. Do not try execute empty string

This produce error messages `[ERR] switch_cpp.cpp:759 No application specified`

* Fix. Export nolocal values.
2017-11-17 07:15:47 -07:00
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
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
FusionPBX c7c67f3ea2 Update index.lua 2017-07-20 03:50:10 -06:00
FusionPBX 0cefad0358 Update index.lua 2017-07-19 23:07:04 -06:00
FusionPBX 08034e37ff Update index.lua 2017-07-19 23:06:41 -06:00
FusionPBX 2d1beb0bec Update index.lua 2017-07-14 12:26:01 -06:00
FusionPBX b51dfe2f13 Create translate.conf.lua 2017-06-29 12:11:39 -06:00
Alexey Melnichuk 9e38643c40 Fix. Stack overflow when calls base actor. (#2706) 2017-06-22 00:14:28 -06:00
Alexey Melnichuk 515fc15767 Add. BLF indication for call forward. (#2664)
* Add. BLF indication for call forward.

To display general status of CallForward use blf like `forward+<extension>`
To display status for specific phone number use blf like `forward+<extension>/<number>`

* Fix. Escape variable in regex expression.

* Fix. Sync DND and CF blf.

* Add. `blf_subscribe` service which can handle all custom subscriptions.

To run for specific protocol it possible run as `luarun blf_subscribe.lua <PROTO>`
2017-06-20 09:23:23 -06:00
FusionPBX 524c614651 Update directory.lua 2017-06-17 12:19:43 -06:00
FusionPBX bbf8aca7d0 Update directory.lua 2017-06-17 11:38:24 -06:00
FusionPBX 3a0db01a92 Create menu_messages.lua 2017-06-10 23:53:12 -06:00
FusionPBX d9a4a8344a Create menu_messages.lua 2017-06-10 23:06:29 -06:00
FusionPBX 1342888163 Create index.lua 2017-06-10 23:03:22 -06:00
FusionPBX 8ca0847900 Create record_message.lua 2017-06-10 22:57:51 -06:00
FusionPBX fbbd57f8c2 Create index.lua 2017-06-10 22:50:40 -06:00
Alexey Melnichuk d43cb9e700 Add. Allow use `call_flow_subscribe.lua` with feature codes without `flow+` prefix. (#2609)
This commit allows create call flow extension with some feature code (e.g. `*401`)
Then on the phone you can configure BLF like `flow+*401` and use `call_flow_subscribe` to
track current status of this call flow. BLF like `*401` will also works but only if
use `call_flow_monitor` script.
Also it is possible dial `flow+*401` as well as `*401` to toggle call flow state.
2017-06-08 09:44:45 -06:00
Alexey Melnichuk 76ab1cca6a Fix. Properly handle error from memcached when load configs. (#2641)
On my system mod_memcached returns `-ERR SOME ERRORS WERE REPORTED` when
memcached service not available. And sofia.conf.lua does not handle this case
and interpret this response as valid one.
Using `cache` class allows handle such errors. Also this class handle all
escaping operation which makes code more clear.
2017-06-08 09:38:28 -06:00
Alexey Melnichuk 49ab82e657 Add. Use `cache` class in xml_handler/directory (#2647) 2017-06-08 09:37:30 -06:00
FusionPBX 161adf5cad Update listen_to_recording.lua 2017-06-06 21:16:55 -06:00
FusionPBX b6f85d9392 Update index.lua 2017-06-06 21:16:47 -06:00
FusionPBX e394ab4475 Update on_dtmf.lua 2017-06-06 20:45:32 -06:00
netpro25 73032b5fae Update fax_retry.lua (#2625)
Had an issue with malformed email confirmation where the number_dialed was showing up with a bunch of random repeating strings after it. This resolved it for me. Also fixed a grammar error.
2017-06-02 22:33:32 -06:00
Alexey Melnichuk 64b1134482 Add. Support DND feature via BLF key (#2606) 2017-05-29 09:50:20 -06:00
Alexey Melnichuk fa787880d4 Fix. Remove using `call_prompt` field. (#2589)
It marked as deprecated and do not used anywhere.
2017-05-21 01:32:24 -06:00
FusionPBX bf7f211b46 Update intercept.lua 2017-05-19 01:21:19 -06:00
FusionPBX 688cdc5e90 Update intercept.lua 2017-05-19 01:17:08 -06:00
FusionPBX dd37b89353 Update intercept.lua 2017-05-19 01:07:05 -06:00
FusionPBX 1dff786b60 Update sofia.conf.lua 2017-05-12 13:21:19 -06:00
FusionPBX 24fb954811 Update sofia.conf.lua 2017-05-12 12:36:34 -06:00
FusionPBX 340ed5142d Update directory.lua 2017-05-08 23:20:31 -06:00
FusionPBX 0715194731 Update directory.lua 2017-05-08 23:17:03 -06:00
konradSC 08a7d3d61e Conference Center Recording mp3 (#2531)
* Merge (#4)

* Added variables to disable call waiting and t.38 faxing

* HT702 config file variables: grandstream_disable_call_waiting, grandstream_disable_fax_t38

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update {$mac}.cfg

* Update app_config.php

* Corrected bug with expansion board and call park value.  Was 19, should be 16.

* MAC detection for some Grandstream phones (#2486)

Some GS models send the Mac address in the user agent

* Add/Update German and Austrian translations (#2483)

Updates to the following apps:
call_broadcast
call_flows
devices
dialplan_inbound
dialplan_outbound
edit
emails
exec
extensions
fax
fifo
fifo_list
gateways
ivr_menus

* Update destinations.php

* Update xml_cdr_inc.php

* Update status_registrations.php

* Update y000000000028.cfg

* Update y000000000066.cfg

* Update y000000000035.cfg

* Update y000000000065.cfg

* Update y000000000051.cfg

* Update y000000000023.cfg

* Update y000000000025.cfg

* Update y000000000029.cfg

* Update y000000000036.cfg

* Update y000000000038.cfg

* Update y000000000032.cfg

* Update y000000000046.cfg

* Update y000000000000.cfg

* Update y000000000054.cfg

* Update y000000000045.cfg

* Update y000000000069.cfg

* Update y000000000004.cfg

* Update y000000000044.cfg

* Update y000000000044.cfg

* Update y000000000005.cfg

* Update y000000000052.cfg

* Update y000000000007.cfg

* Update y000000000037.cfg

* BugFix for VM Transcription (#2491)

Records as MP3 and skips transcription steps if a user has transcription set to false.

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Yet another ip phone reporting MAC in the UserAgent (#2492)

* Update app_config.php

Begin adding uuid's for key functions.

* Update app_config.php

* Update app_config.php

* Update app_config.php

* Update app_config.php

* Update app_config.php

* Update app_config.php

* Create 560_extension_queue.xml

* Update y000000000037.cfg

* Update y000000000007.cfg

* Update app_config.php

* Update y000000000052.cfg

* Update y000000000028.cfg

* Update y000000000005.cfg

* Update y000000000044.cfg

* Update y000000000044.cfg

* Update y000000000004.cfg

* Update y000000000069.cfg

* Update y000000000045.cfg

* Update y000000000000.cfg

* Update y000000000046.cfg

* Update y000000000032.cfg

* Update y000000000038.cfg

* Update y000000000054.cfg

* Update y000000000036.cfg

* Update y000000000029.cfg

* Update y000000000066.cfg

* Update y000000000035.cfg

* Update y000000000065.cfg

* Update y000000000051.cfg

* Update y000000000023.cfg

* Update y000000000025.cfg

* Update app_config.php

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml

* Update app_config.php

* Fix. Add new sip profile setting. (#2500)

* BugFix [master] system information git (#2499)

fix for if the .git folder is present but corrupt

* Fix. Redirect back to correct profile after delete setting. (#2501)

Fix. Add setting (seems need also set sip_profile_uuid)
Change. Order settings by name when output.

* Restore Button + Audiocodes preliminary support (#2502)

* Audiocodes phone support + restore default for vendors

* Restore button

* Restore script

* Update device_vendors.php

* Some FR & ES translation fixes (#2503)

* Update app_config.php

* Update app_config.php

* Create {$mac}.cfg

* Create directory.xml

* Create favorite_setting.xml

* Create y000000000025.cfg

* Fix. Add extension with non numeric extension number. (#2508)

* Update ring_group_edit.php

* Update call_edit.php

* Create 080_default_caller_id

* Update 080_default_caller_id

* Rename 080_default_caller_id to 080_default_caller_id.xml

* Fix. Create needed number of extensions (#2509)

* Update dialplan_edit.php

* Update switch.php

* Update index.php

* Update switch.php

* Update voicemail_edit.php

* Update app_config.php (#2515)

Add the necessary permissions in order to use the database save function (fusion 4.3) when coding for voicemail option adds/deletes/updates.

I realize these voicemail permissions overall will probably get cleaned up even more once the whole app is updated to use the database function, but this is a stop gap measure. I am working on adding voicemail options to the Bulk Account Settings app and I'm stuck without these permissions. The function is kicking a out 403 Forbidden.

* Update app_config.php

* Really use configured transcribe_language for transcription (#2513)

* Fix renaming domains (#2512)

* Make presence for conferences work out of the box (#2514)

Use '@' instead of '-' for separating conference name and domain, which
is what FreeSWITCH mod_conference uses.

* Add. Speed dial respects contacts user. (#2249)

* Add. Speed dial respects contacts user.

One user can not use speed dial numbers from contacts
associated with another user

* Make SQL query more efficient

* Add. Support find contacts by user groups as well

If contact has set any `user` or `group` then only this users can use speed dial numbers
in other case speed dial numbers are global for domain.

* Fixup for renaming domains (#2517)

The previous fix was incomplete, this one should do it.

* Create app_defaults.php

* Update page.lua

* CC Key Support for Call Center (#2518)

* Exit Keys support

* Multilanguage support

* CC Key Support

* Update call_center.php

* Update code to iterate over numbers. (#1727)

* Update code to iterate over numbers.

This code fixes some problems
 * range like `009-010` current code produce numbers `009` and `0010`
 * range like `200-100` now raise error so it will be easy to debug
 * range like `010-20` now generate error.
 * `destination` is string so condition `destination == tonumber(sip_from_user)` is always false so change it `destination == sip_from_user`

* Fix. handle ranges like `100-100`

* Update index.lua

* Update start_recording.lua
2017-04-24 16:43:32 -06:00
Vladimir 96c1cca28f Adding ru-ru locales (#2530)
* Translation of the menu (sent by Victor Kraft)

* ACL translate

* Backup translated

* App Fax translated (sent by Victor Kraft)

* App Adminer trnslated

* Resources translated (sent by Victor Kraft)

* App SIP Profiles translated

* ru-ru

* Call Block added

* ru-ru

* Update app_menu.php

* voicemails/app_languages.php locales ru-ru

voicemails/app_languages.php locales ru-ru

* app/vars/app_languages.php locales ru-ru

app/vars/app_languages.php locales ru-ru

* core: apps, authentication, databases, default_settings translate

* app/traffic_graph/app_languages.php adding locales ru-ru

app/traffic_graph/app_languages.php adding locales ru-ru

* app/time_conditions/app_languages.php adding locales ru-ru

app/time_conditions/app_languages.php adding locales ru-ru

* /app/system/app_languages.php adding locales ru-ru

/app/system/app_languages.php adding locales ru-ru

* /app/sip_status/app_languages.php adding locales ru-ru

* /app/settings/app_languages.php adding locales ru-ru

* /app/services/app_languages.php adding locales ru-ru

* /app/ring_groups/app_languages.php adding locales ru-ru

* /app/registrations/app_languages.php adding locales ru-ru

* /app/recordings/app_languages.php adding locales ru-ru

* /app/provision/app_menu.php adding locales ru-ru

* /app/pin_numbers/app_languages.php adding locales ru-ru

* Update app_languages.php

* /app/phrases/app_languages.php adding locales ru-ru

* /app/operator_panel/app_languages.php adding locales ru-ru

* core/groups translated

* /app/music_on_hold/app_languages.php adding locales ru-ru

* core/install translated

* core/menu translated

* /app/modules/app_languages.php adding locales ru-ru

* /app/meetings/app_menu.php adding locales ru-ru

* /app/log_viewer/app_languages.php adding locales ru-ru

* /app/ivr_menus/app_languages.php adding locales ru-ru

* /app/gateways/app_languages.php  adding locales ru-ru

* /app/fifo_list/app_languages.php adding locales ru-ru

* core/notifications translated

* /app/fifo/app_languages.php adding locales ru-ru

* core/upgrade translated

* Update app_config.php

* core/user_settings translated

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* core/users translated

* call_block translate fix

* Call Broadcast added

* call_block выклюено fix

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* themes translated

* /app/extensions/app_languages.php for locale ru-ru

* /app/exec/app_languages.php add locale ru-ru

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_languages.php

* Update app_menu.php

* add locales ru-ru /core/install/app_menu.php

* /app/emails/app_languages.php add locales ru-ru

* /app/edit/app_languages.php add locales ru-ru

* /app/dialplan_outbound/app_languages.php add lacales ru-ru

* app/devices translated

* /app/dialplan_inbound/app_languages.php add locales ru-ru

* call_center_active + call_centers

* /app/dialplan/app_languages.php add locales ru-ru

* /app/destinations/app_languages.php add locales ru-ru

* /app/database_transactions/app_languages.php add locales ru-ru

* /app/contacts/app_languages.php addlocales ru-ru

* Update app_languages.php

* Update app_languages.php

* /app/contacts/app_languages.php add locales ru-ru

* /app/conferences/app_languages.php add locales ru-ru

* /app/conference_profiles/app_languages.php add locales ru-ru

* /app/destinations/app_languages.php add locales ru-ru

* /app/destinations/app_languages.php add locales ru-ru

* /app/conferences/app_languages.php add locales ru-ru

* app/calls_active translated

* app/click_to_call translated

* app/calls_active label-opt fix transtation

* translated

* translated

* translate

* /app/voicemails/app_config.php addlocales ru-ru

* /app/voicemail_greetings/app_config.php add locales ru-ru

* /app/vars/app_config.php add locales ru-ru

* /app/traffic_graph/app_config.php add locales ru-ru

* /app/tones/app_config.php add locales ru-ru

* /app/time_conditions/app_config.php add locales ru-ru

* /app/tftp/app_config.php add locales ru-ru

* /app/system/app_config.php add locales ru-ru

* /app/sip_status/app_config.php addlocales ru-ru

* app/devices translated ru-ru

* app/devices translated ru-ru

* /core/menu/app_languages.php add locales ru-ru

* /app/contacts/app_languages.php add locales ru-ru

* /app/conferences/app_languages.php add locales ru-ru

* /app/voicemails/app_languages.php add locales ru-ru

* /app/conference_centers/app_languages.php add locales ru-ru

* /app/ring_groups/app_languages.php add locales ru-ru

* /app/ivr_menus/app_languages.php add locales ru-ru

* /app/xml_cdr/app_languages.php add locales ru-ru

* /resources/app_languages.php add locales ru-ru

* /app/conference_centers/app_languages.php add locales ru-ru

* call_flows

* /app/call_broadcast/app_languages.php add locales ru-ru

* /app/call_block/app_languages.php add locales ru-ru

* /app/call_block/app_languages.php add locales ru-ru

* /app/call_block/app_languages.php add locales ru-ru

* By now

* calls

* /app/call_flows/app_languages.php add locales ru-ru

* /app/system/app_languages.php add locales ru-ru

* /app/exec/app_languages.php add locales ru-ru

* /app/vars/app_menu.php add locales ru-ru

* /app/backup/app_languages.php add locales ru-ru

* /app/ring_groups/app_languages.php add locales ru-ru

* /app/calls/app_languages.php add locales ru-ru

* /app/call_centers/app_languages.php add locales ru-ru

* /app/call_broadcast/app_languages.php add locales ru-ru

* app/fax fix translate label-fax_send_channels

* /app/extensions/app_languages.php add locales ru-ru

* /app/xml_cdr/app_languages.php add locales ru-ru

* /app/ring_groups/app_languages.php add locales ru-ru

* /app/contacts/app_languages.php add locales ru-ru

* Fix default language select

* /app/contacts/app_languages.php add locales ru-ru

* Fix translations in app edit, extensions, fifo, gateways, music_on_hold, services, time_conditions, xml_cdr

* Replaced "звонки" to "вызовы" and fix sorting in menu for "Конференции"

* More replace "звонк"

* Fix translate

* app/xml_cdr replace translate for label-start_range, label-end_range

* app/xml_cdr replace translate label-destination, description_search and description-4

* Corrections

* Repalce "Порядковый номер" to "Приоритет"

* app/operator_panel replace translation label-call_group
2017-04-24 16:37:00 -06:00
Alexey Melnichuk 27f2f41cb4 Fix. Improve parameters patterns. (#2218)
E.g. now it handle queries like
```Lua
local sql = "select :J::text as value"
print(dbh:first_value(sql, {J='hello'}))
```
2017-04-22 10:18:10 -06:00