dect
/
asterisk
Archived
13
0
Fork 0

Privacy updates, message waiting with new messages only

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@702 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2003-03-27 00:15:05 +00:00
parent 9b4b8a71e1
commit f19ee66794
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ privacy_exec (struct ast_channel *chan, void *data)
/*Play unidentified call*/
res = ast_safe_sleep(1);
res = ast_safe_sleep(chan, 1000);
if (!res)
res = ast_streamfile(chan, "privacy-unident", chan->language);
if (!res)

View File

@ -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);