if(switch_test_flag(term, MG_DTMF_REMOVAL_ENABLE)){
switch_clear_flag(term, MG_DTMF_REMOVAL_ENABLE);
- megaco_tdm_term_dtmf_removal(term,0x00);
+ //megaco_tdm_term_dtmf_removal(term,0x00);
}
if (term->type == MG_TERM_RTP) {
if(0x01 == profile->peer_active){
/* MGC failure during active association , release all on-going calls contexts */
megaco_release_all_calls(profile);
- profile->peer_active = 0x00;
}
return SWITCH_STATUS_SUCCESS;
if(is_rtp){
mg_termination_t* tdm_term = NULL;
/* disable dtmf removal */
- tdm_term = megaco_context_get_peer_term(mg_ctxt, term);
- if(term->u.rtp.rfc2833_pt){
- megaco_tdm_term_dtmf_removal(tdm_term,0x01);
+ if(NULL != (tdm_term = megaco_context_get_peer_term(mg_ctxt, term))){
+ if(term->u.rtp.rfc2833_pt){
+ megaco_tdm_term_dtmf_removal(tdm_term,0x01);
+ }else{
+ megaco_tdm_term_dtmf_removal(tdm_term,0x00);
+ }
}
}
term->name, term->u.tdm.span_name, term->u.tdm.channel);
megaco_prepare_tdm_termination(term);
+#if 0
/* by-default : DTMF removal disable
* by default do not modify in-band audio stream*/
megaco_tdm_term_dtmf_removal(term,0x00);
+#endif
profile->total_cfg_term++;
}