append_history(pkt->owner, "XmitErr", "%s", pkt->is_fatal ? "(Critical)" : "(Non-critical)");
return AST_FAILURE;
} else {
- /* Schedule retransmission */
- pkt->retransid = ast_sched_add_variable(sched, siptimer_a, retrans_pkt, pkt, 1);
return AST_SUCCESS;
}
}
if (sipdebug)
ast_debug(4, "** SIP TIMER: Cancelling retransmit of packet (reply received) Retransid #%d\n", cur->retransid);
}
+ AST_SCHED_DEL(sched, cur->retransid);
UNLINK(cur, p->packets, prev);
dialog_unref(cur->owner);
ast_free(cur);