From 10d897a5dd170646229fbea1930786a754a6388c Mon Sep 17 00:00:00 2001 From: Sp1tF1r3 Date: Wed, 17 Sep 2014 16:39:01 -0400 Subject: [PATCH] Added action Reload --- asterisk/manager.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/asterisk/manager.py b/asterisk/manager.py index 3231a3d..2546931 100644 --- a/asterisk/manager.py +++ b/asterisk/manager.py @@ -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