[asterisk-users] How to get PJSIP SIP messages in a log file and not in console ?

Olivier oza.4h07 at gmail.com
Mon Jan 18 07:36:44 CST 2016


2016-01-18 13:53 GMT+01:00 Olivier <oza.4h07 at gmail.com>:

> Hello,
>
> How should I configure Asterisk (13.7.0) to get persistently PJSIP SIP
> messages in a log file and not in console ?
>
> I would expect adding "debug=yes" in pjsip.conf to produce the same output
> as "pjsip set logger on".
> Am I understanding correctly ?
>

I've got:
> logger show channels
Channel                             Type     Status    Configuration
-------                             ----     ------    -------------
/var/log/asterisk/messages          File     Enabled    - NOTICE WARNING
ERROR
                                    Console  Enabled    - NOTICE WARNING
ERROR
/var/log/asterisk/debug             File     Enabled    - DEBUG NOTICE
WARNING ERROR


> pjsip show settings

Global Settings:

 ParameterName             : ParameterValue
 =====================================================
 debug                     : yes




I expected to have PJSIP's SIP messages logged to /var/log/asterisk/debug
file and not find them in console.
I'm seeing the opposite (no SIP message in debug file and console cluttered
with SIP messages).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160118/5e1b1d3f/attachment.html>


More information about the asterisk-users mailing list