mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-20 19:53:10 +00:00
Extend the ast_senddigit and ast_dtmf_stream API calls to allow the duration of the DTMF digit(s) to be specified and make the SendDTMF application have the capability to use it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1678,11 +1678,11 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
|
||||
digits to come in for features. */
|
||||
ast_debug(1, "Timed out for feature!\n");
|
||||
if (!ast_strlen_zero(peer_featurecode)) {
|
||||
ast_dtmf_stream(chan, peer, peer_featurecode, 0);
|
||||
ast_dtmf_stream(chan, peer, peer_featurecode, 0, 0);
|
||||
memset(peer_featurecode, 0, sizeof(peer_featurecode));
|
||||
}
|
||||
if (!ast_strlen_zero(chan_featurecode)) {
|
||||
ast_dtmf_stream(peer, chan, chan_featurecode, 0);
|
||||
ast_dtmf_stream(peer, chan, chan_featurecode, 0, 0);
|
||||
memset(chan_featurecode, 0, sizeof(chan_featurecode));
|
||||
}
|
||||
if (f)
|
||||
@@ -1774,7 +1774,7 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
|
||||
res = ast_feature_interpret(chan, peer, config, featurecode, sense);
|
||||
switch(res) {
|
||||
case FEATURE_RETURN_PASSDIGITS:
|
||||
ast_dtmf_stream(other, who, featurecode, 0);
|
||||
ast_dtmf_stream(other, who, featurecode, 0, 0);
|
||||
/* Fall through */
|
||||
case FEATURE_RETURN_SUCCESS:
|
||||
memset(featurecode, 0, sizeof(chan_featurecode));
|
||||
|
Reference in New Issue
Block a user