summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r--misc/freeswitch/scripts/dialplan/session.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/dialplan/session.lua b/misc/freeswitch/scripts/dialplan/session.lua
index 78be98e..9c43e74 100644
--- a/misc/freeswitch/scripts/dialplan/session.lua
+++ b/misc/freeswitch/scripts/dialplan/session.lua
@@ -173,6 +173,12 @@ function Session.answer(self)
return self.session:answer();
end
+-- Is answered?
+function Session.answered(self)
+ return self.session:answered();
+end
+
+
function Session.intercept(self, uid)
self.session:execute("intercept", uid);
end