put items in RFC-specified order (issue #5217)
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 14 Sep 2005 22:06:00 +0000 (22:06 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 14 Sep 2005 22:06:00 +0000 (22:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6602 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e0dc282..6ecedd5 100755 (executable)
@@ -4875,8 +4875,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", default_notifymime);
 
-       ast_build_string(&t, &maxbytes, "Message-Account: sip:%s@%s\r\n", (vmexten && !ast_strlen_zero(vmexten)) ? vmexten : global_vmexten, p->fromdomain);
        ast_build_string(&t, &maxbytes, "Messages-Waiting: %s\r\n", newmsgs ? "yes" : "no");
+       ast_build_string(&t, &maxbytes, "Message-Account: sip:%s@%s\r\n", (vmexten && !ast_strlen_zero(vmexten)) ? vmexten : global_vmexten, p->fromdomain);
        ast_build_string(&t, &maxbytes, "Voice-Message: %d/%d (0/0)\r\n", newmsgs, oldmsgs);
 
        if (t > tmp + sizeof(tmp))