summaryrefslogtreecommitdiff
path: root/misc/freeswitch
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-12 04:18:21 -0400
committerPeter Kozak <spag@golwen.net>2013-03-12 04:18:21 -0400
commitfa7d8880c101118412b15161b774d21fa230f592 (patch)
tree37160a48886ca5ddae3a0957694e466d61036f1a /misc/freeswitch
parent5fab8121339d34933cdb1e17edc1d0ed2c404767 (diff)
playback method added
Diffstat (limited to 'misc/freeswitch')
-rw-r--r--misc/freeswitch/scripts/dialplan/session.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/dialplan/session.lua b/misc/freeswitch/scripts/dialplan/session.lua
index 7de85ca..04d7675 100644
--- a/misc/freeswitch/scripts/dialplan/session.lua
+++ b/misc/freeswitch/scripts/dialplan/session.lua
@@ -226,3 +226,8 @@ function Session.expand_variables(self, line)
return self.session:getVariable(captured) or '';
end))
end
+
+
+function Session.playback(self, file)
+ self.session:streamFile(file);
+end