mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
res_ari: Correct Location headers returned by some ARI resources
The Location headers returned by: * /bridges/{bridgeId}/play * /bridges/{bridgeId}/record * /channels/{channelId}/play * /channels/{channelId}/record Did not have the '/ari' prefix, and in the case of the 'play' resources, were using 'playback' instead of 'playbacks.' Change-Id: I957c58a3a1471bf477dae7c67faa1b74fcd9241c
This commit is contained in:
@@ -381,7 +381,7 @@ static int ari_bridges_play_helper(const char *args_media,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ast_asprintf(playback_url, "/playback/%s",
|
||||
if (ast_asprintf(playback_url, "/playbacks/%s",
|
||||
stasis_app_playback_get_id(playback)) == -1) {
|
||||
playback_url = NULL;
|
||||
ast_ari_response_alloc_failed(response);
|
||||
|
Reference in New Issue
Block a user