dect
/
asterisk
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
asterisk/include/asterisk/astosp.h

39 lines
1.0 KiB
C
Executable File

/*
* Asterisk -- A telephony toolkit for Linux.
*
* OSP support
*
* Copyright (C) 1999, Mark Spencer
*
* Mark Spencer <markster@linux-support.net>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#ifndef _ASTERISK_OSP_H
#define _ASTERISK_OSP_H
#include <asterisk/channel.h>
#include <netinet/in.h>
#include <time.h>
struct ast_osp_result {
int handle;
int numresults;
char tech[20];
char dest[256];
char token[4096];
};
/* Note: Channel will be auto-serviced if specified. Returns -1 on hangup,
0 if nothing found, or 1 if something is found */
int ast_osp_lookup(struct ast_channel *chan, char *provider, char *extension, char *callerid, struct ast_osp_result *result);
int ast_osp_next(struct ast_osp_result *result, int cause);
int ast_osp_terminate(int handle, int cause, time_t start, time_t duration);
int ast_osp_validate(char *provider, char *token, int *handle, unsigned int *timeout, char *callerid, struct in_addr addr, char *extension);
#endif