Commit Graph

1238 Commits

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

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

* Create index.lua

* Create feature_event_notify.lua

* Update call_forward.lua

Add trigger for feature sync.

* Update do_not_disturb.lua

Add trigger for feature sync.

* Update call_edit.php

* Create feature_event_notify.php

* Update index.lua

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

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

* Update listen_to_recording.lua

* Update menu_messages.lua
2017-10-17 22:23:40 -06:00
FusionPBX 9b9f2c4840 Update call_forward.lua 2017-10-16 11:34:14 -06:00
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
Alexey Melnichuk 2f3c3c87c6 Fix. Remove unused code from mwi_subscribe.lua (#2527) 2017-04-21 05:59:38 -06:00
Alexey Melnichuk b0f83edcf0 Fix. Escape strings in regex api (#2523) 2017-04-20 07:48:49 -06:00
konradSC ab349620c8 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 e4a0127906 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 b4b0014a26 Update page.lua 2017-04-18 11:56:33 -06:00
Alexey Melnichuk cf9c77ad9b 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 47866df1ec 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 c017652cbd Really use configured transcribe_language for transcription (#2513) 2017-04-17 08:50:34 -06:00
konradSC 372475094a 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 0852dee581 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 5c2a8433db 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 5dcd3a1d2e 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 22d11226c1 Update hangup_rx.lua 2017-03-01 12:24:54 -07:00
FusionPBX 92ba5e1529 Update callcenter.conf.lua 2017-02-20 20:47:35 -07:00
FusionPBX 5ac6881cf4 Update forward_to_extension.lua 2017-02-19 04:14:18 -07:00
FusionPBX bb360bfce6 Update on_dtmf.lua 2017-02-16 18:14:59 -07:00
FusionPBX 486b08de8f Add RECOVERY_ON_TIMER_EXPIRE for the timeout destination. 2017-02-15 10:31:31 -07:00
FusionPBX 4190785fc0 Add ring_ready to extend the ring time. 2017-02-14 15:01:59 -07:00
Chris Black 437d3ac735 Add per-voicemail transcription enabled. (#2370) 2017-02-13 13:12:43 -07:00
FusionPBX 3c229a7ae9 Update directory.lua 2017-02-07 18:56:21 -07:00
Alexey Melnichuk 3c067947de 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 1373914369 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 2c4d54a52b Update index.lua
Add the voicemail_uuid to the if statement on vm disk quota.
2017-01-30 20:54:03 -07:00
FusionPBX b63a6bb42b Update index.lua
Prevent a nil error when using voicemail has reached its quota.
2017-01-30 20:35:27 -07:00
FusionPBX 53fe4b87be Update sofia.conf.lua
Activate the sofia profile domain aliases.
2017-01-28 14:50:06 -07:00
FusionPBX 6b37fe25aa Update
Add voicemail/vm-no_answer_no_vm.wav
2017-01-27 13:24:10 -07:00
FusionPBX 27d383b367 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 7f45fef615 Update sofia.conf.lua 2017-01-18 08:55:29 -07:00
Alexey Melnichuk ff67706848 Fix. Russia has 11 digits (close #2303) (#2304) 2017-01-17 10:14:49 -07:00
Chris Black 231c45dffb 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 37161f6fc4 Update sofia.conf.lua
Fix the year.
2017-01-12 04:26:32 -07:00
FusionPBX 4e2b96b29f Update sofia.conf.lua
Fix domain alias show with sofia status.
2017-01-12 04:18:58 -07:00
FusionPBX 761a9f51f2 Update ivr.conf.lua 2016-12-29 13:35:55 -07:00
jebsolutions b0bde877d1 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 a435f8973a 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 167bacf9df Update route_to_bridge.lua 2016-12-23 02:16:22 -07:00
FusionPBX fe31c4b633 Update route_to_bridge.lua 2016-12-23 01:52:19 -07:00
FusionPBX 0bb9de3463 Update dialplan.lua
Add hostname to dialplan xml handler.
2016-12-23 01:28:47 -07:00
FusionPBX 52ba8cf2e3 Update 2016-12-22 14:38:12 -07:00
FusionPBX 3f2c9a7e08 Update check_password.lua 2016-12-22 14:34:38 -07:00
Alexey Melnichuk 5523e6f630 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 4ae4d63524 Update ivr.conf.lua
Fix the memcache expire on the ivr menu.
2016-12-14 08:45:56 -07:00
Alexey Melnichuk 4648f97c17 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 bb073930bc Fix. logs sql only if debug flag set. (#2243) 2016-12-09 00:42:20 -07:00
FusionPBX 9eb6ea6472 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 bd9dc60090 Rewrite speed_dial Lua script. (#2239) 2016-12-08 10:23:38 -07:00
FusionPBX d86ea6b0de Create index.lua 2016-12-08 03:03:58 -07:00
Alexey Melnichuk c0c6883fbc Fix. Group intercept with not empty group name (#2232) 2016-12-07 23:47:37 -07:00
Alexey Melnichuk b112220534 Remove unused database connection. (#2235) 2016-12-06 09:52:51 -07:00
Alexey Melnichuk 3e1151cf31 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 9b6e1e8df3 Fix. group_call pass params to query (#2227) 2016-12-02 17:29:42 -07:00
FusionPBX b6281a84c4 Update fax_retry.lua 2016-12-02 00:52:10 -07:00
FusionPBX 96708bdeea Update fax_retry.lua
Prevent a nill error for email_address.
2016-12-01 23:57:17 -07:00
FusionPBX c029516f07 Update fax_retry.lua 2016-12-01 23:47:32 -07:00
Chris Black 1431a8a3fb 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 d6465b5c05 Update forward_add_intro.lua
Add missing ) which was breaking the syntax.
2016-11-28 08:43:47 -07:00
Alexey Melnichuk 2aebf9e8b8 Fix. Build correct SQL in vm/menu_messages.lua (close #2189) (#2195) 2016-11-25 23:03:19 -07:00
Alexey Melnichuk 4856044e80 Fix. Close database object in vm/forward_to_extension.lua (#2196) 2016-11-25 23:01:43 -07:00
Alexey Melnichuk 1056b84ed3 Fix. Store message_intro_base64 in database. (#2197) 2016-11-25 23:01:18 -07:00
Alexey Melnichuk 80a1e5b710 Add. ${user_exists} value to check condition when build CF dialstring (#2183) 2016-11-24 10:07:55 -07:00
Alexey Melnichuk d892521404 Fix some minor typos related with new Database class. (#2174) 2016-11-24 10:04:42 -07:00
Alexey Melnichuk b8fc499360 Add. Use params in provision/index.lua (#2173) 2016-11-24 10:01:06 -07:00
Alexey Melnichuk c26bc296ec Add. call_flow_monitor.lua uses Database class. (#2172) 2016-11-24 09:57:18 -07:00
Alexey Melnichuk b1cd199f3f Add. Use params in disa.*.lua (#2171) 2016-11-24 09:56:09 -07:00
Alexey Melnichuk 5fe0308ef2 Fix. Find call_group with NULL in intercept.lua (#2169) 2016-11-24 03:04:52 -07:00
Alexey Melnichuk 9d764b7d5c Fix. Add missing file for #1629 (#2077) 2016-11-24 00:41:43 -07:00
Chris Black d084fe3fcc Couple firmware URL fixes (#2106)
* Couple firmware URL fixes

* Add handset OTA upgrade to W52p

* Remove profanity from returned results.
2016-11-23 23:21:35 -07:00
Alexey Melnichuk a7c972ba2d Fix. Create dbh object in fax_retry.lua (#2168) 2016-11-23 23:14:58 -07:00