]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix sip mwi to conform to RFC (bug #2793)
authorRussell Bryant <russell@russellbryant.com>
Mon, 8 Nov 2004 00:24:09 +0000 (00:24 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 8 Nov 2004 00:24:09 +0000 (00:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4181 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c5cb540976de21958765ef97efc7a272a4c305d0..033e741fc8507975421a608caa1d0ae40c5a3ca2 100755 (executable)
@@ -3947,7 +3947,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);