diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-03-27 00:15:05 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-03-27 00:15:05 +0000 |
commit | f19ee6679452b78143cd0badcb9cd053d2e00533 (patch) | |
tree | 904716b08d2bf3683aa09e7cd6ed94379bd8db1f /channels | |
parent | 9b4b8a71e1178f5f0ddf30a83b9f14bf87784041 (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-x | 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 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); |