Beispiel #1
0
static int w_rl_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 rl_drop(msg, low, low);
	} else {
		return rl_drop(msg, low, high);
	}
}
Beispiel #2
0
static int w_rl_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 rl_drop(msg, i, i);
}
Beispiel #3
0
static int w_rl_drop(struct sip_msg* msg, char *p1, char *p2) 
{
	int low, high;

	LOG(L_DBG, "w_rl_drop (%p, %p)\n", p1, p2);

	if (!p1 || get_int_fparam(&low, msg, (fparam_t *)p1) < 0) {
		LOG(L_DBG, "using default low retry interval\n");
		low = 5;
	}

	if (!p2 || get_int_fparam(&high, msg, (fparam_t *)p2) < 0) {
		LOG(L_DBG, "using default high retry interval\n");
		high = low;
	}

	return rl_drop(msg, low, high);
}
Beispiel #4
0
static int w_rl_drop_default(struct sip_msg* msg, char *p1, char *p2)
{
	return rl_drop(msg, 0, 0);
}