diff options
Diffstat (limited to 'res/res_pjsip_logger.c')
-rw-r--r-- | res/res_pjsip_logger.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_pjsip_logger.c b/res/res_pjsip_logger.c index e1c404489..320bb0301 100644 --- a/res/res_pjsip_logger.c +++ b/res/res_pjsip_logger.c @@ -121,6 +121,10 @@ static pj_bool_t logging_on_rx_msg(pjsip_rx_data *rdata) return PJ_FALSE; } + if (!rdata->msg_info.msg) { + return PJ_FALSE; + } + ast_verbose("<--- Received SIP %s (%d bytes) from %s:%s:%d --->\n%s\n", rdata->msg_info.msg->type == PJSIP_REQUEST_MSG ? "request" : "response", rdata->msg_info.len, |