]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_websocket: Fix crash on DTMF_END event.
authorSean Bright <seanbright@users.noreply.github.com>
Thu, 20 Nov 2025 16:31:28 +0000 (11:31 -0500)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 1 Dec 2025 13:58:26 +0000 (13:58 +0000)
Resolves: #1604

channels/chan_websocket.c

index 0d6e6c9fa31f44a659b94b4cf9b75e316c0bc624..9b1db22298afbcdf2aca5b99567de000fc33adad 100644 (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;