Commit Graph

1463 Commits

Author SHA1 Message Date
FusionPBX 2a9e6f3b3c Update index.lua 2018-05-09 09:01:56 -06:00
The-Operator 593f8ac9a9 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 490803114b Update index.lua 2018-05-07 19:59:41 -06:00
FusionPBX d7411b2f23 Update index.lua 2018-05-06 13:10:08 -06:00
konradSC 8abe5387ae 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 1c8cb7d6cf Update dialplan.lua 2018-05-03 15:19:23 -06:00
FusionPBX 1137d9a634 Update record_greeting.lua 2018-04-30 10:32:05 -06:00
afanucchi 1e89710264 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 cad0636b12 Same as 4.4 (#3040)
...
2018-04-26 14:42:23 -06:00
FusionPBX ed184562da Update index.lua 2018-04-25 21:19:31 -06:00
FusionPBX e4ec48eb48 Update index.lua 2018-04-20 09:33:33 -06:00
FusionPBX 8c8c80b9cd Update index.lua 2018-04-09 16:15:52 -06:00
FusionPBX 2f49e42ac7 Update index.lua 2018-04-09 15:26:25 -06:00
FusionPBX f5a73a8e1d Update index.lua 2018-04-09 10:40:05 -06:00
FusionPBX 34de964157 Update index.lua 2018-04-05 20:02:24 -06:00
FusionPBX 1ac03ef139 Update index.lua 2018-03-31 13:05:21 -06:00
FusionPBX 465ff67989 Update callcenter.conf.lua 2018-03-31 11:13:08 -06:00
FusionPBX f789ed4811 Update index.lua 2018-03-28 22:40:55 -06:00
FusionPBX 69a8ead027 Update index.lua 2018-03-24 17:33:49 -06:00
FusionPBX 8237fb7f4a Update index.lua 2018-03-24 17:33:10 -06:00
FusionPBX 3f382c85ec Update index.lua 2018-03-24 15:45:11 -06:00
FusionPBX 608a6944f7 Update index.lua 2018-03-24 15:38:10 -06:00
FusionPBX 85f875b95e Update index.lua 2018-03-24 15:35:32 -06:00
FusionPBX d56119bb79 Update index.lua 2018-03-24 15:34:54 -06:00
FusionPBX d96e1c1092 Update index.lua 2018-03-24 15:24:43 -06:00
FusionPBX d35b3fd002 Update send_email.lua 2018-03-24 15:16:33 -06:00
FusionPBX 36270f5d4b Update index.lua 2018-03-16 00:44:11 -06:00
Caleb 5fe898716c 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 fcaf1dde98 Update index.lua 2018-02-22 12:47:47 -07:00
FusionPBX c05fb67ddc Update index.lua 2018-02-22 10:12:45 -07:00
ednt 8a7a1c84e5 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 b12a4ebae8 Ring Groups route_to_bridge was fixed re-add it to the code. 2018-02-11 10:22:25 -07:00
Alexey Melnichuk 10b3321042 Change. library loads only needed files. (#2987) 2018-02-11 08:56:01 -07:00
FusionPBX 22d668b39f Update index.lua 2018-02-10 15:48:18 -07:00
FusionPBX 4ddd7dac88 Update call_flow.lua 2018-02-10 15:34:27 -07:00
FusionPBX add7004b64 Update find_file.lua 2018-02-10 15:32:36 -07:00
FusionPBX 97325b41a5 Update call_flow.lua 2018-02-10 15:14:42 -07:00
FusionPBX 0773ebfffb Update call_flow.lua 2018-02-10 15:14:22 -07:00
FusionPBX 67b980fa71 Create basename.lua 2018-02-10 13:42:02 -07:00
FusionPBX b5b3edc50a Update find_file.lua 2018-02-10 13:40:45 -07:00
FusionPBX 778f470aef Create is_absolute_path.lua 2018-02-10 13:39:54 -07:00
FusionPBX db531692be Create find_file.lua 2018-02-10 13:38:17 -07:00
FusionPBX e29ea61545 Create play_file.lua 2018-02-10 13:35:07 -07:00
Alexey Melnichuk fab5b5a970 Fix. Use preloaded dialplan more then once. (#2986) 2018-02-10 13:27:07 -07:00
markjcrane 5cebe62047 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 2cc8cf925d Update send_mail.lua 2018-02-06 18:15:05 -07:00
Mafoo cdd7c2bd97 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 1c580ce7a1 BugFix - send_mail.lua (#2977)
use correct header to retrieve call_uuid
2018-02-06 17:28:00 -07:00
Connor Strandt d32488b2af update index.lua (#2976)
re-formatted table.
2018-02-06 00:09:52 -07:00
FusionPBX e8fccfad74 Update index.lua 2018-02-05 23:56:22 -07:00
FusionPBX b9394a2707 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 131f9eea03 Update send_mail.lua
Revert the previous commit as it broke send_email.lua.
2018-02-05 22:23:18 -07:00
FusionPBX f076a8133b Update send_mail.lua
Fix a spelling mistake.
2018-02-02 19:35:02 -07:00
Mafoo 2471fa7844 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 d6b70b688b 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 3f9c9945a7 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 db55501e61 Update languages.lua
Prevent a nill error when the phrase was not found.
2018-01-31 14:45:24 -07:00
FusionPBX 5bc27f8d73 Update index.lua 2018-01-22 10:46:06 -07:00
FusionPBX 89e3835016 Update index.lua 2018-01-22 10:45:48 -07:00
FusionPBX df6a3ea31d Update index.lua 2018-01-22 10:32:25 -07:00
borisk1976 7a6bfcec41 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 57b914d306 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 2e3bbb25e4 Update sofia.conf.lua
Remove an extra double quote that broke xml syntax.
2018-01-19 11:36:08 -07:00
borisk1976 3b30bd91e4 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 6fb9d83f99 Update disa.lua 2018-01-17 01:52:59 -07:00
FusionPBX 85e8f8cd83 Update languages.lua 2018-01-11 15:31:07 -07:00
FusionPBX 1d327ea628 Update dialplan.lua 2018-01-11 12:43:58 -07:00
FusionPBX 838d7ecc2a Update translate.conf.lua 2018-01-11 12:31:25 -07:00
FusionPBX c5cf812dfc Update sofia.conf.lua 2018-01-11 12:29:18 -07:00
FusionPBX e3077c4228 Update ivr.conf.lua 2018-01-11 12:27:11 -07:00
FusionPBX dad721453c Update callcenter.conf.lua 2018-01-11 12:25:33 -07:00
FusionPBX d18b9bfb1b Update acl.conf.lua 2018-01-11 12:20:04 -07:00
FusionPBX e75ceca392 Update acl.conf.lua 2018-01-11 12:11:49 -07:00
FusionPBX 4d99c01b45 Update acl.conf.lua 2018-01-11 12:10:43 -07:00
FusionPBX 57e53a5aa5 Update local_stream.conf.lua 2018-01-11 12:07:40 -07:00
sergey-mz d808ce5393 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 9adb11398d 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 db8b161473 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 e8b8f559c3 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 d8a12163aa 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 a18d8ba74c Update index.lua 2018-01-02 19:53:03 -07:00
FusionPBX f91a259d6b Update main_menu.lua 2018-01-02 19:51:12 -07:00
FusionPBX 32495ab07c Update send_email.lua 2017-12-17 01:59:54 -07:00
markjcrane deac1b8304 Move email_templates 2017-12-17 08:56:59 +00:00
FusionPBX 3756c2cb65 Update send_email.lua 2017-12-17 01:51:39 -07:00
FusionPBX 35535fbc4d Create email_templates.php 2017-12-17 01:51:29 -07:00
FusionPBX fe22acb62a Create email_template_edit.php 2017-12-17 01:50:46 -07:00
FusionPBX 77e75cc475 Create email_template_delete.php 2017-12-17 01:50:19 -07:00
FusionPBX bd163636ca Create app_menu.php 2017-12-17 01:49:52 -07:00
FusionPBX 3062a003fd Create app_languages.php 2017-12-17 01:49:14 -07:00
FusionPBX 5fdc878cf3 Create app_config.php 2017-12-17 01:48:42 -07:00
FusionPBX c66f86bb7b Create root.php 2017-12-17 01:47:49 -07:00
FusionPBX 52630b08b9 Create email_templates.php 2017-12-17 01:47:22 -07:00
FusionPBX 4542c5782f Update email_body.tpl 2017-12-15 20:16:42 -07:00
FusionPBX abbd01aa80 Update email_body.tpl 2017-12-15 20:16:23 -07:00
FusionPBX ed67006eac Update email_body_transcription.tpl 2017-12-15 20:15:50 -07:00
FusionPBX b9f45573a3 Update wakeup.lua 2017-12-06 18:01:06 -07:00
Alexey Melnichuk a7de7f0baa Fix. Use external numbers in ring groups with global outbound routes (#2937) 2017-11-29 00:21:21 -07:00
Alexey Melnichuk ff5355e840 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 00159b0cc2 Add. Lua script to set call forward for ring group. (#2934) 2017-11-29 00:19:43 -07:00
Alexey Melnichuk 679d4e1fb5 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 3199bf2dda 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 4b1cd6d7eb Update index.lua 2017-11-04 12:37:58 -06:00
Luis Daniel Lucio Quiroz dea1bf390c Same as 4.2 (#2898) 2017-10-30 12:40:05 -06:00
FusionPBX a260d3f714 Update index.lua 2017-10-27 21:50:05 -06:00
FusionPBX cc21f5d4ed Update index.lua 2017-10-18 01:50:30 -06:00
konradSC d407aa4349 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 9db045e02e Update call_forward.lua 2017-10-16 11:34:14 -06:00
konradSC 8523010d19 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 c34e049aaa Update index.lua 2017-10-10 13:07:27 -06:00
FusionPBX bcb83f53b8 Update call_forward.lua 2017-10-07 23:40:00 -06:00
FusionPBX d9a29afb51 Update index.lua 2017-10-07 23:14:22 -06:00
Alexey Melnichuk f91c6eb163 Change. Use BasicEventService to implement MWI service. (#2855) 2017-10-06 13:13:33 -06:00
Alexey Melnichuk 41083c7a8c 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 7f52f5a8a4 Set cal 2017-10-04 23:11:42 -06:00
FusionPBX dd009a4bee Update ivr.conf.lua 2017-10-02 22:19:51 -06:00
FusionPBX 37d312688c Update ivr.conf.lua 2017-10-02 22:10:16 -06:00
FusionPBX 554ef5b2f9 Update index.lua 2017-10-02 21:17:29 -06:00
konradSC 1cf930ca20 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 88109eb967 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 ef85a2c3b3 Update index.lua 2017-09-28 16:51:53 -06:00
konradSC 74930291b3 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 972fb6d44f 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 a477d3aa1c Update ivr.conf.lua 2017-09-26 22:40:30 -06:00
konradSC b969629f58 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 7a0a7d7b80 Update index.lua 2017-09-12 14:32:13 -05:00
konradSC afbba1203d 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 48b85fdbdf 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 1c5d730267 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 31575c25f7 Add South African Prefixes (#2811) 2017-09-01 08:54:02 -06:00
FusionPBX 91842f30b7 Update index.lua 2017-08-27 15:16:01 -06:00
FusionPBX 8170be475b Update index.lua 2017-08-27 15:11:31 -06:00
FusionPBX fd5d5b580a Update mwi_notify.lua 2017-08-23 23:05:51 -06:00
konradSC 93245717cb Update do_not_disturb.lua (#2803)
Use cache function instead of directly clearing memcache.
2017-08-22 16:16:35 -06:00
FusionPBX 5b69862bcc Update index.lua 2017-08-14 12:40:42 -06:00
FusionPBX c21011774b Update dialplan.lua 2017-08-07 00:28:31 -06:00
konradSC 3effd47d9e 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 dd96590619 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 5a142bef69 Update index.lua 2017-07-29 23:06:43 -06:00
Alexey Melnichuk f308e2a30e 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 272d1c2f30 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 d59678cb53 Update index.lua 2017-07-24 19:49:32 -06:00
FusionPBX 1066eaa5e8 Update index.lua 2017-07-23 23:40:39 -06:00
FusionPBX 4cba425e11 Update cache.lua 2017-07-22 15:18:20 -06:00
FusionPBX 5ddedc8afa Update cache.lua 2017-07-22 15:17:11 -06:00
FusionPBX 1804dcc344 Update cache.lua 2017-07-22 12:38:45 -06:00
FusionPBX cf0fbb0f93 Update cache.lua 2017-07-22 01:09:39 -06:00
FusionPBX 942293debe Update lazy_settings.lua 2017-07-22 00:38:25 -06:00
FusionPBX fce02cb024 Update index.lua 2017-07-21 18:05:23 -06:00
FusionPBX 8bd98f826b Update index.lua 2017-07-21 18:05:08 -06:00
Len b534caeddb Update index.lua 2017-07-21 00:10:35 -04:00
FusionPBX 614861eda8 Update index.lua 2017-07-20 03:50:10 -06:00
FusionPBX 82e65333e9 Update index.lua 2017-07-19 23:07:04 -06:00
FusionPBX d32c2cfd60 Update index.lua 2017-07-19 23:06:41 -06:00
FusionPBX 770915d3b7 Update index.lua 2017-07-14 12:26:01 -06:00
FusionPBX 39dc843d12 Create translate.conf.lua 2017-06-29 12:11:39 -06:00
Alexey Melnichuk c36be184b8 Fix. Stack overflow when calls base actor. (#2706) 2017-06-22 00:14:28 -06:00
Alexey Melnichuk 6fc6e231c8 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 f25933e811 Update directory.lua 2017-06-17 12:19:43 -06:00
FusionPBX e214cab135 Update directory.lua 2017-06-17 11:38:24 -06:00
FusionPBX 04e8f7f522 Create menu_messages.lua 2017-06-10 23:53:12 -06:00
FusionPBX c80f8668da Create menu_messages.lua 2017-06-10 23:06:29 -06:00
FusionPBX a2da52bf46 Create index.lua 2017-06-10 23:03:22 -06:00
FusionPBX ed95497c2f Create record_message.lua 2017-06-10 22:57:51 -06:00
FusionPBX 44a43a43f0 Create index.lua 2017-06-10 22:50:40 -06:00
Alexey Melnichuk f939c82862 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 46f74ab726 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 cfeb809900 Add. Use `cache` class in xml_handler/directory (#2647) 2017-06-08 09:37:30 -06:00
FusionPBX 7e6d4d3c50 Update listen_to_recording.lua 2017-06-06 21:16:55 -06:00
FusionPBX 8403a806cc Update index.lua 2017-06-06 21:16:47 -06:00
FusionPBX 9ea2adba59 Update on_dtmf.lua 2017-06-06 20:45:32 -06:00
netpro25 1716255660 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 a7d58e14c7 Add. Support DND feature via BLF key (#2606) 2017-05-29 09:50:20 -06:00
Alexey Melnichuk c4c97fee29 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 ddf5cd558a Update intercept.lua 2017-05-19 01:21:19 -06:00
FusionPBX a074819270 Update intercept.lua 2017-05-19 01:17:08 -06:00
FusionPBX 6bdc5784b7 Update intercept.lua 2017-05-19 01:07:05 -06:00
FusionPBX 36e104a59a Update sofia.conf.lua 2017-05-12 13:21:19 -06:00
FusionPBX 2fda163776 Update sofia.conf.lua 2017-05-12 12:36:34 -06:00
FusionPBX 1c1fc9a17d Update directory.lua 2017-05-08 23:20:31 -06:00
FusionPBX 3a05c0bce7 Update directory.lua 2017-05-08 23:17:03 -06:00
konradSC e111904554 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 30055465b7 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 d390270b2e 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
Alexey Melnichuk d6efebf13f Fix. Remove unused code from mwi_subscribe.lua (#2527) 2017-04-21 05:59:38 -06:00
Alexey Melnichuk debfcbbc5b Fix. Escape strings in regex api (#2523) 2017-04-20 07:48:49 -06:00
konradSC fa4ab999cf Ring group toll allow (#2520)
* 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 app_config.php

* Update app_languages.php

* Update ring_group_edit.php

* Update index.lua
2017-04-19 14:12:14 -06:00
Alexey Melnichuk 110086f75a 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`
2017-04-18 12:11:39 -06:00
FusionPBX 0a766b1fff Update page.lua 2017-04-18 11:56:33 -06:00
Alexey Melnichuk 8f2782e8dd 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.
2017-04-17 09:02:36 -06:00
Stefan Siegel 1ee633cd10 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.
2017-04-17 09:01:04 -06:00
Stefan Siegel 901ae7e71e Really use configured transcribe_language for transcription (#2513) 2017-04-17 08:50:34 -06:00
konradSC 0ad7bdf1d9 BugFix for VM Transcription (#2491)
Records as MP3 and skips transcription steps if a user has transcription set to false.
2017-04-10 18:13:50 -06:00
konradSC 39cc2ce9e8 Update index.lua (#2473)
Bug fix in per user vm transcription. If domain had transcription enabled but the user did not, then the sql insert of the msg would fail.
2017-04-04 21:24:13 -06:00
Luis Daniel Lucio Quiroz 8bdb585f14 Fix CID alteration in Ringroups (#2467)
I really don't know if this is an IP phone issue (tested on grandstream) or a new behavior on FreeSWITCH, but in order to add the prefix to the caller id (name or number) correctly, you need to export instead of set.
2017-04-03 11:53:41 -06:00
konradSC 4c2eb26f72 Voicemail tutorial (#2451)
* Update macro.lua

Add additional macros for the tutorial.

* Create tutorial.lua

* Update index.lua

* Update record_greeting.lua

Add menu variable to route back to appropriate place in the flow.

* Update record_menu.lua

Add menu variable to accommodate the tutorial.

* Update change_password.lua

Add menu variable to accommodate the tutorial.

* Update record_name.lua

Add menu variable to accommodate the tutorial.

* Update voicemail_edit.php

Add option to play tutorial on next login.

* Update app_languages.php

* Update app_config.php

Add voicemail_tutorial to database.

* Update extension_edit.php

Set "voicemail_tutorial" to true for new extensions.
2017-03-24 23:06:16 -06:00
FusionPBX 1ca70ff839 Update hangup_rx.lua 2017-03-01 12:24:54 -07:00
FusionPBX d2525b8669 Update callcenter.conf.lua 2017-02-20 20:47:35 -07:00
FusionPBX a8764b964f Update forward_to_extension.lua 2017-02-19 04:14:18 -07:00
FusionPBX 372066de1f Update on_dtmf.lua 2017-02-16 18:14:59 -07:00
FusionPBX 388480f244 Add RECOVERY_ON_TIMER_EXPIRE for the timeout destination. 2017-02-15 10:31:31 -07:00
FusionPBX 4315d8c31d Add ring_ready to extend the ring time. 2017-02-14 15:01:59 -07:00
Chris Black 7dca005cdf Add per-voicemail transcription enabled. (#2370) 2017-02-13 13:12:43 -07:00
FusionPBX ca0589f6d4 Update directory.lua 2017-02-07 18:56:21 -07:00
FusionPBX c0cea83beb Update switch.sql 2017-02-01 18:01:20 -07:00
Alexey Melnichuk 080763cee7 Add. Support remote reboot Panasonic devices. (#2326)
Tested with Panasonic KX-TGP500 Firmware 22.90
User agent string `Panasonic_KX-TGP500B09/22.90 (<MAC>)`
2017-01-31 00:35:24 -07:00
FusionPBX ee65f04ef3 Update index.lua
Adding  ~= nil as its used in various places in this file changed for better consistency.
2017-01-30 20:57:37 -07:00
FusionPBX 159f27d884 Update index.lua
Add the voicemail_uuid to the if statement on vm disk quota.
2017-01-30 20:54:03 -07:00
FusionPBX 9f72e69667 Update index.lua
Prevent a nil error when using voicemail has reached its quota.
2017-01-30 20:35:27 -07:00
FusionPBX bf6274e0fb Update sofia.conf.lua
Activate the sofia profile domain aliases.
2017-01-28 14:50:06 -07:00
FusionPBX 40efef919a Update
Add voicemail/vm-no_answer_no_vm.wav
2017-01-27 13:24:10 -07:00
FusionPBX be0ffa16e5 Update index.lua
Prevent an error by moving the voicemail quota into the if statement that checks if the voicemail_uuid is not null.
2017-01-27 12:18:01 -07:00
FusionPBX b2776e4e10 Update sofia.conf.lua 2017-01-18 08:55:29 -07:00
Alexey Melnichuk 795e45227d Fix. Russia has 11 digits (close #2303) (#2304) 2017-01-17 10:14:49 -07:00
Chris Black b87a11adab Add transcription to the sms message (#2308)
Gives the user ability to add transcription to the sms message for
voicemail notifications.
2017-01-17 10:13:33 -07:00
FusionPBX 5609b57c3e Update sofia.conf.lua
Fix the year.
2017-01-12 04:26:32 -07:00
FusionPBX 3a4263a51e Update sofia.conf.lua
Fix domain alias show with sofia status.
2017-01-12 04:18:58 -07:00
FusionPBX 4c6e807786 Update ivr.conf.lua 2016-12-29 13:35:55 -07:00
jebsolutions 730e9ed514 fixes bug #2270 reported by volga629 (#2276)
Please do further testing/review and give comments and suggest cleanup, etc.

This bug is only tripped if all of the following are true:
a) fax send fails
b) email notification of fax failure also fails
c) Other?

how to test
- have a 100% working fax to email setup.
- Change Advanced->defaults->email and set the port to be something invalid.
- e.g. smtp port 9999 is invalid
- send a test fax to something without a fax
- e.g. I just faxed my own DID which does NOT have fax answering

- each time the phone rings answer...wait 5 seconds, and then hang up
- note: it will retry sending the fax 5 times so repeat the above.

- on the last try it will give up, and try to send the failure email
- the email will fail (bad port) and then it will insert the failed email into v_emails
- the insert will fail and nothing in v_emails

Error was caused by trying to insert '' into the domain_uuid field.
'' is invalid in a uuid field, but null is okay.

The null is caused by no x-headers being passed.  So these two fields end up null:
$headers["X-FusionPBX-Domain-UUID"]
$headers["X-FusionPBX-Email-Type"]

Ignoring unset/uninitialized variables hides bugs.

Fix: feed the X-Header in the calling lua code.
2016-12-27 17:49:57 -07:00
Luis Daniel Lucio Quiroz fa244129be Fix Call forward BUSY and NO ANSWER DEVEL (#2269)
Same rationale as 4.0 and 4.2
2016-12-24 10:38:21 -07:00
FusionPBX 02a505e4d2 Update route_to_bridge.lua 2016-12-23 02:16:22 -07:00
FusionPBX b9b3fd6494 Update route_to_bridge.lua 2016-12-23 01:52:19 -07:00
FusionPBX 406d326c8d Update dialplan.lua
Add hostname to dialplan xml handler.
2016-12-23 01:28:47 -07:00
FusionPBX dddaf28f6e Update 2016-12-22 14:38:12 -07:00
FusionPBX bd3e32a6d5 Update check_password.lua 2016-12-22 14:34:38 -07:00
Alexey Melnichuk f79418079c Fix. Use CID from extension for call forward if set `call_forward_fix`. (#2260)
This is same behavior as in Web UI.
2016-12-20 09:07:58 -07:00
FusionPBX 7d161e0fa2 Update ivr.conf.lua
Fix the memcache expire on the ivr menu.
2016-12-14 08:45:56 -07:00
Alexey Melnichuk 72dfd3a362 Fix. Find in database not empty phone number for speed dial. (#2242)
Also do not store `context` in memcache
2016-12-09 00:49:51 -07:00
Alexey Melnichuk 90dc900933 Fix. logs sql only if debug flag set. (#2243) 2016-12-09 00:42:20 -07:00
FusionPBX b969472975 Update index.lua
Change destination_number to destination, and use argv to get the destination.
2016-12-08 11:48:07 -07:00
Alexey Melnichuk 984e8f16e7 Rewrite speed_dial Lua script. (#2239) 2016-12-08 10:23:38 -07:00
FusionPBX b6c6016e29 Create index.lua 2016-12-08 03:03:58 -07:00
Alexey Melnichuk cddb1da5a9 Fix. Group intercept with not empty group name (#2232) 2016-12-07 23:47:37 -07:00
Alexey Melnichuk b33ea1b1c2 Remove unused database connection. (#2235) 2016-12-06 09:52:51 -07:00
Alexey Melnichuk f9fa141d46 Fix. Set correct values for voicemail_to_sms_* settings (#2229)
`true` and `false` string literals evaluates to `true` boolean value.
2016-12-05 16:02:32 -07:00
Alexey Melnichuk 569250d098 Fix. group_call pass params to query (#2227) 2016-12-02 17:29:42 -07:00
FusionPBX e3fee1a732 Update fax_retry.lua 2016-12-02 00:52:10 -07:00
FusionPBX 521b50eb8a Update fax_retry.lua
Prevent a nill error for email_address.
2016-12-01 23:57:17 -07:00
FusionPBX 9a1cb972b6 Update fax_retry.lua 2016-12-01 23:47:32 -07:00
Chris Black ce6c559f29 Voicemail to sms notification (#2205)
Requires that you have fusionpbx-apps/sms

Doesn’t impact anything if you don’t have it. Must be enabled with
default_setting voicemail_to_sms

Everything is disabled by default and the fields in voicemail_edit.php
are hidden by default.
2016-11-30 16:26:39 -07:00
FusionPBX 33fbfd84f5 Update forward_add_intro.lua
Add missing ) which was breaking the syntax.
2016-11-28 08:43:47 -07:00
Alexey Melnichuk 82301775c3 Fix. Build correct SQL in vm/menu_messages.lua (close #2189) (#2195) 2016-11-25 23:03:19 -07:00
Alexey Melnichuk c28fbf9c6a Fix. Close database object in vm/forward_to_extension.lua (#2196) 2016-11-25 23:01:43 -07:00
Alexey Melnichuk 21b63b086b Fix. Store message_intro_base64 in database. (#2197) 2016-11-25 23:01:18 -07:00
Alexey Melnichuk 69585d2023 Add. ${user_exists} value to check condition when build CF dialstring (#2183) 2016-11-24 10:07:55 -07:00
Alexey Melnichuk b16dbcc125 Fix some minor typos related with new Database class. (#2174) 2016-11-24 10:04:42 -07:00
Alexey Melnichuk 7b71ddcab1 Add. Use params in provision/index.lua (#2173) 2016-11-24 10:01:06 -07:00
Alexey Melnichuk 0c28bdadc3 Add. call_flow_monitor.lua uses Database class. (#2172) 2016-11-24 09:57:18 -07:00
Alexey Melnichuk 9963e94c0f Add. Use params in disa.*.lua (#2171) 2016-11-24 09:56:09 -07:00
Alexey Melnichuk 4ba9e89765 Fix. Find call_group with NULL in intercept.lua (#2169) 2016-11-24 03:04:52 -07:00