--- asterisk-18.3.0/channels/chan_sip.c.orig 2021-03-26 15:22:15.231659736 -0400 +++ asterisk-18.3.0/channels/chan_sip.c 2021-03-26 15:27:01.326813989 -0400 @@ -22623,6 +22623,18 @@ const char *c = sip_get_header(req, "Content-Type"); /* Need to check the media/type */ + + if (!strcasecmp(c, "application/hook-flash")) { + /* send a FLASH event, for ATAs that send flash as hook-flash not dtmf */ + struct ast_frame f = { AST_FRAME_CONTROL, { AST_CONTROL_FLASH, } }; + ast_queue_frame(p->owner, &f); + if (sipdebug) { + ast_verbose("* DTMF-relay event received: FLASH\n"); + } + transmit_response(p, "200 OK", req); + return; + } + if (!strcasecmp(c, "application/dtmf-relay") || !strcasecmp(c, "application/vnd.nortelnetworks.digits") || !strcasecmp(c, "application/dtmf")) {