FS-4769 try this patch and put {drop_dtmf=true} in your dial string

This commit is contained in:
Anthony Minessale 2012-10-26 14:46:36 -05:00
parent 6b9c2ca8af
commit b94ef869e3
3 changed files with 10 additions and 0 deletions

View File

@ -1511,6 +1511,10 @@ static switch_status_t sofia_send_dtmf(switch_core_session_t *session, const swi
tech_pvt = (private_object_t *) switch_core_session_get_private(session);
switch_assert(tech_pvt != NULL);
if (sofia_test_flag(tech_pvt, TFLAG_DROP_DTMF)) {
return SWITCH_STATUS_SUCCESS;
}
dtmf_type = tech_pvt->dtmf_type;
/* We only can send INFO when we have no media */

View File

@ -352,6 +352,7 @@ typedef enum {
TFLAG_SLA_BARGING,
TFLAG_PASS_ACK,
TFLAG_CRYPTO_RECOVER,
TFLAG_DROP_DTMF,
/* No new flags below this line */
TFLAG_MAX
} TFLAGS;

View File

@ -969,6 +969,11 @@ void sofia_glue_attach_private(switch_core_session_t *session, sofia_profile_t *
switch_core_session_set_private(session, tech_pvt);
if (switch_true(switch_channel_get_variable_dup(tech_pvt->channel, "drop_dtmf", SWITCH_FALSE, -1))) {
sofia_set_flag(tech_pvt, TFLAG_DROP_DTMF);
}
if (channame) {
sofia_glue_set_name(tech_pvt, channame);
}