|
|
@ -4563,7 +4563,7 @@ static int transmit_notify_with_mwi(struct sip_pvt *p, int newmsgs, int oldmsgs)
|
|
|
|
add_header(&req, "Content-Type", default_notifymime);
|
|
|
|
add_header(&req, "Content-Type", default_notifymime);
|
|
|
|
|
|
|
|
|
|
|
|
snprintf(tmp, sizeof(tmp), "Messages-Waiting: %s\r\n", newmsgs ? "yes" : "no");
|
|
|
|
snprintf(tmp, sizeof(tmp), "Messages-Waiting: %s\r\n", newmsgs ? "yes" : "no");
|
|
|
|
snprintf(tmp2, sizeof(tmp2), "Voice-Message: %d/%d\r\n", newmsgs, oldmsgs);
|
|
|
|
snprintf(tmp2, sizeof(tmp2), "Voice-Message: %d/%d (0/0)\r\n", newmsgs, oldmsgs);
|
|
|
|
snprintf(clen, sizeof(clen), "%d", (int)(strlen(tmp) + strlen(tmp2)));
|
|
|
|
snprintf(clen, sizeof(clen), "%d", (int)(strlen(tmp) + strlen(tmp2)));
|
|
|
|
add_header(&req, "Content-Length", clen);
|
|
|
|
add_header(&req, "Content-Length", clen);
|
|
|
|
add_line(&req, tmp);
|
|
|
|
add_line(&req, tmp);
|
|
|
|