python-ami icon indicating copy to clipboard operation
python-ami copied to clipboard

Problema ao tentar dar um Playback em um arquivo

Open TheMasterRoot opened this issue 5 years ago • 1 comments

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 ?

TheMasterRoot avatar Aug 14 '20 19:08 TheMasterRoot

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'

spearo avatar Oct 01 '20 12:10 spearo