From: Russell Bryant Date: Wed, 6 Oct 2004 22:15:32 +0000 (+0000) Subject: fix MWI for SIP (bug #2582) X-Git-Tag: 1.0.11.1~454 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e16c9c9ecd7fe6cb4d0969a2c89de73aa050f678;p=thirdparty%2Fasterisk.git fix MWI for SIP (bug #2582) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@3924 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6443b7d5a3..e8ba5bc34c 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3941,8 +3941,8 @@ static int transmit_notify_with_mwi(struct sip_pvt *p, int newmsgs, int oldmsgs) add_header(&req, "Event", "message-summary"); add_header(&req, "Content-Type", notifymime); - snprintf(tmp, sizeof(tmp), "Messages-Waiting: %s\n", newmsgs ? "yes" : "no"); - snprintf(tmp2, sizeof(tmp2), "Voicemail: %d/%d\n", newmsgs, oldmsgs); + snprintf(tmp, sizeof(tmp), "Messages-Waiting: %s\r\n", newmsgs ? "yes" : "no"); + snprintf(tmp2, sizeof(tmp2), "Voicemail: %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);