FreeSWITCH的liberal dtmf
`sip profile`配置`liberal-dtmf`为true,或者通道变量`rtp_liberal_dtmf`为true,其含义就是不挑剔协商的DTMF,offer rfc2833并接受远端的rfc2833 和SIP INFO。
sofia.c的部分内容:
// 收到sip info的处理
void sofia_handle_sip_i_info(...)
{if (tech_pvt->mparams.dtmf_type == DTMF_INFO ||sofia_test_pflag(tech_pvt->profile, PFLAG_LIBERAL_DTMF) || switch_channel_test_flag(tech_pvt->channel, CF_LIBERAL_DTMF)) {/* queue it up */switch_channel_queue_dtmf(channel, &dtmf);}
此外,switch_core_media.c里面有找`CF_LIBERAL_DTMF`,能看到相关处理。