[asterisk-bugs] [JIRA] (ASTERISK-29188) null media causing the Asterisk crash
sungtae kim (JIRA)
noreply at issues.asterisk.org
Mon Nov 30 19:24:16 CST 2020
sungtae kim created ASTERISK-29188:
--------------------------------------
Summary: null media causing the Asterisk crash
Key: ASTERISK-29188
URL: https://issues.asterisk.org/jira/browse/ASTERISK-29188
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Resources/res_ari_channels
Affects Versions: 18.1.0
Reporter: sungtae kim
Severity: Minor
Sending a /channel/{channel_id}/play request with 'media: null' causing the Asterisk crash.
{noformat}
curl --location --request POST '127.0.0.1:8088/ari/channels/test_channel/play' \
--header 'Authorization: Basic YXN0ZXJptestYXN0ZXJpc2s=' \
--header 'Content-Type: application/json' \
--data-raw '{
"playbackId": "instance-asterisk-production-europe-west4-a-0-1598390087.34227",
"media": null
}'
{noformat}
{noformat}
#0 0x00007fd0f1cb4181 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007fd0ed354efb in stasis_app_control_play_uri (control=0x7fd0d40038b0, media=0x555c4d484280, media_count=1, language=0x555c4d47a0cc "en",
target_id=0x555c4d4761da "c55af561-3e5e-47b3-9916-276948766da9", target_type=STASIS_PLAYBACK_TARGET_CHANNEL, skipms=0, offsetms=0,
id=0x555c4d2de0d0 "a58b7881-37de-4baa-a7a0-a20e11271db0") at res_stasis_playback.c:492
#2 0x00007fd0ed170b86 in ari_channels_handle_play (args_channel_id=0x555c4d4761da "c55af561-3e5e-47b3-9916-276948766da9", args_media=0x555c4d484280, args_media_count=1,
args_lang=0x0, args_offsetms=0, args_skipms=0, args_playback_id=0x555c4d2de0d0 "a58b7881-37de-4baa-a7a0-a20e11271db0", response=0x7fd0cd42ab20) at ari/resource_channels.c:689
#3 0x00007fd0ed170e20 in ast_ari_channels_play (headers=0x555c4d474a20, args=0x7fd0cd42a8e0, response=0x7fd0cd42ab20) at ari/resource_channels.c:722
#4 0x00007fd0ed16d217 in ast_ari_channels_play_cb (ser=0x7fd0d80115f0, get_params=0x0, path_vars=0x555c4d476160, headers=0x555c4d474a20, body=0x555c4d47bd60, response=0x7fd0cd42ab20)
at res_ari_channels.c:1941
#5 0x00007fd0ed27d1ff in ast_ari_invoke (ser=0x7fd0d80115f0, uri=0x7fd0cd42acaa "channels/c55af561-3e5e-47b3-9916-276948766da9/play", method=AST_HTTP_POST, get_params=0x0,
headers=0x555c4d474a20, body=0x555c4d47bd60, response=0x7fd0cd42ab20) at res_ari.c:587
#6 0x00007fd0ed27e7e3 in ast_ari_callback (ser=0x7fd0d80115f0, urih=0x7fd0ed28a3e0 <http_uri>, uri=0x7fd0cd42acaa "channels/c55af561-3e5e-47b3-9916-276948766da9/play",
method=AST_HTTP_POST, get_params=0x0, headers=0x555c4d474a20) at res_ari.c:1058
#7 0x0000555c4a7d69ab in handle_uri (ser=0x7fd0d80115f0, uri=0x7fd0cd42acaa "channels/c55af561-3e5e-47b3-9916-276948766da9/play", method=AST_HTTP_POST, headers=0x555c4d474a20)
at http.c:1487
#8 0x0000555c4a7d79ab in httpd_process_request (ser=0x7fd0d80115f0) at http.c:1928
#9 0x0000555c4a7d7cc1 in httpd_helper_thread (data=0x7fd0d80115f0) at http.c:1991
#10 0x0000555c4a77c2f4 in handle_tcptls_connection (data=0x7fd0d80115f0) at tcptls.c:274
#11 0x0000555c4a78e170 in dummy_start (data=0x7fd0d8003510) at utils.c:1299
#12 0x00007fd0f21bdfa3 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#13 0x00007fd0f1c514cf in clone () from /lib/x86_64-linux-gnu/libc.so.6
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list