Skip to content

Commit

Permalink
Merge pull request jfernandz#42 from alejandrozf/issue-41
Browse files Browse the repository at this point in the history
- Adds 'application' & 'data' parameters to Manager.originate method
  • Loading branch information
c1cc10 authored Jun 7, 2019
2 parents bd61a40 + 06b4b7a commit 343f649
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion asterisk/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def redirect(self, channel, exten, priority='1', extra_channel='', context=''):

return response

def originate(self, channel, exten, context='', priority='', timeout='', caller_id='', async=False, earlymedia='false', account='', variables={}):
def originate(self, channel, exten, context='', priority='', timeout='', application='', data='', caller_id='', async=False, earlymedia='false', account='', variables={}):
"""Originate a call"""

cdict = {'Action': 'Originate'}
Expand All @@ -587,6 +587,10 @@ def originate(self, channel, exten, context='', priority='', timeout='', caller_
cdict['Priority'] = priority
if timeout:
cdict['Timeout'] = timeout
if application:
cdict['Application'] = application
if data:
cdict['Data'] = data
if caller_id:
cdict['CallerID'] = caller_id
if async:
Expand Down

0 comments on commit 343f649

Please sign in to comment.