diff options
author | Peter Kozak <spag@golwen.net> | 2013-02-23 12:34:45 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-02-23 12:34:45 -0500 |
commit | 757fbb9de88c1b6d8ec1eff6519bd057c74892a5 (patch) | |
tree | a735d4bf02fdc70929523412c76a57ef4804e888 /misc/freeswitch/scripts/dialplan/dialplan.lua | |
parent | dfce431ca5c07aa53ce55eb0cdb5ecaff2cfc58a (diff) |
method streamlined
Diffstat (limited to 'misc/freeswitch/scripts/dialplan/dialplan.lua')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/dialplan.lua | 2 |
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]); |