[asterisk-bugs] [JIRA] (ASTERISK-20339) chan_mgcp, resp_pktccops ast_debug support

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Jan 15 09:06:45 CST 2013


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

Matt Jordan commented on ASTERISK-20339:
----------------------------------------

Tomas:

The best way to look at how 'sip set debug' or one of the other variants work is probably to look at one of the implementations already in Asterisk. {{res_xmpp}} in Asterisk 11 might be a good one to start with, as it doesn't require opening {{chan_sip}}. In particular look at the implementation of the CLI command in {{xmpp_do_set_debug}}.

In general, these commands toggle some global setting in the module. When enabled, additional {{ast_debug}} commands are called. Usage of the {{ast_debug}} macro is allowed through the inclusion of the {{logger.h}} header file.
                
> chan_mgcp, resp_pktccops ast_debug support
> ------------------------------------------
>
>                 Key: ASTERISK-20339
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20339
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_mgcp
>    Affects Versions: 1.8.16.0
>         Environment: Red Hat 5
>            Reporter: Tomas Maldonado
>            Severity: Minor
>
> "mgcp set debug on" and "pktccops set debug on" show no extra log messages. In asterisk 1.6 and previous typing this commands used to show a lot of extra log messages.  I see that in version 1.8 there is a new core function "core set debug channel ..." but neider one of this modules is recognised by this command.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list