From: Matthew Jordan Date: Fri, 6 Apr 2012 14:01:03 +0000 (+0000) Subject: Fix a typo in the warning messages for an ignored media stream X-Git-Tag: 1.8.13.0-rc1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c318b19c26238757da521b8a0da603d6242d2d5;p=thirdparty%2Fasterisk.git Fix a typo in the warning messages for an ignored media stream Added a '\n' to the warning messages when we ignore a media stream due to the port number being '0'. (closes issue ASTERISK-19646) Reported by: Badalian Vyacheslav git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@361332 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 703f141e17..47975df0d8 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8913,7 +8913,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action if ((sscanf(m, "audio %30u/%30u RTP/%4s %n", &x, &numberofports, protocol, &len) == 3 && len > 0) || (sscanf(m, "audio %30u RTP/%4s %n", &x, protocol, &len) == 2 && len > 0)) { if (x == 0) { - ast_log(LOG_WARNING, "ignoring 'audio' media offer because port number is zero"); + ast_log(LOG_WARNING, "ignoring 'audio' media offer because port number is zero\n"); continue; } if (!strcmp(protocol, "SAVP")) { @@ -8947,7 +8947,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action } else if ((sscanf(m, "video %30u/%30u RTP/%4s %n", &x, &numberofports, protocol, &len) == 3 && len > 0) || (sscanf(m, "video %30u RTP/%4s %n", &x, protocol, &len) == 2 && len > 0)) { if (x == 0) { - ast_log(LOG_WARNING, "ignoring 'video' media offer because port number is zero"); + ast_log(LOG_WARNING, "ignoring 'video' media offer because port number is zero\n"); continue; } if (!strcmp(protocol, "SAVP")) { @@ -8981,7 +8981,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action } else if ((sscanf(m, "text %30u/%30u RTP/AVP %n", &x, &numberofports, &len) == 2 && len > 0) || (sscanf(m, "text %30u RTP/AVP %n", &x, &len) == 1 && len > 0)) { if (x == 0) { - ast_log(LOG_WARNING, "ignoring 'text' media offer because port number is zero"); + ast_log(LOG_WARNING, "ignoring 'text' media offer because port number is zero\n"); continue; } if (p->offered_media[SDP_TEXT].order_offered) { @@ -9009,7 +9009,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action } else if (((sscanf(m, "image %30u udptl t38%n", &x, &len) == 1 && len > 0) || (sscanf(m, "image %30u UDPTL t38%n", &x, &len) == 1 && len > 0))) { if (x == 0) { - ast_log(LOG_WARNING, "ignoring 'image' media offer because port number is zero"); + ast_log(LOG_WARNING, "ignoring 'image' media offer because port number is zero\n"); continue; } if (initialize_udptl(p)) {