static int w_pl_drop(struct sip_msg* msg, char *p1, char *p2) { unsigned int low, high; low = (unsigned int)(unsigned long)p1; high = (unsigned int)(unsigned long)p2; if (high < low) { return pl_drop(msg, low, low); } else { return pl_drop(msg, low, high); } }
static int w_pl_drop_forced(struct sip_msg* msg, char *p1, char *p2) { unsigned int i; if (p1) { i = (unsigned int)(unsigned long)p1; LM_DBG("send retry in %d s\n", i); } else { i = 5; LM_DBG("send default retry in %d s\n", i); } return pl_drop(msg, i, i); }
static int w_pl_drop_default(struct sip_msg* msg, char *p1, char *p2) { return pl_drop(msg, 0, 0); }
static int ki_pl_drop_range(sip_msg_t* msg, int rmin, int rmax) { return pl_drop(msg, rmin, rmax); }
static int ki_pl_drop_retry(sip_msg_t* msg, int rafter) { return pl_drop(msg, rafter, rafter); }
static int ki_pl_drop(sip_msg_t* msg) { return pl_drop(msg, 0, 0); }