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

Play rest method not working (500 - Internal Server Error) #34

Closed
mattwilliamson opened this issue Aug 17, 2011 · 6 comments
Closed

Play rest method not working (500 - Internal Server Error) #34

mattwilliamson opened this issue Aug 17, 2011 · 6 comments
Assignees

Comments

@mattwilliamson
Copy link
Contributor

After I initiate a call (I've tried with a dial verb and with a pause verb) I try to call the REST method to play a sound as follows:

curl http://dragoon:8088/v0.1/Play/ -d "CallUUID=d2f3b5aa-c91e-11e0-a8e3-00112f379114&Legs=both&Sounds=http://dl.dropbox.com/u/14573179/Audio/Freeswitch/sounds/en/us/callie/ivr/mp3/ivr-you_are_number_one.wav.mp3" -u "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"

In the REST API logs I see

2011-08-17 18:19:26,796 plivo-rest[589]: INFO: 192.168.1.77 - - [2011-08-17 18:19:26] "POST /v0.1/Play/ HTTP/1.1" 500 21 "-" "curl/7.21.6 (x86_64-apple-darwin10.7.0) libcurl/7.21.6 OpenSSL/1.0.0d zlib/1.2.5 libidn/1.20"

and nothing more.

@mike-plivo
Copy link
Member

ok fixed in last commit :)

Important : I notice you're using Legs=both . If call is not bridged to another call, when using Legs=both or Legs=bleg, play won't work. If call is not bridged, you must only use Legs=aleg.
I will update the doc on www.plivo.org

@ghost ghost assigned mike-plivo Aug 18, 2011
@mattwilliamson
Copy link
Contributor Author

It working! Thanks for your help troubleshooting.

@mattwilliamson
Copy link
Contributor Author

This is happening again.

@mike-plivo
Copy link
Member

ok I will update new code tomorrow and will test it.

@mike-plivo
Copy link
Member

ok now you can try last revision :)

@mattwilliamson
Copy link
Contributor Author

Working again. Danke!

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

No branches or pull requests

2 participants