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

Joshua Colp reviewboard at asterisk.org
Wed Oct 2 16:04:59 CDT 2013


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



/branches/12/res/res_pjsip_logger.c
<https://reviewboard.asterisk.org/r/2900/#comment19079>

    Instead of duplicating this logic place it into pjsip_debug_test_addr and pass in the address and port. Also means you don't need to construct the host:port combination and resolve it, if all addresses are set.


- Joshua Colp


On Oct. 2, 2013, 8:59 p.m., jrose wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2900/
> -----------------------------------------------------------
> 
> (Updated Oct. 2, 2013, 8:59 p.m.)
> 
> 
> Review request for Asterisk Developers, Joshua Colp and Mark Michelson.
> 
> 
> 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/20131002/6fc40669/attachment.html>


More information about the asterisk-dev mailing list