chan_websocket: Fix crash on DTMF_END event.

Resolves: #1604
This commit is contained in:
Sean Bright
2025-11-20 11:31:28 -05:00
parent 2d11bb044e
commit 346474635f

View File

@@ -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;