[Asterisk-cvs] asterisk/include/asterisk causes.h, 1.6, 1.7 channel.h, 1.59, 1.60

markster at lists.digium.com markster at lists.digium.com
Tue Oct 26 18:22:19 CDT 2004


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

Modified Files:
	causes.h channel.h 
Log Message:
Pass concept of status back, permit "leaveempty" to work with static agents who are not loggedon (bug #2719)


Index: causes.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/causes.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- causes.h	12 Aug 2004 22:09:18 -0000	1.6
+++ causes.h	26 Oct 2004 22:25:43 -0000	1.7
@@ -66,6 +66,8 @@
 #define AST_CAUSE_NORMAL 						AST_CAUSE_NORMAL_CLEARING
 #define AST_CAUSE_NOANSWER	 					AST_CAUSE_NO_ANSWER
 #define AST_CAUSE_CONGESTION	 				AST_CAUSE_NORMAL_CIRCUIT_CONGESTION
+#define AST_CAUSE_UNREGISTERED					AST_CAUSE_NO_ROUTE_DESTINATION
 #define AST_CAUSE_NOTDEFINED 					0
+#define AST_CAUSE_NOSUCHDRIVER					AST_CAUSE_CHAN_NOT_IMPLEMENTED
 
 #endif

Index: channel.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/channel.h,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- channel.h	24 Oct 2004 02:53:24 -0000	1.59
+++ channel.h	26 Oct 2004 22:25:43 -0000	1.60
@@ -377,7 +377,7 @@
  * by the low level module
  * Returns an ast_channel on success, NULL on failure.
  */
-struct ast_channel *ast_request(const char *type, int format, void *data);
+struct ast_channel *ast_request(const char *type, int format, void *data, int *status);
 
 //! Search the Channels by Name
 /*!
@@ -427,11 +427,11 @@
  * Returns 0 on success, -1 on failure.
  */
 int ast_channel_register(const char *type, const char *description, int capabilities, 
-			struct ast_channel* (*requester)(const char *type, int format, void *data));
+			struct ast_channel* (*requester)(const char *type, int format, void *data, int *cause));
 
 /* Same like the upper function but with support for devicestate */
 int ast_channel_register_ex(const char *type, const char *description, int capabilities,
-		struct ast_channel *(*requester)(const char *type, int format, void *data),
+		struct ast_channel *(*requester)(const char *type, int format, void *data, int *cause),
 		int (*devicestate)(void *data));
 
 //! Unregister a channel class




More information about the svn-commits mailing list