]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_unistim: Fix code, causing all incoming DTMF sent back to asterisk
authorIgor Goncharovsky <igor.goncharovsky@gmail.com>
Tue, 27 Aug 2019 05:49:46 +0000 (11:49 +0600)
committerIgor Goncharovsky <igor.goncharovsky@gmail.com>
Tue, 27 Aug 2019 07:53:21 +0000 (02:53 -0500)
commit1d06a1efb3819ba2a9cf933113523a73fc1ce021
tree8090836981c67e581d9113290f3cb18e22616483
parentc2c171eb5a1baee5f3c5f49811ac80a7532f8d47
chan_unistim: Fix code, causing all incoming DTMF sent back to asterisk

Current implementation of ast_channel_tech send_digit_begin hook uses
same function for tone playback as key press handler. This cause every
incoming dtmf send back to asterisk. In case of two unistim phones
connected to each other, it'll cause indefinite DTMF loop. Fix add
separate function for dtmf tone phone play.

Change-Id: I5795db468df552f0c89c7576b6b3858b26c4eab4
channels/chan_unistim.c