chan_websocket: Fix crash on DTMF_END event.

Resolves: #1604
releases/20
Sean Bright 3 months ago committed by Asterisk Development Team
parent 5231c73865
commit bbff0a9c72

@ -306,7 +306,7 @@ static char *_create_event_DTMF_END(struct websocket_pvt *instance,
struct ast_json *msg = ast_json_pack("{s:s, s:s, s:s#}",
"event", "DTMF_END",
"channel_id", ast_channel_uniqueid(instance->channel),
"digit", digit, 1
"digit", &digit, 1
);
if (!msg) {
return NULL;

Loading…
Cancel
Save