chan_pjsip: Suppress frame warnings.

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
This commit is contained in:
Ben Ford
2017-09-05 09:35:12 -05:00
parent 7b240d1734
commit 598a18ffee

View File

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