]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Forward PJSIP logging to Asterisk logging
authorDavid M. Lee <dlee@digium.com>
Fri, 13 Sep 2013 14:21:23 +0000 (14:21 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 13 Sep 2013 14:21:23 +0000 (14:21 +0000)
commit491188ab75a5ca5fa3c3fe14b7802ba60c03b58b
treee7dc3df52485ff997f6611a8f6e1fea65875b7af
parentae292e7e54dd67ee938c301d4f61b8653e7add1b
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/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@399049 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