res_pjsip: Forward PJSIP logging to Asterisk logging
authorDavid M. Lee <dlee@digium.com>
Fri, 13 Sep 2013 14:22:07 +0000 (14:22 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 13 Sep 2013 14:22:07 +0000 (14:22 +0000)
commit2a57f6ccf72b11e74be1db5dd555ae7011adcc36
tree4e67ab7b01b6685cf845cb0dc505d521fd9541e8
parentf56796a5397cc818a5b151a27d808425589a123d
res_pjsip: Forward PJSIP logging to Asterisk logging

This patch uses PJSIP's pj_log_set_log_func() to forward PJSIP's log
messages to Asterisk's logger. This is done in a new module:
res_pjsip_log_forwarder.so.

This patch sets defaultenabled on the existing res_pjsip_logger.so to
no, since logging every SIP packet seems a bit odd to do by default, and
is (hopefully) less necessary with regular PJSIP logging.

It also removes res_rtp_asterisk's disabling of PJSIP logging.

(closes issue ASTERISK-22360)
Reported by: Joshua Colp
Review: https://reviewboard.asterisk.org/r/2830/
........

Merged revisions 399049 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@399051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_log_forwarder.c [new file with mode: 0644]
res/res_pjsip_logger.c
res/res_rtp_asterisk.c