osp_mod.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Kamailio osp module.
  3. *
  4. * This module enables Kamailio 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 Kamailio, a free SIP server.
  15. *
  16. * Kamailio 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. * Kamailio is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU General Public License
  27. * along with this program; if not, write to the Free Software
  28. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  29. */
  30. #ifndef _OSP_MOD_H_
  31. #define _OSP_MOD_H_
  32. #define MODULE_RETURNCODE_TRUE 1
  33. #define MODULE_RETURNCODE_STOPROUTE 0
  34. #define MODULE_RETURNCODE_FALSE -1
  35. #define MODULE_RETURNCODE_ERROR -2
  36. #define OSP_DEF_SPS 16
  37. #define OSP_DEF_WEIGHT 1000
  38. #define OSP_DEF_HW 0
  39. #define OSP_DEF_CALLID 1 /* Validate call ids, set to 0 to disable */
  40. #define OSP_DEF_TOKEN 2
  41. #define OSP_DEF_SSLLIFE 300
  42. #define OSP_DEF_PERSISTENCE (60 * 1000)
  43. #define OSP_DEF_DELAY 0
  44. #define OSP_DEF_RETRY 2
  45. #define OSP_DEF_TIMEOUT (60 * 1000)
  46. #define OSP_DEF_DESTS 5
  47. #define OSP_DEF_USERPID 1
  48. #define OSP_DEF_REDIRURI 0 /* 0 for "[email protected]", 1 for "<[email protected]>" format */
  49. #define OSP_DEF_SNIDAVP "$avp(s:_osp_source_networkid_)"
  50. #define OSP_KEYBUF_SIZE 256
  51. #define OSP_STRBUF_SIZE 256
  52. #define OSP_E164BUF_SIZE 1024
  53. #define OSP_TOKENBUF_SIZE 2048
  54. #define OSP_HEADERBUF_SIZE 3072
  55. #endif /* _OSP_MOD_H_ */