From 7f4293d50c5b38220a0f59c062c7797b588eefd0 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 17 Jun 2010 16:22:48 +0000 Subject: [PATCH] - add playdtmf action git-svn-id: https://pyst.svn.sourceforge.net/svnroot/pyst/pyst/trunk@3 01a3061f-1c3a-49da-a2a0-fa5697faa6a0 --- asterisk/manager.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/asterisk/manager.py b/asterisk/manager.py index b8a869f..2365dfa 100644 --- a/asterisk/manager.py +++ b/asterisk/manager.py @@ -495,7 +495,7 @@ class Manager(object): return response def hangup(self, channel): - """Hanup the specfied channel""" + """Hangup the specified channel""" cdict = {'Action':'Hangup'} cdict['Channel'] = channel @@ -574,6 +574,15 @@ class Manager(object): return response + def playdtmf (self, channel, digit) : + """Plays a dtmf digit on the specified channel""" + cdict = {'Action':'PlayDTMF'} + cdict['Channel'] = channel + cdict['Digit'] = digit + response = self.send_action(cdict) + + return response + def absolute_timeout(self, channel, timeout): """Set an absolute timeout on a channel"""