diff options
author | David M. Lee <dlee@digium.com> | 2013-09-13 14:22:07 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-09-13 14:22:07 +0000 |
commit | 2a57f6ccf72b11e74be1db5dd555ae7011adcc36 (patch) | |
tree | 4e67ab7b01b6685cf845cb0dc505d521fd9541e8 /res/res_rtp_asterisk.c | |
parent | f56796a5397cc818a5b151a27d808425589a123d (diff) |
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
Diffstat (limited to 'res/res_rtp_asterisk.c')
-rw-r--r-- | res/res_rtp_asterisk.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 6383b09e3..edc53f56b 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -4537,8 +4537,6 @@ static int load_module(void) #ifdef HAVE_PJPROJECT pj_lock_t *lock; - pj_log_set_level(0); - if (pj_init() != PJ_SUCCESS) { return AST_MODULE_LOAD_DECLINE; } |