modules_s/osp/osptoolkit.h

00001 /*
00002  * ser osp module. 
00003  *
00004  * This module enables ser to communicate with an Open Settlement 
00005  * Protocol (OSP) server.  The Open Settlement Protocol is an ETSI 
00006  * defined standard for Inter-Domain VoIP pricing, authorization
00007  * and usage exchange.  The technical specifications for OSP 
00008  * (ETSI TS 101 321 V4.1.1) are available at www.etsi.org.
00009  *
00010  * Uli Abend was the original contributor to this module.
00011  * 
00012  * Copyright (C) 2001-2005 Fhg Fokus
00013  *
00014  * This file is part of ser, a free SIP server.
00015  *
00016  * ser is free software; you can redistribute it and/or modify
00017  * it under the terms of the GNU General Public License as published by
00018  * the Free Software Foundation; either version 2 of the License, or
00019  * (at your option) any later version
00020  *
00021  * For a license to use the ser software under conditions
00022  * other than those described here, or to purchase support for this
00023  * software, please contact iptel.org by e-mail at the following addresses:
00024  *    info@iptel.org
00025  *
00026  * ser is distributed in the hope that it will be useful,
00027  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00028  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00029  * GNU General Public License for more details.
00030  *
00031  * You should have received a copy of the GNU General Public License
00032  * along with this program; if not, write to the Free Software
00033  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00034  */
00035 
00036 #ifndef _OSP_MOD_OSPTOOLKIT_H_
00037 #define _OSP_MOD_OSPTOOLKIT_H_
00038 
00039 #include <osp/osp.h>
00040 
00041 /* 
00042  * This module implements help functions for the OSP toolkit.
00043  * Some of the functions maybe impemented by the toolkit in the future.
00044  */
00045 
00046 /* 
00047  * Returns the OSP transaction id generated by the server.  The id is
00048  * returned in the Authorization Response and also packaged in the token.
00049  */
00050 unsigned long long ospGetTransactionId(OSPTTRANHANDLE transaction);
00051 void ospReportUsageWrapper(
00052     OSPTTRANHANDLE ospvTransaction,     /* In - Transaction handle */
00053     unsigned ospvReleaseCode,           /* In - Release code */
00054     unsigned ospvDuration,              /* In - Length of call */
00055     time_t ospvStartTime,               /* In - Call start time */
00056     time_t ospvEndTime,                 /* In - Call end time */
00057     time_t ospvAlertTime,               /* In - Call alert time */
00058     time_t ospvConnectTime,             /* In - Call connect time */
00059     unsigned ospvIsPDDInfoPresent,      /* In - Is PDD Info present */
00060     unsigned ospvPostDialDelay,         /* In - Post Dial Delay */
00061     unsigned ospvReleaseSource          /* In - EP that released the call */
00062 );
00063 
00064 #endif /* _OSP_MOD_OSPTOOLKIT_H_ */
00065