overlay
is enabled, target_legs
is limited to self
.overlay=true
unless there is a Play Audio with overlay=false
actively playing.call.playback.started
call.playback.ended
curl --location --request POST '/calls//actions/playback_start' \
--header 'Content-Type: application/json' \
--data-raw '{
"audio_url": "http://www.example.com/sounds/greeting.wav",
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"loop": "infinity",
"overlay": true,
"stop": "current",
"target_legs": "self"
}'
{
"data": {
"result": "ok"
}
}
Authorization: Bearer ********************