Print out the right var in the log message
authorRussell Bryant <russell@russellbryant.com>
Wed, 22 Oct 2008 17:45:05 +0000 (17:45 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 22 Oct 2008 17:45:05 +0000 (17:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@151555 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c11f740..0d70e63 100644 (file)
@@ -9774,7 +9774,7 @@ static int transmit_state_notify(struct sip_pvt *p, int state, int full, int tim
        ast_copy_string(to, get_header(&p->initreq, "To"), sizeof(to));
        c = get_in_brackets(to);
        if (strncasecmp(c, "sip:", 4) && strncasecmp(c, "sips:", 5)) {
-               ast_log(LOG_WARNING, "Huh?  Not a SIP header (%s)?\n", to);
+               ast_log(LOG_WARNING, "Huh?  Not a SIP header (%s)?\n", c);
                return -1;
        }
        mto = remove_uri_parameters(c);