projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfa9531
)
Fix this check to use the proper variable (the result from get_in_brackets)
author
Russell Bryant
<russell@russellbryant.com>
Wed, 22 Oct 2008 17:44:05 +0000
(17:44 +0000)
committer
Russell Bryant
<russell@russellbryant.com>
Wed, 22 Oct 2008 17:44:05 +0000
(17:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@151554
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
b0bdcdc
..
c11f740
100644
(file)
--- 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;
}