commit
6bd0cc9bd6
|
@ -613,7 +613,7 @@ class Manager(object):
|
||||||
|
|
||||||
def playdtmf(self, channel, digit):
|
def playdtmf(self, channel, digit):
|
||||||
"""Plays a dtmf digit on the specified channel"""
|
"""Plays a dtmf digit on the specified channel"""
|
||||||
|
|
||||||
cdict = {'Action': 'PlayDTMF'}
|
cdict = {'Action': 'PlayDTMF'}
|
||||||
cdict['Channel'] = channel
|
cdict['Channel'] = channel
|
||||||
cdict['Digit'] = digit
|
cdict['Digit'] = digit
|
||||||
|
@ -647,6 +647,14 @@ class Manager(object):
|
||||||
response = self.send_action(cdict)
|
response = self.send_action(cdict)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
def reload(self, module):
|
||||||
|
""" Reloads config for a given module """
|
||||||
|
|
||||||
|
cdict = {'Action': 'Reload'}
|
||||||
|
cdict['Module'] = module
|
||||||
|
response = self.send_action(cdict)
|
||||||
|
return response
|
||||||
|
|
||||||
|
|
||||||
class ManagerException(Exception):
|
class ManagerException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue