Ejemplo n.º 1
0
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);
	}
}
Ejemplo n.º 2
0
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);
}
Ejemplo n.º 3
0
static int w_pl_drop_default(struct sip_msg* msg, char *p1, char *p2)
{
	return pl_drop(msg, 0, 0);
}
Ejemplo n.º 4
0
static int ki_pl_drop_range(sip_msg_t* msg, int rmin, int rmax)
{
	return pl_drop(msg, rmin, rmax);
}
Ejemplo n.º 5
0
static int ki_pl_drop_retry(sip_msg_t* msg, int rafter)
{
	return pl_drop(msg, rafter, rafter);
}
Ejemplo n.º 6
0
static int ki_pl_drop(sip_msg_t* msg)
{
	return pl_drop(msg, 0, 0);
}