Added action Reload

develop
Sp1tF1r3 2014-09-17 16:39:01 -04:00
parent 630fc7b102
commit 10d897a5dd
1 changed files with 9 additions and 1 deletions

View File

@ -613,7 +613,7 @@ class Manager(object):
def playdtmf(self, channel, digit):
"""Plays a dtmf digit on the specified channel"""
cdict = {'Action': 'PlayDTMF'}
cdict['Channel'] = channel
cdict['Digit'] = digit
@ -647,6 +647,14 @@ class Manager(object):
response = self.send_action(cdict)
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):
pass