Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

astosp.h

Go to the documentation of this file.
00001 /* 00002 * Asterisk -- A telephony toolkit for Linux. 00003 * 00004 * OSP support 00005 * 00006 * Copyright (C) 1999, Mark Spencer 00007 * 00008 * Mark Spencer <markster@linux-support.net> 00009 * 00010 * This program is free software, distributed under the terms of 00011 * the GNU General Public License 00012 */ 00013 00014 #ifndef _ASTERISK_OSP_H 00015 #define _ASTERISK_OSP_H 00016 #include <asterisk/channel.h> 00017 #include <netinet/in.h> 00018 #include <time.h> 00019 00020 struct ast_osp_result { 00021 int handle; 00022 int numresults; 00023 char tech[20]; 00024 char dest[256]; 00025 char token[4096]; 00026 }; 00027 00028 /* Note: Channel will be auto-serviced if specified. Returns -1 on hangup, 00029 0 if nothing found, or 1 if something is found */ 00030 int ast_osp_lookup(struct ast_channel *chan, char *provider, char *extension, char *callerid, struct ast_osp_result *result); 00031 00032 int ast_osp_next(struct ast_osp_result *result, int cause); 00033 00034 int ast_osp_terminate(int handle, int cause, time_t start, time_t duration); 00035 00036 int ast_osp_validate(char *provider, char *token, int *handle, unsigned int *timeout, char *callerid, struct in_addr addr, char *extension); 00037 00038 #endif

Generated on Fri Sep 24 21:03:46 2004 for Asterisk by doxygen 1.3.8