]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_pjsip: Suppress frame warnings.
authorBen Ford <bford@digium.com>
Tue, 5 Sep 2017 14:35:12 +0000 (09:35 -0500)
committerBen Ford <bford@digium.com>
Tue, 5 Sep 2017 22:15:23 +0000 (17:15 -0500)
When rtp_keepalive is on for a PJSIP endpoint dialing to another
Asterisk instance also using PJSIP, Asterisk will continue to print
warning messages about not being able to send frames of a certain
type. This suppresses that warning message.

Change-Id: I0332a05519d7bda9cacfa26d433909ff1909be67

channels/chan_pjsip.c

index 7a2ffbcc85851e7a96c3c99d1db24241ee526e57..75dcd76100839cdc9494408a003131b51074f941 100644 (file)
@@ -845,6 +845,8 @@ static int chan_pjsip_write(struct ast_channel *ast, struct ast_frame *frame)
                break;
        case AST_FRAME_MODEM:
                break;
+       case AST_FRAME_CNG:
+               break;
        default:
                ast_log(LOG_WARNING, "Can't send %u type frames with PJSIP\n", frame->frametype);
                break;