mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
stasis-http: Provide a response body for 201 created responses
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -266,7 +266,7 @@ struct stasis_app_playback *stasis_app_control_play_uri(
|
||||
stasis_app_control_get_channel_id(control), uri);
|
||||
|
||||
playback = ao2_alloc(sizeof(*playback), playback_dtor);
|
||||
if (!playback || ast_string_field_init(playback, 128) ){
|
||||
if (!playback || ast_string_field_init(playback, 128)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -330,7 +330,6 @@ struct ast_json *stasis_app_playback_to_json(
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
json = ast_json_pack("{s: s, s: s, s: s, s: s}",
|
||||
"id", playback->id,
|
||||
"media_uri", playback->media,
|
||||
|
Reference in New Issue
Block a user