提交 9537ed37 authored 作者: Kapil Gupta's avatar Kapil Gupta

code changes for the following issue

1)resetting term->u.rtp.rfc2833 , if ADD/MODIFY SDP does not have rfc2833
2) calling DTMF removal from modify request also depends on rfc2833 present in sdp or not
3) calling EC disable from ADD/MODIFY api handler if sdp contains T38
上级 fc4365c8
...@@ -743,7 +743,9 @@ switch_status_t handle_mg_add_cmd(megaco_profile_t* mg_profile, MgMgcoCommand *i ...@@ -743,7 +743,9 @@ switch_status_t handle_mg_add_cmd(megaco_profile_t* mg_profile, MgMgcoCommand *i
mg_apply_tdm_dtmf_removal(term, mg_ctxt); mg_apply_tdm_dtmf_removal(term, mg_ctxt);
mg_print_t38_attributes(term); mg_apply_tdm_ec(term, mg_ctxt);
mg_print_t38_attributes(term);
/********************************************************************/ /********************************************************************/
...@@ -1059,9 +1061,12 @@ switch_status_t handle_mg_modify_cmd(megaco_profile_t* mg_profile, MgMgcoCommand ...@@ -1059,9 +1061,12 @@ switch_status_t handle_mg_modify_cmd(megaco_profile_t* mg_profile, MgMgcoCommand
} }
mg_apply_tdm_dtmf_removal(term, mg_ctxt); mg_apply_tdm_dtmf_removal(term, mg_ctxt);
mg_apply_tdm_ec(term, mg_ctxt);
mg_print_t38_attributes(term); mg_print_t38_attributes(term);
/* SDP updated to termination */ /* SDP updated to termination */
if(SWITCH_STATUS_SUCCESS != megaco_activate_termination(term)) { if(SWITCH_STATUS_SUCCESS != megaco_activate_termination(term)) {
mg_profile->mg_stats->total_num_of_term_activation_failed_error++; mg_profile->mg_stats->total_num_of_term_activation_failed_error++;
......
...@@ -249,6 +249,7 @@ void mg_restart_inactivity_timer(megaco_profile_t* profile); ...@@ -249,6 +249,7 @@ void mg_restart_inactivity_timer(megaco_profile_t* profile);
switch_status_t mgco_process_mgc_failure(SuId suId); 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);
void mg_apply_tdm_ec(mg_termination_t* term, mg_context_t *mg_ctxt);
/****************************************************************************************************************/ /****************************************************************************************************************/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论