p->invitestate = INV_CALLING;
/* Initialize auto-congest time */
- ast_sched_del(sched, p->initid);
- p->initid = ast_sched_add(sched, p->timer_b, auto_congest, dialog_ref(p));
+ AST_SCHED_REPLACE(p->initid, sched, p->timer_b, auto_congest, dialog_ref(p));
}
return res;
if (p->stateid > -1)
ast_extension_state_del(p->stateid, NULL);
- ast_sched_del(sched, p->initid);
+ AST_SCHED_DEL(sched, p->initid);
AST_SCHED_DEL(sched, p->waitid);
AST_SCHED_DEL(sched, p->autokillid);
/* Acknowledge sequence number - This only happens on INVITE from SIP-call */
/* Don't auto congest anymore since we've gotten something useful back */
- ast_sched_del(sched, p->initid);
+ AST_SCHED_DEL(sched, p->initid);
/* RFC3261 says we must treat every 1xx response (but not 100)
that we don't recognize as if it was 183.