if (!ignore && p)
p->lastinvite = seqno;
- if (p) {
+ if (p && !p->needdestroy) {
if (!(p->expiry = atoi(get_header(req, "Expires")))) {
transmit_response(p, "200 OK", req);
p->needdestroy = 1;
strncpy(c->exten, "i", sizeof(c->exten)-1);
c->priority = 1;
} else {
- ast_log(LOG_WARNING, "Invalid extension, but no rule 'i' in context '%s'\n", c->context);
+ ast_log(LOG_WARNING, "Invalid extension '%s', but no rule 'i' in context '%s'\n", exten, c->context);
goto out;
}
} else {
}
callerid = l;
ast_mutex_lock(&osplock);
- ast_inet_ntoa(ip, sizeof(ip), addr));
+ ast_inet_ntoa(ip, sizeof(ip), addr);
osp = providers;
while(osp) {
if (!strcasecmp(osp->name, provider)) {