AMI PlayDTMF Action: Make not compete with channel's media thread.

There can be one and only one thread handling a channel's media at a time.
Otherwise, we don't know which thread is going to handle the media frames.

ASTERISK-27625

Change-Id: Ia341f1a6f4d54f2022261abec9021fe5b2eb4905
This commit is contained in:
Richard Mudgett
2018-06-13 13:05:03 -05:00
parent bb0ce22b2b
commit 6a1626c265
3 changed files with 37 additions and 3 deletions

View File

@@ -169,7 +169,7 @@ static int manager_play_dtmf(struct mansession *s, const struct message *m)
return 0;
}
ast_senddigit(chan, *digit, duration_ms);
ast_senddigit_external(chan, *digit, duration_ms);
chan = ast_channel_unref(chan);