Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problema ao tentar dar um Playback em um arquivo #41

Open
TheMasterRoot opened this issue Aug 14, 2020 · 1 comment
Open

Problema ao tentar dar um Playback em um arquivo #41

TheMasterRoot opened this issue Aug 14, 2020 · 1 comment

Comments

@TheMasterRoot
Copy link

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 ?

@spearo
Copy link

spearo commented Oct 1, 2020

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants