Merge "res_pjsip: Fix transport_states ref leak"
authorFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 11 Apr 2019 19:58:41 +0000 (14:58 -0500)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Thu, 11 Apr 2019 19:58:41 +0000 (14:58 -0500)
channels/chan_pjsip.c

index 55cd9ed..e1b3b18 100644 (file)
@@ -2016,7 +2016,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;