|
|
@ -3863,7 +3863,7 @@ static int transmit_notify_with_mwi(struct sip_pvt *p, int newmsgs, int oldmsgs)
|
|
|
|
char tmp[256];
|
|
|
|
char tmp[256];
|
|
|
|
char tmp2[256];
|
|
|
|
char tmp2[256];
|
|
|
|
char clen[20];
|
|
|
|
char clen[20];
|
|
|
|
reqprep(&req, p, "NOTIFY", 0, 1);
|
|
|
|
initreqprep(&req, p, "NOTIFY", NULL);
|
|
|
|
add_header(&req, "Event", "message-summary");
|
|
|
|
add_header(&req, "Event", "message-summary");
|
|
|
|
add_header(&req, "Content-Type", notifymime);
|
|
|
|
add_header(&req, "Content-Type", notifymime);
|
|
|
|
|
|
|
|
|
|
|
@ -3896,7 +3896,7 @@ static int transmit_notify_with_sipfrag(struct sip_pvt *p, int cseq)
|
|
|
|
struct sip_request req;
|
|
|
|
struct sip_request req;
|
|
|
|
char tmp[256];
|
|
|
|
char tmp[256];
|
|
|
|
char clen[20];
|
|
|
|
char clen[20];
|
|
|
|
initreqprep(&req, p, "NOTIFY", NULL);
|
|
|
|
reqprep(&req, p, "NOTIFY", 0, 1);
|
|
|
|
snprintf(tmp, sizeof(tmp), "refer;id=%d", cseq);
|
|
|
|
snprintf(tmp, sizeof(tmp), "refer;id=%d", cseq);
|
|
|
|
add_header(&req, "Event", tmp);
|
|
|
|
add_header(&req, "Event", tmp);
|
|
|
|
add_header(&req, "Subscription-state", "terminated;reason=noresource");
|
|
|
|
add_header(&req, "Subscription-state", "terminated;reason=noresource");
|
|
|
|