- add playdtmf action

git-svn-id: https://pyst.svn.sourceforge.net/svnroot/pyst/pyst/trunk@3 01a3061f-1c3a-49da-a2a0-fa5697faa6a0
develop
ralf 2010-06-17 16:22:48 +00:00
parent 0cfa2e82ef
commit 7f4293d50c
1 changed files with 10 additions and 1 deletions

View File

@ -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"""