[asterisk-users] Really destroying SIP dialog

Matthew J. Roth mroth at imminc.com
Fri Jun 13 08:05:37 CDT 2008


c james wrote:
> I am trying to work in the console, figuring why it exits, but about 75% 
> is always taken up with
> Really destroying SIP dialog 'xxxxxxxxxxxx' Method: OPTIONS
>
> Can anyone point me where I can stop this without turning down the 
> debugging/verbose on the entire console.

c james,

Your best option would be to address the source of the messages, but I 
know that's not always practical.  Here is a trivial patch that will 
only print the messages if verbosity is set to greater than 10.  Just 
apply it to 'channels/chan_sip.c' and rebuild Asterisk.

=== BEGIN PATCH ============================================
--- chan_sip.c  2008-06-13 08:51:46.000000000 -0400
+++ chan_sip.c.patched  2008-06-13 08:56:37.000000000 -0400
@@ -3115,7 +3115,8 @@
        struct sip_pkt *cp;

        if (sip_debug_test_pvt(p) || option_debug > 2)
-               ast_verbose("Really destroying SIP dialog '%s' Method: 
%s\n", p->callid, sip_methods[p->method].text);
+               if (option_verbose > 10)
+                       ast_verbose(VERBOSE_PREFIX_4 "Really destroying 
SIP dialog '%s' Method: %s\n", p->callid, sip_methods[p->method].text);

        if (ast_test_flag(&p->flags[0], SIP_INC_COUNT) || 
ast_test_flag(&p->flags[1], SIP_PAGE2_CALL_ONHOLD)) {
                update_call_counter(p, DEC_CALL_LIMIT);
=== END PATCH ==============================================

Regards,

Matthew Roth
InterMedia Marketing Solutions
Software Engineer and Systems Developer




More information about the asterisk-users mailing list