[asterisk-bugs] [JIRA] (ASTERISK-25705) PJSIP debug settings are inconsistent between console and file output

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Jan 26 14:23:33 CST 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229191#comment-229191 ] 

Rusty Newton commented on ASTERISK-25705:
-----------------------------------------

To clarify the three issues here:

# When PJSIP logger output is turned out it goes to the console regardless of logger configuration.
# When log channels are configured with VERBOSE level 0 they still receive PJSIP logger output.
# There is no expectation set in documentation for where PJSIP logger output will be output.

In regards to number 3:

It would be nice to mention where to expect the output in the help text for the command.
{noformat}
*CLI> core show help pjsip set logger on
Usage: pjsip set logger {on|off|host <name>}
       Enables or disabling logging of SIP packets
       read on ports bound to PJSIP transports either
       globally or enables logging for an individual
       host.
{noformat}
Then possibly in a couple places on the wiki in regards to channel driver logging, PJSIP troubleshooting and such.

Additionally a mention in logger.conf wouldn't hurt.

> PJSIP debug settings are inconsistent between console and file output
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-25705
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25705
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Logging
>    Affects Versions: 13.7.0
>         Environment: Debian Jessie
>            Reporter: Olivier Krief
>            Severity: Trivial
>
> In logger.conf:
> {noformat}
> [logfiles]
> pjsip => verbose(1)
> console => verbose(1)
> {noformat}
> In pjsip.conf:
> {noformat}
> [global]
> type=global
> debug=yes
> {noformat}
> Asterisk prints SIP messages in both console and pjsip file.
> Then, asterisk is stopped and logger.conf is changed to:
> {noformat}
> [logfiles]
> pjsip => notice
> console => notice
> {noformat}
> Then asterisk is started and a PJSIP call is issued. Now, pjsip file only holds NOTICE statements (expected result) but console still shows SIP messages while I expected it to not display SIP messages at all.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list