mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
Fix message summary in notify to be application/simple-message-summary instead of text/plain
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2035,7 +2035,7 @@ static int transmit_notify(struct sip_pvt *p, int newmsgs, int oldmsgs)
|
|||||||
char clen[20];
|
char clen[20];
|
||||||
initreqprep(&req, p, "NOTIFY", NULL);
|
initreqprep(&req, p, "NOTIFY", NULL);
|
||||||
add_header(&req, "Event", "message-summary");
|
add_header(&req, "Event", "message-summary");
|
||||||
add_header(&req, "Content-Type", "text/plain");
|
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 + oldmsgs) ? "yes" : "no");
|
||||||
snprintf(tmp2, sizeof(tmp2), "Voicemail: %d/%d\n", newmsgs, oldmsgs);
|
snprintf(tmp2, sizeof(tmp2), "Voicemail: %d/%d\n", newmsgs, oldmsgs);
|
||||||
|
|||||||
Reference in New Issue
Block a user