--- app_record.c.orig 2021-08-20 09:37:58.798189864 +0200 +++ app_record.c 2021-08-20 09:38:34.962958422 +0200 @@ -171,6 +171,15 @@ static enum dtmf_response record_dtmf_response(struct ast_channel *chan, struct ast_flags *flags, int dtmf_integer, int terminator) { + + char dtmfstr[2]=""; + + dtmfstr[0]=dtmf_integer; + dtmfstr[1]='\0'; + + pbx_builtin_setvar_helper(chan, "RECORD_DTMF", dtmfstr); + + if ((dtmf_integer == OPERATOR_KEY) && (ast_test_flag(flags, OPTION_OPERATOR_EXIT))) { return RESPONSE_OPERATOR;