- add playdtmf action
git-svn-id: https://pyst.svn.sourceforge.net/svnroot/pyst/pyst/trunk@3 01a3061f-1c3a-49da-a2a0-fa5697faa6a0develop
parent
0cfa2e82ef
commit
7f4293d50c
|
@ -495,7 +495,7 @@ class Manager(object):
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def hangup(self, channel):
|
def hangup(self, channel):
|
||||||
"""Hanup the specfied channel"""
|
"""Hangup the specified channel"""
|
||||||
|
|
||||||
cdict = {'Action':'Hangup'}
|
cdict = {'Action':'Hangup'}
|
||||||
cdict['Channel'] = channel
|
cdict['Channel'] = channel
|
||||||
|
@ -574,6 +574,15 @@ class Manager(object):
|
||||||
|
|
||||||
return response
|
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):
|
def absolute_timeout(self, channel, timeout):
|
||||||
"""Set an absolute timeout on a channel"""
|
"""Set an absolute timeout on a channel"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue