Come into compliance with RFC3842
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
134e6180c5
commit
8aad8d2aa0
|
@ -3877,7 +3877,7 @@ static int transmit_notify_with_mwi(struct sip_pvt *p, int newmsgs, int oldmsgs)
|
|||
add_header(&req, "Content-Type", notifymime);
|
||||
|
||||
snprintf(tmp, sizeof(tmp), "Messages-Waiting: %s\r\n", newmsgs ? "yes" : "no");
|
||||
snprintf(tmp2, sizeof(tmp2), "Voicemail: %d/%d\r\n", newmsgs, oldmsgs);
|
||||
snprintf(tmp2, sizeof(tmp2), "Voice-Message: %d/%d\r\n", newmsgs, oldmsgs);
|
||||
snprintf(clen, sizeof(clen), "%d", (int)(strlen(tmp) + strlen(tmp2)));
|
||||
add_header(&req, "Content-Length", clen);
|
||||
add_line(&req, tmp);
|
||||
|
|
Loading…
Reference in New Issue