mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
app_dial.c: Only send DTMF on first progress event.
ASTERISK-29329 #close Change-Id: Ic58e7a17f1ff3f785a5b21dced88682581149601
This commit is contained in:
@@ -1559,12 +1559,14 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in,
|
|||||||
ast_channel_stage_snapshot_done(in);
|
ast_channel_stage_snapshot_done(in);
|
||||||
ast_channel_unlock(in);
|
ast_channel_unlock(in);
|
||||||
sent_progress = 1;
|
sent_progress = 1;
|
||||||
}
|
|
||||||
if (!ast_strlen_zero(dtmf_progress)) {
|
if (!ast_strlen_zero(dtmf_progress)) {
|
||||||
ast_verb(3,
|
ast_verb(3,
|
||||||
"Sending DTMF '%s' to the called party as result of receiving a PROGRESS message.\n",
|
"Sending DTMF '%s' to the called party as result of "
|
||||||
dtmf_progress);
|
"receiving a PROGRESS message.\n",
|
||||||
ast_dtmf_stream(c, in, dtmf_progress, 250, 0);
|
dtmf_progress);
|
||||||
|
ast_dtmf_stream(c, in, dtmf_progress, 250, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ast_channel_publish_dial(in, c, NULL, "PROGRESS");
|
ast_channel_publish_dial(in, c, NULL, "PROGRESS");
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user