Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 191953) +++ channels/chan_sip.c (working copy) @@ -4386,6 +4386,8 @@ switch(ast->fdno) { case 0: f = ast_rtp_read(p->rtp); /* RTP Audio */ +if (f) +ast_log(LOG_NOTICE,"got %d!\n",f->frametype); break; case 1: f = ast_rtcp_read(p->rtp); /* RTCP Control Channel */ @@ -4405,7 +4407,10 @@ /* Don't forward RFC2833 if we're not supposed to */ if (f && (f->frametype == AST_FRAME_DTMF) && (ast_test_flag(&p->flags[0], SIP_DTMF) != SIP_DTMF_RFC2833)) +{ +ast_log(LOG_NOTICE,"Dropping DTMF!\n"); return &ast_null_frame; +} /* We already hold the channel lock */ if (!p->owner || (f && f->frametype != AST_FRAME_VOICE)) @@ -4427,7 +4432,10 @@ } if (f && (ast_test_flag(&p->flags[0], SIP_DTMF) == SIP_DTMF_INBAND) && p->vad) { +ast_log(LOG_NOTICE,"inband detection\n"); f = ast_dsp_process(p->owner, p->vad, f); +if (f) +ast_log(LOG_NOTICE,"inband got %d!\n",f->frametype); if (f && f->frametype == AST_FRAME_DTMF) { if (ast_test_flag(&p->t38.t38support, SIP_PAGE2_T38SUPPORT_UDPTL) && f->subclass == 'f') { if (option_debug)