[Asterisk-cvs] asterisk/channels/h323 ast_h323.cpp,1.53,1.54 chan_h323.h,1.22,1.23

jeremy at lists.digium.com jeremy at lists.digium.com
Sat Jul 17 15:52:28 CDT 2004


Update of /usr/cvsroot/asterisk/channels/h323
In directory localhost.localdomain:/tmp/cvs-serv19711/h323

Modified Files:
	ast_h323.cpp chan_h323.h 
Log Message:
actually implement the setting of noFastStart and noH245Tunneling.

Index: ast_h323.cpp
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/h323/ast_h323.cpp,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- ast_h323.cpp	27 Jun 2004 20:06:44 -0000	1.53
+++ ast_h323.cpp	17 Jul 2004 19:38:30 -0000	1.54
@@ -62,7 +62,7 @@
 
 /** Options for connections creation */
 BOOL	noFastStart = TRUE;
-BOOL	noH245Tunnelling;
+BOOL	noH245Tunneling;
 BOOL	noSilenceSuppression;
 
 /**
@@ -479,7 +479,7 @@
 	if (noFastStart)
 		options |= H323Connection::FastStartOptionDisable;
 
-	if (noH245Tunnelling)
+	if (noH245Tunneling)
 		options |= H323Connection::H245TunnelingOptionDisable;
 
 	return new MyH323Connection(*this, callReference, options);
@@ -816,9 +816,13 @@
 	return 1;
 }
     
-void h323_end_point_create(void)
+void h323_end_point_create(int no_fast_start, int no_h245_tunneling)
 {
 	channelsOpen = 0;
+	
+	noFastStart = (BOOL)no_fast_start;
+	noH245Tunneling = (BOOL)no_h245_tunneling;
+
 	localProcess = new MyProcess();	
 	localProcess->Main();
 }
@@ -1103,12 +1107,14 @@
 {
 	int res;
 	PString	token;
+	PString dest(host);
 
 	if (!h323_end_point_exist()) {
 		return 1;
 	}
 	
-	PString dest(host);
+	noFastStart = 	call_options.noFastStart;
+	noH245Tunneling = call_options.noH245Tunneling;
 
 	res = endPoint->MakeCall(dest, token, &cd->call_reference, call_options.port, call_options.callerid, call_options.callername);
 	memcpy((char *)(cd->call_token), (const unsigned char *)token, token.GetLength());

Index: chan_h323.h
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/h323/chan_h323.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- chan_h323.h	26 Jun 2004 03:50:14 -0000	1.22
+++ chan_h323.h	17 Jul 2004 19:38:30 -0000	1.23
@@ -57,16 +57,16 @@
 struct oh323_peer {
 	char name[80];
 	char context[80];
-	int	noFastStart;
-	int	noH245Tunneling;
-	int	noSilenceSuppression;
-	int inUse;
-	int outgoinglimit;
-	int bridge;
-	int nat;
-	int dtmfmode;
-	struct sockaddr_in addr;
+	int  noFastStart;
+	int  noH245Tunneling;
+	int  noSilenceSuppression;
+	int  inUse;
+	int  outgoinglimit;
+	int  bridge;
+	int  nat;
+	int  dtmfmode;
 	int delme;
+	struct sockaddr_in addr;
 	struct oh323_peer *next;
 };
 
@@ -88,7 +88,7 @@
 	char		*callerid;
 	char		*callername;
 	int	  	noFastStart;
-	int		noH245Tunnelling;
+	int		noH245Tunneling;
 	int		noSilenceSuppression;
 	unsigned int	port;
 } call_options_t;
@@ -98,7 +98,6 @@
 	asterisk channels to acutal h.323 connections */
 typedef struct call_details {	
 	unsigned int call_reference;
-
 	const char *call_token;				
 	const char *call_source_aliases;
 	const char *call_dest_alias;
@@ -167,7 +166,7 @@
 #endif   
     
 	void h323_gk_urq(void);
-	void h323_end_point_create(void);
+	void h323_end_point_create(int, int);
 	void h323_end_process(void);
 	int  h323_end_point_exist(void);
     




More information about the svn-commits mailing list