00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _ASTERISK_OSP_H
00024 #define _ASTERISK_OSP_H
00025
00026 #include "asterisk/channel.h"
00027 #include <netinet/in.h>
00028 #include <time.h>
00029
00030 struct ast_osp_result {
00031 int handle;
00032 int numresults;
00033 char tech[20];
00034 char dest[256];
00035 char token[4096];
00036 };
00037
00038
00039
00040 int ast_osp_lookup(struct ast_channel *chan, char *provider, char *extension, char *callerid, struct ast_osp_result *result);
00041
00042 int ast_osp_next(struct ast_osp_result *result, int cause);
00043
00044 int ast_osp_terminate(int handle, int cause, time_t start, time_t duration);
00045
00046 int ast_osp_validate(char *provider, char *token, int *handle, unsigned int *timeout, char *callerid, struct in_addr addr, char *extension);
00047
00048 #endif