Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.292.2.26 diff -u -r1.292.2.26 chan_sip.c --- channels/chan_sip.c 1 Apr 2004 06:35:17 -0000 1.292.2.26 +++ channels/chan_sip.c 6 Apr 2004 08:51:41 -0000 @@ -1482,6 +1482,8 @@ if (i->dtmfmode & SIP_DTMF_INBAND) { i->vad = ast_dsp_new(); ast_dsp_set_features(i->vad, DSP_FEATURE_DTMF_DETECT); + if (!(fmt & AST_FORMAT_ULAW) && !(fmt & AST_FORMAT_ALAW)) + ast_log(LOG_WARNING, "DTMF mode INBAND with incompatible codec %s (Use another codec or DTMF mode)\n", ast_getformatname(fmt)); } tmp->fds[0] = ast_rtp_fd(i->rtp); tmp->fds[1] = ast_rtcp_fd(i->rtp);