[asterisk-dev] [Code Review] 2900: res_pjsip_logger: Add CLI command to disable logger or enable it globally or for an IP address

svnbot reviewboard at asterisk.org
Fri Oct 4 13:42:09 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2900/
-----------------------------------------------------------

(Updated Oct. 4, 2013, 1:42 p.m.)


Status
------

This change has been marked as submitted.


Review request for Asterisk Developers, Joshua Colp and Mark Michelson.


Changes
-------

Committed in revision 400542


Repository: Asterisk


Description
-------

People might not appreciate that chan_pjsip's logger can only be turned on and off by means of loading and unloading the module.  This provides some of the functionality of sip set debug. Currently supported:

pjsip set logger on
pjsip set logger off
pjsip set logger ip <ip with or without port>

Also changed the tags so that the logger is installed by default (but will be off until you set the logger on)


Diffs
-----

  /branches/12/res/res_pjsip_logger.c 400284 

Diff: https://reviewboard.asterisk.org/r/2900/diff/


Testing
-------

Tested two endpoints to see if sip traffic came in when the logger was off.  It didn't.
Tested them both when logger was set on globally. It came in for both.
Tested that setting IP mode for a single IP address resulted in messages only happening for the endpoint with that IP address. Confirmed.
Tested that setting port in the address to something other than 5060 would result in no messages. Confirmed.
Tested that setting port in the address to 5060 would make the messages come in. Confirmed.


Thanks,

jrose

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131004/856e157f/attachment.html>


More information about the asterisk-dev mailing list