summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels/chan_sip.c2
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;
}