Commit Graph

186 Commits

Author SHA1 Message Date
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
FusionPBX 4b1cd6d7eb Update index.lua 2017-11-04 12:37:58 -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
FusionPBX d9a29afb51 Update index.lua 2017-10-07 23:14:22 -06:00
FusionPBX 7f52f5a8a4 Set cal 2017-10-04 23:11:42 -06:00
FusionPBX ef85a2c3b3 Update index.lua 2017-09-28 16:51:53 -06:00
FusionPBX 7a0a7d7b80 Update index.lua 2017-09-12 14:32:13 -05: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
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 5b69862bcc Update index.lua 2017-08-14 12:40:42 -06:00
FusionPBX 5a142bef69 Update index.lua 2017-07-29 23:06: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 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
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
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
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
Alexey Melnichuk 90dc900933 Fix. logs sql only if debug flag set. (#2243) 2016-12-09 00:42:20 -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 28b04d9200 Add. Use params in ring_groups/destination.lua (#2163) 2016-11-23 03:50:22 -07:00
Alexey Melnichuk e25f990ce1 Add. Use params in ring_groups/index.lua (#2146) 2016-11-22 11:09:25 -07:00
Alexey Melnichuk 4176144da4 Add. attr_xfer analog based on conference. (#1629)
* Add. attr_xfer analog based on conference.

Control DTMF sequence
 `*0` transfer `self` to `enter number` state and `peer` leg to conference room
 `##` transfer `self` to `enter number` state and hangup `peer` leg
 `*#` transfer `self` to conference room and hangup `peer` leg

* Remove spaces.

* Add. Commented action to ring group.
2016-08-30 01:10:08 -06:00
markjcrane b72f36f1c3 Update bind_target for ring groups default to peer if sip_authorized = true then set to both. 2016-08-20 23:59:10 -06:00
FusionPBX 3e4abb8121 Update index.lua 2016-08-20 20:31:04 -06:00
FusionPBX 975bf3084e Update index.lua 2016-08-05 08:42:51 -06:00
FusionPBX 983680491b Update index.lua
Set regex_match = false; before the loop.
2016-08-03 00:23:58 -06:00
FusionPBX ee0df44e0d Merge pull request #1461 from mafoo/BugFix-ring_groups
corrected function definition
2016-03-11 13:25:20 -07:00
mafoo 0eb7d5ddac WhitespaceClean-resources/install/scripts
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 13:21:52 +00:00
markjcrane 7b5d8f08c5 Add missing call_direction for ring group destinations. 2016-03-10 18:10:49 -07:00
mafoo 8ceec465ac corrected function definition
fixed bug introduced on 2/1/2016 in destination.lua
fixed bug introduced on 2/1/2016 in ring_member.lua
2016-03-09 17:54:44 +00:00
markjcrane cb8aaac1f7 Add ring_member.lua to app/ring_groups/resources/scripts/ring_member.lua. 2016-02-29 18:52:04 -07:00
mafoo b655a064fd Converted uses of ringback to common function 2016-01-28 15:51:50 +00:00
markjcrane 72c1e23d56 Update destination.lua some preparation to extend it further. 2016-01-04 12:56:50 -07:00
Alexey Melnichuk bc9ffa431f Fix. Definition of `uuid` function in destination.lua. 2016-01-04 09:56:06 +03:00
markjcrane e83b727b7b Rename ring_member.lua to destination.lua. 2016-01-02 16:38:59 -07:00
markjcrane 2c4101e8d0 Move ring_member.lua to ring_groups/resources/scripts/ring_member.lua. 2016-01-02 13:21:34 -07:00
markjcrane faad283331 Clear the dial_string variable so that it to prevent duplicate destinations. 2015-11-22 19:07:56 -07:00
markjcrane 00eee7aca3 Fix a problem where the ring group is only calling one external number when there are multiple to call. 2015-11-09 18:42:29 -07:00
Alexey Melnichuk c7197c1ccf Fix. Use `api show channels like` did not work on fusion with BDR. 2015-10-20 15:15:42 +03:00
koldoa f234e765b1 This should do a better job detection active calls per extension in the ring group with skip_active 2015-10-14 12:00:09 +02:00
Alexey Melnichuk 5cb4e7b9b9 Fix. use timeout handler in Enterprise ring group
see e5a0134ec6 (commitcomment-13601198)
2015-10-06 11:05:15 +04:00
markjcrane b374e5bdc5 Fix the ring group missed call email body. 2015-09-27 00:52:47 -06:00
Alexey Melnichuk 279f194b39 Fix. Intercept enterprise ring group.
With enterprise call each outbound channel has its own call_uuid.
But we have to use `intercept` for call_uuid of inbound channel.
2015-09-22 19:33:41 +04:00
markjcrane bd1551a369 Add multi-lingual support to the missed call emails. 2015-09-15 08:49:37 -06:00
koldoa c52fd6c013 This should add better compatibility for more database backends 2015-09-07 12:51:12 +02:00
koldoa a737d217b6 Better code for ring groups 2015-09-07 11:48:10 +02:00
koldoa 5eeb5081e9 Detection of SQL backend for random functions 2015-09-07 08:33:34 +02:00
koldoa 7a65bf2148 Random strategy for ring groups 2015-09-07 08:33:34 +02:00
Alexey Melnichuk 73cb5b02f1 Fix. Start recording only after call start and only for certain extension.
Fix. Always use record dir with domain name like it does `user_record` extension.
2015-08-31 15:47:06 +04:00
Alexey Melnichuk 911fd65aa1 Revert. Both legs can control of call. 2015-08-19 10:06:22 +04:00
Alexey Melnichuk 6d7271c793 Fix. Concatenate record extension 2015-08-18 15:49:56 +04:00
Alexey Melnichuk ae341a6aba Change. Use bind_bind_digit instead of bind_meta_app.
Change. Allow transfer and turn on recordings only for authorized users.
Fix. Use record_ext in recording in ring_group.

This allow configure other dtmf sequence like `*#` and `##`
2015-08-18 15:38:41 +04:00
markjcrane 10312a912a Update ring group rollover so that it works like standard roll over. If busy it moves to the next line. If not busy and timeout it moves to the timeout action. 2015-08-14 15:27:48 -06:00
FusionPBX 237d6c5d90 Merge pull request #1087 from moteus/revert-1086-revert-1053-require_config
Change. Use `require` function to load Lua libraries
2015-08-11 20:05:48 -06:00
markjcrane 87eb5a0399 Add a break to prevent call the failover bridge statement at the same time the primary bridge statement is called. 2015-08-11 13:42:46 -06:00
Alexey Melnichuk 69717e31d5 Revert "Revert "Change. Use `require "resources.functions.config"` to load co…" 2015-08-11 05:06:33 +03:00
FusionPBX d1f3b05cf6 Revert "Change. Use `require "resources.functions.config"` to load config file." 2015-08-10 11:50:29 -06:00
FusionPBX 8d9430352b Merge pull request #1053 from moteus/require_config
Change. Use `require "resources.functions.config"` to load config file.
2015-08-10 11:31:35 -06:00
markjcrane 51b398f984 Ring group external destinations use the | as the delimiter for fail-over. 2015-08-10 11:21:48 -06:00
Alexey Melnichuk a8142f527a Change. Use only `require` to load function.
Fix. Remove multiple definition of same function.
2015-08-10 12:43:06 +04:00
Alexey Melnichuk 7e481f20b6 Fix. Correct path when user on `group_confirm_file` 2015-07-28 15:59:04 +04:00
Alexey Melnichuk 2234b42c07 Change. Use `require "resources.functions.config"` to load config file.
Change. Move `script_dir` definition into config file.
2015-07-22 13:20:51 +04:00
markjcrane b46d68777a Use originate_delay_start to fix the enterprise ring group delay. 2015-07-03 09:51:02 -06:00
Mark Crane 197420d6c9 Minor adjustments for confirm.lua and ring groups ensure domain_name and domain_uuid are set. 2015-06-24 19:31:53 +00:00
Mark Crane b3f1d8fabb A few more adjustments to get the ring group missed call working. 2015-06-20 04:06:20 +00:00
Mark Crane c2370a4a6d Add missed call option to ring groups. 2015-06-20 03:43:38 +00:00
Mark Crane 3751cc7d58 Add variable for Ring Group Distinctive Ring ${domain_name} and ${local_ip_v4} 2015-06-15 23:26:02 +00:00
Mark Crane 6b8bb6a1d5 Add ring_group_distinctive_ring to the destinations array. 2015-06-07 16:26:53 +00:00
Mark Crane c1b3bccc86 Add a prefix of Alert-Info= 2015-06-07 04:10:41 +00:00
Mark Crane 511f856d94 Add ring group distinctive ring option to the lua. 2015-06-07 04:06:39 +00:00
Mark Crane d6c4267243 Handle Do Not Disturb set on the extension for ring groups. 2015-05-16 23:38:07 +00:00
Mark Crane e6a0740375 Remove the code that is attempts and succeeds to prevent DND extension from affecting the Ring Groups because it also prevents calling external numbers and using bridge statements in the ring group. Will commit a fix soon that does an alternative way of removing extensions that are set to DND in FusionPBX's GUI. 2015-05-15 19:14:18 +00:00
Nate Jones b2dd3ba7ad Ring Groups: DND extensions not included when retrieving Ring Group destinations (real fix for Issue 927, re: r8338). 2015-05-12 05:59:33 +00:00
Mark Crane ea714ebf35 Change the copyright year on the ring groups lua script. 2015-05-05 07:12:44 +00:00
Mark Crane 9080e5eba0 Add domain_uuid to the ring group SQL query. 2015-05-05 07:11:31 +00:00
Mark Crane ab4326c7cf Remove the DND check on the ring groups as it caused the query to return duplicate destination numbers. 2015-05-05 06:35:43 +00:00
Nate Jones d53d574be7 Ring Group: Fixes Issue 927 - Assigned extensions set to DND (via the GUI) will not be included when the Ring Group executes. 2015-04-29 00:29:20 +00:00
Mark Crane 09f7868e36 Fix a missing comma. 2015-03-10 10:41:26 +00:00
Riccardo Granchi 3c43f604c5 Added it-ring definition 2014-11-03 11:16:10 +00:00
Mark Crane f4ae26f6d5 Add ring group cid number prefix to the database and to the ring group lua script 2014-09-06 07:45:17 +00:00
Mark Crane abd8c89f99 Fix ring group enterprise confirm 2014-08-30 18:22:06 +00:00
Mark Crane 497b8190a6 Ring groups remove spaces 2014-08-25 20:40:03 +00:00
Mark Crane d19d2b3215 Fix ring group move the domain check 2014-08-25 20:25:42 +00:00
Mark Crane f8f9cc9cbe Fix ring group skip active issue 2014-08-25 16:07:47 +00:00
Mark Crane a4d53db6e8 Remove the digit-map for polycom to allow it to dial any digits and add a comma in the dialstring for ring groups that was missing 2014-08-23 21:12:06 +00:00
Mark Crane 8d460b1148 Improve group confirm for ring groups 2014-08-14 03:06:00 +00:00
Mark Crane 22673442f3 Fix recordings per extension for ring groups 2014-08-14 01:21:55 +00:00
Mark Crane 63bfbbcf73 Add ring group skip active to the lua script 2014-08-13 10:51:51 +00:00
Mark Crane 36c8fd3990 Fix the spelling 2014-08-12 08:02:09 +00:00
Mark Crane 9d514bd3d1 Very minor changes 2014-08-12 08:00:32 +00:00