Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 124966) +++ channels/chan_sip.c (working copy) @@ -4324,7 +4324,7 @@ /* Destroy Session-Timers if allocated */ if (p->stimer) { if (p->stimer->st_active == TRUE && p->stimer->st_schedid > -1) - ast_sched_del(sched, p->stimer->st_schedid); + AST_SCHED_DEL(sched, p->stimer->st_schedid); ast_free(p->stimer); } @@ -14989,7 +14989,7 @@ case 423: /* Interval too brief */ r->expiry = atoi(get_header(req, "Min-Expires")); ast_log(LOG_WARNING, "Got 423 Interval too brief for service %s@%s, minimum is %d seconds\n", p->registry->username, p->registry->hostname, r->expiry); - ast_sched_del(sched, r->timeout); + AST_SCHED_DEL(sched, r->timeout); r->timeout = -1; if (r->call) { r->call = NULL; @@ -18594,7 +18594,7 @@ if (p->stimer->st_active == TRUE) { p->stimer->st_active = FALSE; - ast_sched_del(sched, p->stimer->st_schedid); + AST_SCHED_DEL(sched, p->stimer->st_schedid); ast_debug(2, "Session timer stopped: %d - %s\n", p->stimer->st_schedid, p->callid); } }