Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
oza.4h07 at gmail.com
Guest





PostPosted: Mon Jan 18, 2016 7:53 am    Post subject: [asterisk-users] How to get PJSIP SIP messages in a log file Reply with quote

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 ?


Best regards
Back to top
oza.4h07 at gmail.com
Guest





PostPosted: Mon Jan 18, 2016 8:37 am    Post subject: [asterisk-users] How to get PJSIP SIP messages in a log file Reply with quote

2016-01-18 13:53 GMT+01:00 Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)>:
Quote:
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:
Quote:
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


Quote:
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).
Back to top
oza.4h07 at gmail.com
Guest





PostPosted: Mon Jan 18, 2016 9:03 am    Post subject: [asterisk-users] How to get PJSIP SIP messages in a log file Reply with quote

Changing my logger.conf file, I could get this:
I> logger show channels
Channel                             Type     Status    Configuration
-------                             ----     ------    -------------
/var/log/asterisk/messages          File     Enabled    - NOTICE WARNING ERROR
                                    Console  Enabled    - NOTICE WARNING ERROR
/var/log/asterisk/pjsip             File     Enabled    - VERBOSE


With this on, I've got PJSIP SIP messages in file /var/log/asterisk/pjsip (great !) but I also have them showing at console (strange !).



Thoughts ?


2016-01-18 14:36 GMT+01:00 Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)>:
Quote:


2016-01-18 13:53 GMT+01:00 Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)>:
Quote:
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:
Quote:
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


Quote:
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).




Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services