summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2008-10-22 15:08:25 +0000
committerMark Michelson <mmichelson@digium.com>2008-10-22 15:08:25 +0000
commitcfa95313113e72fa856db754c7e2612b07cf27d8 (patch)
treeba4471cb79c72e779ef24fe94707be8203c401e3 /channels
parent97dac2d91a7aff7d21088480681f131e7c37078b (diff)
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: https://origsvn.digium.com/svn/asterisk/trunk@151512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-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 613977726..b0bdcdc3b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -9419,7 +9419,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);