Ejemplo n.º 1
0
Archivo: dialog.c Proyecto: ryzhov/ATS0
static int w_validate_dialog(struct sip_msg *req)
{
	struct dlg_cell *dlg;

	dlg = get_current_dialog();
	if (dlg==NULL)
	{
		LM_ERR("null dialog\n");
		return -1;
	}

	if (dlg_validate_dialog( req, dlg )!=0)
		return -1;

	return 1;
}
Ejemplo n.º 2
0
static int w_validate_dialog(struct sip_msg *req)
{
	struct dlg_cell *dlg;
	int ret;

	dlg = get_current_dialog();
	if (dlg==NULL)
	{
		LM_ERR("null dialog\n");
		return -4;
	}

	ret = dlg_validate_dialog(req,dlg);

	if (ret == 0)
		ret = 1;

	return ret;
}