mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
castrate the logic in oh323_digit to pass DTMF no matter what. (issue #4989)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -356,16 +356,14 @@ static int oh323_digit(struct ast_channel *c, char digit)
|
|||||||
ast_rtp_senddigit(pvt->rtp, digit);
|
ast_rtp_senddigit(pvt->rtp, digit);
|
||||||
}
|
}
|
||||||
/* If in-band DTMF is desired, send that */
|
/* If in-band DTMF is desired, send that */
|
||||||
if ((pvt->options.dtmfmode & H323_DTMF_INBAND)) {
|
if (h323debug)
|
||||||
token = pvt->cd.call_token ? strdup(pvt->cd.call_token) : NULL;
|
ast_log(LOG_DEBUG, "Sending INB digit %c on %s\n", digit, c->name);
|
||||||
ast_mutex_unlock(&pvt->lock);
|
token = pvt->cd.call_token ? strdup(pvt->cd.call_token) : NULL;
|
||||||
h323_send_tone(token, digit);
|
ast_mutex_unlock(&pvt->lock);
|
||||||
if (token)
|
h323_send_tone(token, digit);
|
||||||
free(token);
|
if (token)
|
||||||
oh323_update_info(c);
|
free(token);
|
||||||
}
|
oh323_update_info(c);
|
||||||
else
|
|
||||||
ast_mutex_unlock(&pvt->lock);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user