cpl_env.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * $Id$
  3. *
  4. * Copyright (C) 2001-2003 FhG Fokus
  5. *
  6. * This file is part of ser, a free SIP server.
  7. *
  8. * ser is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version
  12. *
  13. * For a license to use the ser software under conditions
  14. * other than those described here, or to purchase support for this
  15. * software, please contact iptel.org by e-mail at the following addresses:
  16. * [email protected]
  17. *
  18. * ser is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program; if not, write to the Free Software
  25. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  26. *
  27. * History
  28. * 11-06-1004: created (bogdan)
  29. */
  30. #ifndef _CPL_C_ENV_H
  31. #define _CPL_C_ENV_H
  32. #include "../../str.h"
  33. #include "../../usr_avp.h"
  34. #include "../../modules/sl/sl.h"
  35. #include "../usrloc/usrloc.h"
  36. #include "../../modules/tm/tm_load.h"
  37. struct cpl_enviroment {
  38. char *log_dir; /* dir where the user log should be dumped */
  39. int proxy_recurse; /* numbers of proxy redirection accepted */
  40. int proxy_route; /* script route to be run before proxy */
  41. int nat_flag; /* flag for marking looked up contact as NAT */
  42. int case_sensitive; /* is user part case sensitive ? */
  43. str realm_prefix; /* domain prefix to be ignored */
  44. int cmd_pipe[2]; /* communication pipe with aux. process */
  45. str orig_tz; /* a copy of the original TZ; kept as a null
  46. * terminated string in "TZ=value" format;
  47. * used only by run_time_switch */
  48. udomain_t* lu_domain; /* domain used for lookup */
  49. int lu_append_branches; /* how many branches lookup should add */
  50. int timer_avp_type; /* specs - type and name - of the timer AVP */
  51. int_str timer_avp;
  52. };
  53. struct cpl_functions {
  54. struct tm_binds tmb; /* Structure with pointers to tm funcs */
  55. usrloc_api_t ulb; /* Structure with pointers to usrloc funcs */
  56. sl_api_t slb; /* sl module functions */
  57. };
  58. extern struct cpl_enviroment cpl_env;
  59. extern struct cpl_functions cpl_fct;
  60. #endif