Asterisk has a setting for the minimum allowed DTMF. If we get shorter
DTMF tones, these will be changed to the minimum on the outbound call
leg.
(closes issue ASTERISK-19772)
Review: https://reviewboard.asterisk.org/r/1882/
Reported by: oej
Tested by: oej
Patches by: oej
Thanks to the reviewers.
1.8 branch for this patch: agave-dtmf-duration-asterisk-conf-1.8
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@363558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
ast_log(LOG_DTMF,"DTMF begin emulation of '%c' with duration %u queued on %s\n",f->subclass.integer,ast_channel_emulate_dtmf_duration(chan),ast_channel_name(chan));
ast_log(LOG_DTMF,"DTMF end '%c' detected to have actual duration %ld on the wire, emulation will be triggered on %s\n",f->subclass.integer,f->len,ast_channel_name(chan));
}
}elseif(!f->len){
ast_log(LOG_DTMF,"DTMF end accepted without begin '%c' on %s\n",f->subclass.integer,ast_channel_name(chan));
ast_log(LOG_DTMF,"DTMF end '%c' has duration %ld but want minimum %d, emulating on %s\n",f->subclass.integer,f->len,AST_MIN_DTMF_DURATION,ast_channel_name(chan));
ast_log(LOG_DTMF,"DTMF end '%c' has duration %ld but want minimum %d, emulating on %s\n",f->subclass.integer,f->len,option_dtmfminduration,ast_channel_name(chan));