sr_compat.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (C) 2008 iptelorg GmbH
  3. *
  4. * Permission to use, copy, modify, and distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. /**
  17. * @file
  18. * @brief ser/kamailio/openser compatibility macros & vars.
  19. */
  20. /*
  21. * History:
  22. * --------
  23. * 2008-11-29 initial version (andrei)
  24. */
  25. #ifndef _sr_compat_h
  26. #define _sr_compat_h
  27. /** max compat mode: support as many features as possible from all xSERs */
  28. #define SR_COMPAT_MAX 0
  29. /** maximum compatibility mode with ser */
  30. #define SR_COMPAT_SER 1
  31. /** maximum compatibility mode with kamailio/openser */
  32. #define SR_COMPAT_KAMAILIO 2
  33. #define SR_COMPAT_OPENSER 2
  34. extern int sr_compat;
  35. extern int sr_cfg_compat;
  36. #endif /* _sr_compat_h */