[asterisk-bugs] [Asterisk 0018546]: [patch] WARNING message for each IAX peer with a qualifyfreqnotok setting

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Feb 16 19:49:21 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18546 
====================================================================== 
Reported By:                jcovert
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18546
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.8.1.1 
JIRA:                       SWP-2824 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-12-28 17:38 CST
Last Modified:              2011-02-16 19:49 CST
====================================================================== 
Summary:                    [patch] WARNING message for each IAX peer with a
qualifyfreqnotok setting
Description: 
Spurious warnings appear as follows:

[Dec 28 17:03:21] WARNING[17379]: chan_iax2.c:12470 build_peer: Set
peer->pokefreqnotok to 200

The existing code, below, correctly produces a warning if sscanf is unable
to convert the qualifyfreqnotok value to a number of milliseconds. 
However, whenever there is NO ERROR, the code produces a warning.  There is
no similar warning on other parameter assignments.  This one is confusing,
spurious, and should be removed or at least changed to a DEBUG.

... if (!strcasecmp(v->name, "qualifyfreqnotok")) {
        if (sscanf(v->value, "%30d", &peer->pokefreqnotok) != 1) {
            ast_log(LOG_WARNING, "Qualification testing frequency of peer
'%s' when NOT OK should be a number of milliseconds at line %d \
of iax.conf\n", peer->name, v->lineno);
        } else ast_log(LOG_WARNING, "Set peer->pokefreqnotok to %d\n",
peer->pokefreqnotok);

A patch is provided which simply removes the message.
====================================================================== 

---------------------------------------------------------------------- 
 (0132064) jcovert (reporter) - 2011-02-16 19:49
 https://issues.asterisk.org/view.php?id=18546#c132064 
---------------------------------------------------------------------- 
What is still needed to get this committed? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-16 19:49 jcovert        Note Added: 0132064                          
======================================================================




More information about the asterisk-bugs mailing list