diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-22 15:09:58 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-22 15:09:58 +0000 |
commit | 65c1d3d8db0843c7312e707b50002f075fec2a3e (patch) | |
tree | 05fa2526f91da1a206ad4b201dec057b5cde21dc /channels | |
parent | c9be33ed93f7daf3ee945ede651b64f1675c5d51 (diff) |
Merged revisions 151512 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r151512 | mmichelson | 2008-10-22 10:08:25 -0500 (Wed, 22 Oct 2008) | 8 lines
The logic of a strncasecmp call was reversed.
(closes issue #13706)
Reported by: andrew53
Patches:
sip_notify_from_rfc3265.patch uploaded by andrew53 (license 519)
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@151514 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 1c5cc4810..d997f31bb 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9146,7 +9146,7 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, int sipmetho } else { if (sipmethod == SIP_NOTIFY && !ast_strlen_zero(p->theirtag)) { /* If this is a NOTIFY, use the From: tag in the subscribe (RFC 3265) */ - snprintf(to, sizeof(to), "<%s%s>;tag=%s", (strncasecmp(p->uri, "sip:", 4) ? "" : "sip:"), p->uri, p->theirtag); + snprintf(to, sizeof(to), "<%s%s>;tag=%s", (strncasecmp(p->uri, "sip:", 4) ? "sip:" : ""), p->uri, p->theirtag); } else if (p->options && p->options->vxml_url) { /* If there is a VXML URL append it to the SIP URL */ snprintf(to, sizeof(to), "<%s>;%s", p->uri, p->options->vxml_url); |