quickfix
This commit is contained in:
parent
9c9330d7e2
commit
24e363d6f5
|
@ -171,7 +171,9 @@ switch_status_t megaco_activate_termination(mg_termination_t *term)
|
|||
switch_channel_set_private(channel, PVT_MG_TERM, term);
|
||||
switch_core_event_hook_add_recv_dtmf(session, mg_on_dtmf);
|
||||
|
||||
switch_core_session_execute_application_async(session, "spandsp_start_fax_detect", "mg_notify cng 120 cng");
|
||||
if (term->type == MG_TERM_TDM) {
|
||||
switch_core_session_execute_application_async(session, "spandsp_start_fax_detect", "mg_notify cng 120 cng");
|
||||
}
|
||||
}
|
||||
|
||||
switch_set_flag(term, MGT_ACTIVE);
|
||||
|
|
|
@ -476,7 +476,7 @@ static switch_status_t channel_receive_event(switch_core_session_t *session, swi
|
|||
rate,
|
||||
ptime,
|
||||
1,
|
||||
/*SWITCH_CODEC_FLAG_ENCODE |*/ SWITCH_CODEC_FLAG_DECODE,
|
||||
SWITCH_CODEC_FLAG_ENCODE | SWITCH_CODEC_FLAG_DECODE,
|
||||
NULL, switch_core_session_get_pool(tech_pvt->session)) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't load codec?\n");
|
||||
goto fail;
|
||||
|
@ -487,7 +487,7 @@ static switch_status_t channel_receive_event(switch_core_session_t *session, swi
|
|||
rate,
|
||||
ptime,
|
||||
1,
|
||||
SWITCH_CODEC_FLAG_ENCODE /*| SWITCH_CODEC_FLAG_DECODE*/,
|
||||
SWITCH_CODEC_FLAG_ENCODE | SWITCH_CODEC_FLAG_DECODE,
|
||||
NULL, switch_core_session_get_pool(tech_pvt->session)) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't load codec?\n");
|
||||
goto fail;
|
||||
|
|
Loading…
Reference in New Issue