learn how you can contribute by acting as a bug marshall
please see:
- http://www.digium.com/index.php?menu=bugguidelines
+ http://www.asterisk.org/developers/bug-guidelines
If you would like to submit a feature request, please
resist the temptation to post it to the bug tracker.
return -1;
}
fwh = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
- if (!fwh) {
+ if (fwh == (void *) -1) {
ast_log(LOG_WARNING, "mmap failed: %s\n", strerror(errno));
close(fd);
return -1;
if (!ignore)
sip_cancel_destroy(p);
check_pendings(p);
+ ast_set_flag(p, SIP_CAN_BYE);
break;
case 180: /* 180 Ringing */
if (!ignore)
} else if (p->owner) {
ast_queue_hangup(p->owner);
if (option_debug > 2)
- ast_log(LOG_DEBUG, "Received bye, issuing owner hangup\n.");
+ ast_log(LOG_DEBUG, "Received bye, issuing owner hangup\n");
} else {
ast_set_flag(p, SIP_NEEDDESTROY);
if (option_debug > 2)
- ast_log(LOG_DEBUG, "Received bye, no owner, selfdestruct soon.\n.");
+ ast_log(LOG_DEBUG, "Received bye, no owner, selfdestruct soon.\n");
}
transmit_response(p, "200 OK", req);