]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_pjsip: DTMF Mode auto_info fallback lead to both inband and info
authorSalah Ahmed <txrubel@gmail.com>
Wed, 3 Apr 2019 15:55:07 +0000 (10:55 -0500)
committerJoshua Colp <jcolp@digium.com>
Fri, 5 Apr 2019 11:29:12 +0000 (08:29 -0300)
When the dtmf_mode on an endpoint is configured as "auto_info"
Asterisk will produce an inband DTMF tone alongside an INFO
message when sending DTMF.

ASTERISK-28371

Change-Id: I1380b82f006e110a1b83fbb50c9873edd13a5d9a

channels/chan_pjsip.c

index 36cc0ad3b99ad7bb71a5e1d5fbc0672bfccb72e2..6d027b32f01aa3ee94475edb4bd9926c61e17845 100644 (file)
@@ -1758,7 +1758,7 @@ static int chan_pjsip_digit_begin(struct ast_channel *chan, char digit)
                break;
        case AST_SIP_DTMF_AUTO_INFO:
                if (!media || !media->rtp || (ast_rtp_instance_dtmf_mode_get(media->rtp) == AST_RTP_DTMF_MODE_NONE)) {
-                       return -1;
+                       return 0;
                }
                ast_rtp_instance_dtmf_begin(media->rtp, digit);
                break;