modules_s/cpl-c/cpl_env.h

00001 /*
00002  * $Id$
00003  *
00004  * Copyright (C) 2001-2003 FhG Fokus
00005  *
00006  * This file is part of ser, a free SIP server.
00007  *
00008  * ser is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version
00012  *
00013  * For a license to use the ser software under conditions
00014  * other than those described here, or to purchase support for this
00015  * software, please contact iptel.org by e-mail at the following addresses:
00016  *    info@iptel.org
00017  *
00018  * ser is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  * GNU General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU General Public License
00024  * along with this program; if not, write to the Free Software
00025  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026  *
00027  * History
00028  * 11-06-1004:  created (bogdan)
00029  */
00030 
00031 #ifndef _CPL_C_ENV_H
00032 #define _CPL_C_ENV_H
00033 
00034 #include "../../str.h"
00035 #include "../../usr_avp.h"
00036 #include "../../modules/sl/sl.h"
00037 #include "../usrloc/usrloc.h"
00038 #include "../../modules/tm/tm_load.h"
00039 
00040 struct cpl_enviroment {
00041         char  *log_dir;         /* dir where the user log should be dumped */
00042         int    proxy_recurse;   /* numbers of proxy redirection accepted */
00043         int    proxy_route;     /* script route to be run before proxy */
00044         int    nat_flag;        /* flag for marking looked up contact as NAT */
00045         int    case_sensitive;  /* is user part case sensitive ? */
00046         str    realm_prefix;    /* domain prefix to be ignored */
00047         int    cmd_pipe[2];     /* communication pipe with aux. process */
00048         str    orig_tz;         /* a copy of the original TZ; kept as a null
00049                              * terminated string in "TZ=value" format;
00050                              * used only by run_time_switch */
00051         udomain_t*  lu_domain;  /* domain used for lookup */
00052         int lu_append_branches; /* how many branches lookup should add */
00053         int timer_avp_type;     /* specs - type and name - of the timer AVP */
00054         int_str timer_avp;
00055 };
00056 
00057 
00058 struct cpl_functions {
00059         struct tm_binds tmb;     /* Structure with pointers to tm funcs */
00060         usrloc_api_t ulb;        /* Structure with pointers to usrloc funcs */
00061         sl_api_t slb;            /* sl module functions */
00062 };
00063 
00064 extern struct cpl_enviroment cpl_env;
00065 extern struct cpl_functions  cpl_fct;
00066 
00067 #endif
00068 
00069