osptoolkit.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_OSPTOOLKIT_H_
  31. #define _OSP_MOD_OSPTOOLKIT_H_
  32. #include <osp/osp.h>
  33. /*
  34. * This module implements help functions for the OSP toolkit.
  35. * Some of the functions maybe impemented by the toolkit in the future.
  36. */
  37. /*
  38. * Returns the OSP transaction id generated by the server. The id is
  39. * returned in the Authorization Response and also packaged in the token.
  40. */
  41. unsigned long long ospGetTransactionId(OSPTTRANHANDLE transaction);
  42. void ospReportUsageWrapper(
  43. OSPTTRANHANDLE ospvTransaction, /* In - Transaction handle */
  44. unsigned ospvReleaseCode, /* In - Release code */
  45. unsigned ospvDuration, /* In - Length of call */
  46. time_t ospvStartTime, /* In - Call start time */
  47. time_t ospvEndTime, /* In - Call end time */
  48. time_t ospvAlertTime, /* In - Call alert time */
  49. time_t ospvConnectTime, /* In - Call connect time */
  50. unsigned ospvIsPDDInfoPresent, /* In - Is PDD Info present */
  51. unsigned ospvPostDialDelay, /* In - Post Dial Delay */
  52. unsigned ospvReleaseSource /* In - EP that released the call */
  53. );
  54. #endif /* _OSP_MOD_OSPTOOLKIT_H_ */