[Asterisk-cvs] asterisk/include/asterisk astosp.h,NONE,1.1 causes.h,1.4,1.5 utils.h,1.3,1.4

markster at lists.digium.com markster at lists.digium.com
Fri Jun 25 00:13:14 CDT 2004


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv7117/include/asterisk

Modified Files:
	causes.h utils.h 
Added Files:
	astosp.h 
Log Message:
Add outgoing OSP support (SIP only at this point)


--- NEW FILE: astosp.h ---
/*
 * Asterisk -- A telephony toolkit for Linux.
 *
 * OSP support
 * 
 * Copyright (C) 1999, Mark Spencer
 *
 * Mark Spencer <markster at 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

Index: causes.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/causes.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- causes.h	28 Apr 2004 18:09:00 -0000	1.4
+++ causes.h	25 Jun 2004 03:59:07 -0000	1.5
@@ -20,5 +20,6 @@
 #define AST_CAUSE_FAILURE	3
 #define AST_CAUSE_CONGESTION	4
 #define AST_CAUSE_UNALLOCATED	5
+#define AST_CAUSE_NOANSWER		6
 
 #endif

Index: utils.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/utils.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- utils.h	22 Jun 2004 17:42:14 -0000	1.3
+++ utils.h	25 Jun 2004 03:59:07 -0000	1.4
@@ -25,7 +25,10 @@
 };
 
 extern struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp);
+extern int ast_base64encode(char *dst, unsigned char *src, int srclen, int max);
+extern int ast_base64decode(unsigned char *dst, char *src, int max);
 
 extern int test_for_thread_safety(void);
+extern int ast_utils_init(void);
 
 #endif




More information about the svn-commits mailing list