]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_sip: DEBUG messages in sdp_crypto.c display despite a DEBUG level of zero
authorCorey Farrell <git@cfware.com>
Thu, 12 Jun 2014 17:20:05 +0000 (17:20 +0000)
committerCorey Farrell <git@cfware.com>
Thu, 12 Jun 2014 17:20:05 +0000 (17:20 +0000)
Change debug level for messages in sdp_crypto.c from zero to one.  This
ensures the messages are not displayed when debugging is disabled.  Change
does not apply to 12+ as it was already fixed in those versions.

ASTERISK-23246 #close
Reported by: Rusty Newton
Review: https://reviewboard.asterisk.org/r/3605/
........

Merged revisions 415908 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@415915 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/sip/sdp_crypto.c

index c27e882c277696f4145dc2a3b3d921c266bc8700..8a0d38a42393b407ea5ce06e9eb82adedab89bd7 100644 (file)
@@ -282,7 +282,7 @@ int sdp_crypto_process(struct sdp_crypto *p, const char *attr, struct ast_rtp_in
        }
 
        if (!p->tag) {
-               ast_log(LOG_DEBUG, "Accepting crypto tag %s\n", tag);
+               ast_debug(1, "Accepting crypto tag %s\n", tag);
                p->tag = ast_strdup(tag);
                if (!p->tag) {
                        ast_log(LOG_ERROR, "Could not allocate memory for tag\n");
@@ -307,7 +307,7 @@ int sdp_crypto_offer(struct sdp_crypto *p, int taglen)
                return -1;
        }
 
-       ast_log(LOG_DEBUG, "Crypto line: %s", p->a_crypto);
+       ast_debug(1, "Crypto line: %s", p->a_crypto);
 
        return 0;
 }