python 3.7 support - 'async' is a reserved keyword in python 3.7
Hello,
Into your originate function, you used async keyword parameter which is used into data variable.
For that case I think _aysnc would be appropriate.
Actual Result :
ERROR! Unexpected Exception, this is probably a bug: invalid syntax
How to resolve :
def Originate(self, channel, context=None, extension=None, priority=None, application=None, data=None, timeout=None, caller_id=None, variable=None, account=None, async=None, early_media=None, codecs=None, channel_id=None, other_channel_id=None)
To
def Originate(self, channel, context=None, extension=None, priority=None, application=None, data=None, timeout=None, caller_id=None, variable=None, account=None, _async=None, early_media=None, codecs=None, channel_id=None, other_channel_id=None)
Do not forget to modify var 'data' :)
Fixed by Mikhail Yuldashev.