aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_h323.c
diff options
context:
space:
mode:
authorjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-15 03:14:21 +0000
committerjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-15 03:14:21 +0000
commit50e41a791560f1c1fdb864a3bade531f2bcca01b (patch)
treef03ed06419035463baf42461d2e3cb85b414a186 /channels/chan_h323.c
parent7d642736fcd72c4431fd49e17134bfee4c3123a6 (diff)
castrate the logic in oh323_digit to pass DTMF no matter what. (issue #4989)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6613 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rwxr-xr-xchannels/chan_h323.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index 8e8ab53e1..8599728ff 100755
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -356,16 +356,14 @@ static int oh323_digit(struct ast_channel *c, char digit)
ast_rtp_senddigit(pvt->rtp, digit);
}
/* If in-band DTMF is desired, send that */
- if ((pvt->options.dtmfmode & H323_DTMF_INBAND)) {
- token = pvt->cd.call_token ? strdup(pvt->cd.call_token) : NULL;
- ast_mutex_unlock(&pvt->lock);
- h323_send_tone(token, digit);
- if (token)
- free(token);
- oh323_update_info(c);
- }
- else
- ast_mutex_unlock(&pvt->lock);
+ if (h323debug)
+ ast_log(LOG_DEBUG, "Sending INB digit %c on %s\n", digit, c->name);
+ token = pvt->cd.call_token ? strdup(pvt->cd.call_token) : NULL;
+ ast_mutex_unlock(&pvt->lock);
+ h323_send_tone(token, digit);
+ if (token)
+ free(token);
+ oh323_update_info(c);
return 0;
}