From d5149c99a9470f075e1b64b6be11d2cffa248a08 Mon Sep 17 00:00:00 2001 From: Ilya Gorskin Date: Fri, 13 Jan 2017 19:10:24 +0500 Subject: [PATCH] Update Manager.py added EarlyMedia to originate --- asterisk/manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/asterisk/manager.py b/asterisk/manager.py index d3bbb33..ad1758c 100644 --- a/asterisk/manager.py +++ b/asterisk/manager.py @@ -575,7 +575,7 @@ class Manager(object): return response - def originate(self, channel, exten, context='', priority='', timeout='', caller_id='', async=False, account='', variables={}): + def originate(self, channel, exten, context='', priority='', timeout='', caller_id='', async=False, earlymedia='false', account='', variables={}): """Originate a call""" cdict = {'Action': 'Originate'} @@ -591,6 +591,8 @@ class Manager(object): cdict['CallerID'] = caller_id if async: cdict['Async'] = 'yes' + if earlymedia: + cdict['EarlyMedia'] = earlymedia if account: cdict['Account'] = account # join dict of vairables together in a string in the form of 'key=val|key=val'