aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 51bd89b98..fd71cda32 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8849,7 +8849,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);
@@ -18154,7 +18154,7 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req,
parse_ok_contact(p, req);
build_contact(p);
- if (strcmp(event, "message-summary") && gotdest) {
+ if (gotdest) {
transmit_response(p, "404 Not Found", req);
p->needdestroy = 1;
if (authpeer)