diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-22 17:44:05 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-22 17:44:05 +0000 |
commit | 7f68f2de604e139f224d76bd7aa7d317d6f44c27 (patch) | |
tree | 252763dfb2a769a4c1227908ed222774f1474198 | |
parent | d54ae90e984e5643831d7566110962b0a5c1c3a8 (diff) |
Fix this check to use the proper variable (the result from get_in_brackets)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@151554 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index b0bdcdc3b..c11f740b8 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9773,7 +9773,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(to, "sip:", 4) && strncasecmp(to, "sips:", 5)) { + if (strncasecmp(c, "sip:", 4) && strncasecmp(c, "sips:", 5)) { ast_log(LOG_WARNING, "Huh? Not a SIP header (%s)?\n", to); return -1; } |