]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: digit_begin - constant DTMF tone if RTP is not setup yet
authorKevin Harwell <kharwell@digium.com>
Wed, 8 Apr 2020 19:01:55 +0000 (14:01 -0500)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 13 Apr 2020 15:54:07 +0000 (10:54 -0500)
commitb2e7fc69725c1fc3034cb8fe3888c9ef7d9b2a86
treeae6b26c2d567a4c5d4c2c8a57184aa6f410ef8fe
parent9b259c6514de9a8192c0a117a557f6d1116971ab
chan_pjsip: digit_begin - constant DTMF tone if RTP is not setup yet

If chan_pjsip is configured for DTMF_RFC_4733, and the core triggers a
digit begin before media, or rtp has been setup then it's possible the
outgoing channel will hear a constant DTMF tone upon answering.

This happens because when there is no media, or rtp chan_pjsip notifies
the core to initiate inband DTMF. However, upon digit end if media, and
rtp become available then chan_pjsip does not notify the core to stop
inband DTMF. Thus the tone continues playing.

This patch makes it so chan_pjsip only notifies the core to start
inband DTMF in only the required cases. Now if there is no media, or
rtp availabe upon digit begin chan_pjsip does nothing, but tells the
core it handled it.

ASTERISK-28817 #close

Change-Id: I0dbea9fff444a2595fb18c64b89653e90d2f6eb5
channels/chan_pjsip.c