cpl_env.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * $Id$
  3. *
  4. * Copyright (C) 2001-2003 FhG Fokus
  5. *
  6. * This file is part of Kamailio, a free SIP server.
  7. *
  8. * Kamailio 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. * Kamailio is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. *
  22. * History:
  23. * --------
  24. * 11-06-1004: created (bogdan)
  25. */
  26. #ifndef _CPL_C_ENV_H
  27. #define _CPL_C_ENV_H
  28. #include "../../str.h"
  29. #include "../../usr_avp.h"
  30. #include "../usrloc/usrloc.h"
  31. #include "../../modules/tm/tm_load.h"
  32. #include "../../modules/sl/sl.h"
  33. struct cpl_enviroment {
  34. char *log_dir; /* dir where the user log should be dumped */
  35. int proxy_recurse; /* numbers of proxy redirection accepted */
  36. int proxy_route; /* script route to be run before proxy */
  37. int case_sensitive; /* is user part case sensitive ? */
  38. str realm_prefix; /* domain prefix to be ignored */
  39. int cmd_pipe[2]; /* communication pipe with aux. process */
  40. str orig_tz; /* a copy of the original TZ; kept as a null
  41. * terminated string in "TZ=value" format;
  42. * used only by run_time_switch */
  43. udomain_t* lu_domain; /* domain used for lookup */
  44. int lu_append_branches; /* how many branches lookup should add */
  45. int timer_avp_type; /* specs - type and name - of the timer AVP */
  46. int_str timer_avp;
  47. int use_domain;
  48. };
  49. struct cpl_functions {
  50. struct tm_binds tmb; /* Structure with pointers to tm funcs */
  51. usrloc_api_t ulb; /* Structure with pointers to usrloc funcs */
  52. sl_api_t slb; /* Structure with pointers to sl funcs */
  53. };
  54. extern struct cpl_enviroment cpl_env;
  55. extern struct cpl_functions cpl_fct;
  56. #endif