diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-25 03:59:07 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-25 03:59:07 +0000 |
commit | 96c27903b13f3789f60fb8299eace827ca4ff3d6 (patch) | |
tree | 10ec669a31a880a3a24a8a842bec640b09caeac5 /include/asterisk/astosp.h | |
parent | 461824ef0bcd514c3678e297c76010cd3e316f1d (diff) |
Add outgoing OSP support (SIP only at this point)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3296 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/astosp.h')
-rwxr-xr-x | include/asterisk/astosp.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/asterisk/astosp.h b/include/asterisk/astosp.h new file mode 100755 index 000000000..92eeab82f --- /dev/null +++ b/include/asterisk/astosp.h @@ -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 |