osptoolkit.h 2.6 KB

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