sr_compat.h 1.3 KB

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