summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/dialplan
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-18 14:19:01 +0100
committerspag <spag@golwen.net>2013-01-18 14:19:01 +0100
commitbaafa28ebe7046a987083f853cfe5a1a55b7adb3 (patch)
tree2cde7328dbed7925009f6f94f31370d98c93ef5e /misc/freeswitch/scripts/dialplan
parentb5b1a19dd00eb8455ea21072bdd8249c82172619 (diff)
dialed_sip_user and dialed_domain added
Diffstat (limited to 'misc/freeswitch/scripts/dialplan')
-rw-r--r--misc/freeswitch/scripts/dialplan/session.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/dialplan/session.lua b/misc/freeswitch/scripts/dialplan/session.lua
index 20fef88..dc53f7a 100644
--- a/misc/freeswitch/scripts/dialplan/session.lua
+++ b/misc/freeswitch/scripts/dialplan/session.lua
@@ -43,6 +43,9 @@ function Session.init_channel_variables(self)
self.from_gateway = true;
end
+ self.dialed_sip_user = self.caller:to_s('dialed_user');
+ self.dialed_domain = self.caller:to_s('dialed_domain');
+
self.account_uuid = self:to_s('gs_account_uuid');
self.account_type = self:to_s('gs_account_type');
self.sip_contact_host = self:to_s('sip_contact_host');