summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/dialplan/session.lua
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-12 06:54:27 -0400
committerPeter Kozak <spag@golwen.net>2013-03-12 06:54:27 -0400
commit03a81f194a356a9228be357bad1101060af62cb1 (patch)
tree693c86647847a7ecf81dc6124826b80b8560a00c /misc/freeswitch/scripts/dialplan/session.lua
parente7db59fed6e91ef5b6125587541f55235b082dfe (diff)
save last destination
Diffstat (limited to 'misc/freeswitch/scripts/dialplan/session.lua')
-rw-r--r--misc/freeswitch/scripts/dialplan/session.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/dialplan/session.lua b/misc/freeswitch/scripts/dialplan/session.lua
index 04d7675..78be98e 100644
--- a/misc/freeswitch/scripts/dialplan/session.lua
+++ b/misc/freeswitch/scripts/dialplan/session.lua
@@ -58,6 +58,13 @@ function Session.init_channel_variables(self)
self.node_id = self:to_i('sip_h_X-GS_node_id');
self.loop_count = self:to_i('sip_h_X-GS_loop_count');
+ self.previous_destination_type = self:to_s('gs_destination_type');
+ self.previous_destination_id = self:to_i('gs_destination_id');
+ self.previous_destination_uuid = self:to_s('gs_destination_uuid');
+ self.previous_destination_owner_type = self:to_s('gs_destination_owner_type');
+ self.previous_destination_owner_id = self:to_i('gs_destination_owner_id');
+ self.previous_destination_owner_uuid = self:to_s('gs_destination_owner_uuid');
+
if self.node_id > 0 and self.node_id ~= self.local_node_id then
self.from_node = true;
else