summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/dialplan/dialplan.lua
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-23 12:34:45 -0500
committerPeter Kozak <spag@golwen.net>2013-02-23 12:34:45 -0500
commit757fbb9de88c1b6d8ec1eff6519bd057c74892a5 (patch)
treea735d4bf02fdc70929523412c76a57ef4804e888 /misc/freeswitch/scripts/dialplan/dialplan.lua
parentdfce431ca5c07aa53ce55eb0cdb5ecaff2cfc58a (diff)
method streamlined
Diffstat (limited to 'misc/freeswitch/scripts/dialplan/dialplan.lua')
-rw-r--r--misc/freeswitch/scripts/dialplan/dialplan.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/dialplan/dialplan.lua b/misc/freeswitch/scripts/dialplan/dialplan.lua
index 93a952d..7945516 100644
--- a/misc/freeswitch/scripts/dialplan/dialplan.lua
+++ b/misc/freeswitch/scripts/dialplan/dialplan.lua
@@ -390,7 +390,7 @@ function Dialplan.dial(self, destination)
table.insert(destination.pickup_groups, 's' .. destination.account.id );
end
require 'common.group';
- local group_names, group_ids = common.group.Group:new{ log = self.log, database = self.database }:name_id_by_member_permissions(destination.id, destination.type, {'pickup'}, true)
+ local group_names, group_ids = common.group.Group:new{ log = self.log, database = self.database }:name_id_by_permission(destination.id, destination.type, 'pickup')
self.log:debug('DESTINATION_GROUPS - pickup_groups: ', table.concat(group_names, ','));
for index=1, #group_ids do
table.insert(destination.pickup_groups, 'g' .. group_ids[index]);