aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-27 00:15:05 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-27 00:15:05 +0000
commitf19ee6679452b78143cd0badcb9cd053d2e00533 (patch)
tree904716b08d2bf3683aa09e7cd6ed94379bd8db1f /channels
parent9b4b8a71e1178f5f0ddf30a83b9f14bf87784041 (diff)
Privacy updates, message waiting with new messages only
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@702 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e26350a80..d7b73efda 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2035,7 +2035,7 @@ static int transmit_notify(struct sip_pvt *p, int newmsgs, int oldmsgs)
add_header(&req, "Event", "message-summary");
add_header(&req, "Content-Type", "application/simple-message-summary");
- snprintf(tmp, sizeof(tmp), "Message-Waiting: %s\n", (newmsgs + oldmsgs) ? "yes" : "no");
+ snprintf(tmp, sizeof(tmp), "Message-Waiting: %s\n", newmsgs ? "yes" : "no");
snprintf(tmp2, sizeof(tmp2), "Voicemail: %d/%d\n", newmsgs, oldmsgs);
snprintf(clen, sizeof(clen), "%d", strlen(tmp) + strlen(tmp2));
add_header(&req, "Content-Length", clen);