mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
Merge "res_pjsip_mwi_body_generator: Re-order the body items" into 13
This commit is contained in:
@@ -61,11 +61,11 @@ static int mwi_generate_body_content(void *body, void *data)
|
|||||||
|
|
||||||
ast_str_append(mwi, 0, "Messages-Waiting: %s\r\n",
|
ast_str_append(mwi, 0, "Messages-Waiting: %s\r\n",
|
||||||
counter->new_msgs ? "yes" : "no");
|
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)) {
|
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, "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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user