osp_mod.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * ser osp module.
  3. *
  4. * This module enables ser to communicate with an Open Settlement
  5. * Protocol (OSP) server. The Open Settlement Protocol is an ETSI
  6. * defined standard for Inter-Domain VoIP pricing, authorization
  7. * and usage exchange. The technical specifications for OSP
  8. * (ETSI TS 101 321 V4.1.1) are available at www.etsi.org.
  9. *
  10. * Uli Abend was the original contributor to this module.
  11. *
  12. * Copyright (C) 2001-2005 Fhg Fokus
  13. *
  14. * This file is part of ser, a free SIP server.
  15. *
  16. * ser is free software; you can redistribute it and/or modify
  17. * it under the terms of the GNU General Public License as published by
  18. * the Free Software Foundation; either version 2 of the License, or
  19. * (at your option) any later version
  20. *
  21. * For a license to use the ser software under conditions
  22. * other than those described here, or to purchase support for this
  23. * software, please contact iptel.org by e-mail at the following addresses:
  24. * [email protected]
  25. *
  26. * ser is distributed in the hope that it will be useful,
  27. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29. * GNU General Public License for more details.
  30. *
  31. * You should have received a copy of the GNU General Public License
  32. * along with this program; if not, write to the Free Software
  33. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  34. */
  35. #ifndef _OSP_MOD_H_
  36. #define _OSP_MOD_H_
  37. #define MODULE_RETURNCODE_TRUE 1
  38. #define MODULE_RETURNCODE_STOPROUTE 0
  39. #define MODULE_RETURNCODE_FALSE -1
  40. #define OSP_DEF_SPS 16
  41. #define OSP_DEF_WEIGHT 1000
  42. #define OSP_DEF_HW 0
  43. #define OSP_DEF_CALLID 1 /* Validate call ids, set to 0 to disable */
  44. #define OSP_DEF_TOKEN 2
  45. #define OSP_DEF_SSLLIFE 300
  46. #define OSP_DEF_PERSISTENCE (60 * 1000)
  47. #define OSP_DEF_DELAY 0
  48. #define OSP_DEF_RETRY 2
  49. #define OSP_DEF_TIMEOUT (60 * 1000)
  50. #define OSP_DEF_DESTS 5
  51. #define OSP_DEF_USERPID 1
  52. #define OSP_DEF_REDIRURI 0 /* 0 for "[email protected]", 1 for "<[email protected]>" format */
  53. #define OSP_KEYBUF_SIZE 256
  54. #define OSP_STRBUF_SIZE 256
  55. #define OSP_E164BUF_SIZE 1024
  56. #define OSP_TOKENBUF_SIZE 2048
  57. #define OSP_HEADERBUF_SIZE 3072
  58. #endif /* _OSP_MOD_H_ */