[svn-commits] mjordan: branch group/asterisk-13-sipit r424094 - /team/group/asterisk-13-sip...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Sep 29 08:40:52 CDT 2014
Author: mjordan
Date: Mon Sep 29 08:40:47 2014
New Revision: 424094
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424094
Log:
res_pjsip_logger: Bail on logging a packet that has no message
Modified:
team/group/asterisk-13-sipit/res/res_pjsip_logger.c
Modified: team/group/asterisk-13-sipit/res/res_pjsip_logger.c
URL: http://svnview.digium.com/svn/asterisk/team/group/asterisk-13-sipit/res/res_pjsip_logger.c?view=diff&rev=424094&r1=424093&r2=424094
==============================================================================
--- team/group/asterisk-13-sipit/res/res_pjsip_logger.c (original)
+++ team/group/asterisk-13-sipit/res/res_pjsip_logger.c Mon Sep 29 08:40:47 2014
@@ -32,7 +32,6 @@
#include "asterisk/res_pjsip.h"
#include "asterisk/module.h"
#include "asterisk/logger.h"
-#include "asterisk/cli.h"
#include "asterisk/netsock2.h"
enum pjsip_logging_mode {
@@ -118,6 +117,10 @@
static pj_bool_t logging_on_rx_msg(pjsip_rx_data *rdata)
{
if (!pjsip_log_test_addr(rdata->pkt_info.src_name, rdata->pkt_info.src_port)) {
+ return PJ_FALSE;
+ }
+
+ if (!rdata->msg_info.msg) {
return PJ_FALSE;
}
More information about the svn-commits
mailing list