diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-12 07:31:26 -0400 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-12 07:31:26 -0400 |
commit | 3a3f725111d1740b974596ba52ec02c87424fefc (patch) | |
tree | 37cd33afe090a04dd93a54af05c440db520e7e91 /misc/freeswitch/scripts/dialplan | |
parent | e8e513c9e980a6444fb3ba468a763926100b16ca (diff) |
save uuid to destination record
Diffstat (limited to 'misc/freeswitch/scripts/dialplan')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/dialplan.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/misc/freeswitch/scripts/dialplan/dialplan.lua b/misc/freeswitch/scripts/dialplan/dialplan.lua index 59c75aa..e887610 100644 --- a/misc/freeswitch/scripts/dialplan/dialplan.lua +++ b/misc/freeswitch/scripts/dialplan/dialplan.lua @@ -303,6 +303,7 @@ function Dialplan.dial(self, destination) destination.account = self:object_find{class = destination.type, id = destination.id}; if destination.account then + destination.uuid = destination.account.uuid; if destination.account.class == 'sipaccount' then destination.callee_id_name = destination.account.record.caller_name; self.caller:set_callee_id(destination.number, destination.account.record.caller_name); @@ -313,10 +314,7 @@ function Dialplan.dial(self, destination) 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]); - end - self.caller:set_variable('gs_destination_type', destination.account.class); - self.caller:set_variable('gs_destination_id', destination.account.id); - self.caller:set_variable('gs_destination_uuid', destination.account.uuid); + end end if destination.account and destination.account.owner then @@ -909,6 +907,7 @@ function Dialplan.run(self, destination) self.caller:set_variable('gs_destination_uuid', destination.uuid); self.caller:set_variable('gs_destination_number', destination.number); self.caller:set_variable('gs_destination_node_local', destination.node_local); + self.caller:set_variable('gs_destination_node_id, ', destination.node_id); result = self:switch(destination); result = result or { continue = false, code = 502, cause = 'DESTINATION_OUT_OF_ORDER', phrase = 'Destination out of order' } |