Commit Graph

153 Commits

Author SHA1 Message Date
FusionPBX ebeabc958b
Update index.lua 2019-02-20 09:57:37 -07:00
FusionPBX 43542213bd
Update index.lua 2019-02-20 08:34:18 -07:00
FusionPBX 216ac099e3
Update index.lua 2019-02-12 18:22:35 -07:00
FusionPBX 156cc06dc5
Update index.lua 2019-02-02 18:00:59 -07:00
konradSC a90fc77176 Ring Groups with Follow-Me (#3970)
Two things:

1. Follow-me should only kick in when using "Enterprise". As it was written, follow-me was looked at for every strategy. 

2. Follow-me destinations were writing to 'destinations[x]'. They should write to 'destinations[key]' so they rewrite the current destination that is being analyzed.
2019-01-22 11:03:28 -07:00
FusionPBX a013c5fc05
Update index.lua 2019-01-03 17:20:33 -07:00
FusionPBX 21c0c3492e
Update index.lua 2018-12-23 12:07:24 -07:00
borisk1976 2771fe837a Update index.lua (#3953)
When bridge application ends with "originate_disposition: ALLOTTED_TIMEOUT" for example, the "missed call" feature doesn't work for ring group because of hangup hook isn't called. Should we just avoid using this channel variable or add additional processing at the end? Like for timeout action? I choose to call "missed" at the end of script. But may be we should add it to other places too?
2018-12-23 12:06:40 -07:00
FusionPBX 4bd0295b67
Update index.lua 2018-10-30 21:44:31 -06:00
FusionPBX dabcef8992
Update index.lua 2018-10-05 13:42:49 -06:00
FusionPBX 254e2448a2
Update index.lua 2018-08-26 11:30:47 -06:00
FusionPBX c04e2bfe68
Update index.lua 2018-08-01 22:44:03 -06:00
FusionPBX 4efcb6d84f
Update index.lua 2018-06-06 23:08:34 -06:00
FusionPBX db3a4fb5f3
Update index.lua 2018-06-06 21:10:23 -06:00
FusionPBX 08850a4323
Update index.lua 2018-05-09 09:57:47 -06:00
konradSC ff23a9c69c Bug Fix: Wrong Variable Type (#3050)
The variable "external" is set as a String not as a Boolean. Changed the If statement to reflect.
2018-05-09 09:54:41 -06:00
FusionPBX 9b7d4e4f80
Update index.lua 2018-05-07 19:59:41 -06:00
FusionPBX 8f25154950
Update index.lua 2018-05-06 13:10:08 -06:00
FusionPBX c4a0d01f40
Update index.lua 2018-04-25 21:19:31 -06:00
FusionPBX 830dd27022
Update index.lua 2018-04-05 20:02:24 -06:00
FusionPBX 969502f70e
Update index.lua 2018-03-24 15:45:11 -06:00
FusionPBX 7d002c9f2e
Update index.lua 2018-03-16 00:44:11 -06:00
FusionPBX 6704dbeea2
Ring Groups route_to_bridge was fixed re-add it to the code. 2018-02-11 10:22:25 -07:00
FusionPBX 13575adba3
Update index.lua 2018-02-10 15:48:18 -07:00
markjcrane b32cbd537c Remove the code changes that used route to bridge code as it broke calling multiple external destinations for Ring Groups. 2018-02-08 11:33:08 -07:00
FusionPBX 704494c381
Update index.lua 2018-01-22 10:46:06 -07:00
FusionPBX debb46c221
Update index.lua 2018-01-22 10:45:48 -07:00
FusionPBX c1c8c5d453
Update index.lua 2018-01-22 10:32:25 -07:00
konradSC 722021bdd7 Fix for Ring Groups with cfwd always & toll_allow (#2952)
This scenario was broken: 
A ring group member forwards their phone to a destination. The destination is an external number and the outbound route had a toll_allow condition. 

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

This PR will get the toll_allow values from the RG member that is forwarding their phone. Then it will pass it to  'route_to_bridge.lua'.
2018-01-09 15:08:28 -07:00
konradSC 4bcbc7edee Ring Group Member - Call Forward (#2951)
After checking for Call Forward loops, set the destination_number to the call forward target.
2018-01-08 12:14:08 -07:00
Alexey Melnichuk 07a49f37bd Add. Support variables in ring groups when use dierect dial (#2924)
Add. Support variables in ring groups when use direct dial
2017-11-29 00:20:45 -07:00
Alexey Melnichuk b0422af3e2 Add. Use `route_to_bridge` module to build routes for ring groups. (#2907)
* Add. Use `route_to_bridge` module to build routes fro ring groups.

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

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

* Fix. Short variable names

* Add. some comments

* Fix. Do not try execute empty string

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

* Fix. Export nolocal values.
2017-11-17 07:15:47 -07:00
FusionPBX 89fccdde93
Update index.lua 2017-11-04 12:37:58 -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
FusionPBX 5c80259cd9 Update index.lua 2017-10-07 23:14:22 -06:00
FusionPBX 6e4eb3f73f Set cal 2017-10-04 23:11:42 -06:00
FusionPBX 4c2ead3a0b Update index.lua 2017-09-28 16:51:53 -06:00
FusionPBX 7ab304399c Update index.lua 2017-09-12 14:32:13 -05: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
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 0c043f915c Update index.lua 2017-08-14 12:40:42 -06:00
FusionPBX f19c4fe3fa Update index.lua 2017-07-29 23:06: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 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