Merge "res_pjsip_mwi_body_generator: Re-order the body items"

This commit is contained in:
zuul 2016-05-31 12:39:51 -05:00 committed by Gerrit Code Review
commit dffbb2d7c3

View file

@ -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;
}