goto error;
}
- if(is_rtp){
- mg_termination_t* tdm_term = NULL;
- /* disable dtmf removal */
- 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);
- }
- }
- }
+ mg_apply_tdm_dtmf_removal(term, mg_ctxt);
-
mg_print_t38_attributes(term);
/********************************************************************/
term->u.rtp.term_id);
}
+ mg_apply_tdm_dtmf_removal(term, mg_ctxt);
mg_print_t38_attributes(term);
void mg_restart_inactivity_timer(megaco_profile_t* profile);
switch_status_t mgco_process_mgc_failure(SuId suId);
+void mg_apply_tdm_dtmf_removal(mg_termination_t* term, mg_context_t *mg_ctxt);
/****************************************************************************************************************/
}
}
+
+/*****************************************************************************************************************************/
+void mg_apply_tdm_dtmf_removal(mg_termination_t* term, mg_context_t *mg_ctxt)
+{
+ mg_termination_t* tdm_term = NULL;
+
+ if(NULL == term) return ;
+
+ if((MG_TERM_RTP == term->type)){
+ 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);
+ }
+ }
+ }
+}
+/*****************************************************************************************************************************/