mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 06:18:38 +00:00
Add outgoing OSP support (SIP only at this point)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
35
include/asterisk/astosp.h
Executable file
35
include/asterisk/astosp.h
Executable file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* 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 <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);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user