summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2016-05-30 18:27:35 -0600
committerGeorge Joseph <gjoseph@digium.com>2016-05-30 19:31:26 -0500
commit8a6a14590d4c2f6c840d0e192c4113f700c682fa (patch)
tree8aedaf1fa00703137dba1911bb186b0ce3a618e5 /res
parentde298889047deee01afb451ceedaf7b463616fae (diff)
res_pjsip_mwi_body_generator: Re-order the body items
Re-ordered the body items so Message-Account is second. Messages-Waiting: no Message-Account: sip:1571@<IP Removed>:5060 Voice-Message: 0/0 (0/0) ASTERISK-26065 #close Reported-by: Ross Beer Change-Id: If5d35a64656eac98c2dd5e490cc0b2807bed80c3
Diffstat (limited to 'res')
-rw-r--r--res/res_pjsip_mwi_body_generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_pjsip_mwi_body_generator.c b/res/res_pjsip_mwi_body_generator.c
index f46ce04e3..e8279101c 100644
--- a/res/res_pjsip_mwi_body_generator.c
+++ b/res/res_pjsip_mwi_body_generator.c
@@ -61,11 +61,11 @@ static int mwi_generate_body_content(void *body, void *data)
ast_str_append(mwi, 0, "Messages-Waiting: %s\r\n",
counter->new_msgs ? "yes" : "no");
- ast_str_append(mwi, 0, "Voice-Message: %d/%d (0/0)\r\n",
- counter->new_msgs, counter->old_msgs);
if (!ast_strlen_zero(counter->message_account)) {
ast_str_append(mwi, 0, "Message-Account: %s\r\n", counter->message_account);
}
+ ast_str_append(mwi, 0, "Voice-Message: %d/%d (0/0)\r\n",
+ counter->new_msgs, counter->old_msgs);
return 0;
}