} else {
if (!p->pendinginvite) {
/* Send a hangup */
- transmit_request_with_auth(p, "BYE", 0, 0);
+ transmit_request_with_auth(p, "BYE", 0, 1);
} else {
/* Note we will need a BYE when this all settles out
but we can't send one while we have "INVITE" outstanding. */
transmit_request(p, "ACK", seqno, 0);
/* Go ahead and send bye at this point */
if (p->pendingbye) {
- transmit_request_with_auth(p, "BYE", 0, 0);
+ transmit_request_with_auth(p, "BYE", 0, 1);
p->needdestroy = 1;
}
} else if (!strcasecmp(msg, "REGISTER")) {
}
}
/* Always increment on a BYE */
- transmit_request_with_auth(p, "BYE", 0, 0);
+ transmit_request_with_auth(p, "BYE", 0, 1);
p->alreadygone = 1;
}
} else if (!strcasecmp(cmd, "CANCEL")) {