python-ami
python-ami copied to clipboard
Problema ao tentar dar um Playback em um arquivo
Boa tarde. estou tentando dar um playback em uma extensão que esta ativa. mas ele so retorna None
action = SimpleAction(
'Originate',
Channel='SIP/12-0000002c',
Exten='12',
Application='Playback',
Data='/home/asterisk/apiinter/ativa.wav'
)
future = client.send_action(action)
response = future.response
print(response)
pode me ajudar ?
I believe the Playback function will only output .sln (example .gsm audio type).
Also remove the file extension and have it like:
Data='/home/asterisk/apiinter/ativa'