From: Kevin Harwell Date: Tue, 24 Sep 2019 16:21:12 +0000 (-0500) Subject: res_pjsip_pubsub: change warning to debug X-Git-Tag: 13.30.0-rc1~60^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9384639953f1d72cd0de5dab4fcf9b8985a7d938;p=thirdparty%2Fasterisk.git res_pjsip_pubsub: change warning to debug The following message: "Subscription request from endpoint rejected. Expiration of 0 is invalid" Would sometimes spam the log with warnings if Asterisk restarted and a bunch of clients sent unsubscribes. This patch changes it from a warning to a debug message. Change-Id: I841ec42f65559f3135e037df0e55f89b6447a467 --- diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c index 16c9a73b2e..d5ce1ffc4f 100644 --- a/res/res_pjsip_pubsub.c +++ b/res/res_pjsip_pubsub.c @@ -3040,7 +3040,7 @@ static pj_bool_t pubsub_on_rx_subscribe_request(pjsip_rx_data *rdata) expires_header = pjsip_msg_find_hdr(rdata->msg_info.msg, PJSIP_H_EXPIRES, rdata->msg_info.msg->hdr.next); if (expires_header) { if (expires_header->ivalue == 0) { - ast_log(LOG_WARNING, "Subscription request from endpoint %s rejected. Expiration of 0 is invalid\n", + ast_debug(1, "Subscription request from endpoint %s rejected. Expiration of 0 is invalid\n", ast_sorcery_object_get_id(endpoint)); pjsip_endpt_respond_stateless(ast_sip_get_pjsip_endpoint(), rdata, 400, NULL, NULL, NULL); return PJ_TRUE;