[Asterisk-cvs] asterisk/channels chan_vpb.c,1.14,1.15

bkramer at lists.digium.com bkramer at lists.digium.com
Tue Mar 30 23:31:22 CST 2004


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

Modified Files:
	chan_vpb.c 
Log Message:
/ commit of a great deal of changes
/ tested these features using an OpenSwitch12
/   FXO=>FXS
/   FXS=>FXS
/   FXS=>FXO
/   FXO=>SIP 
/   Echo cancelation.


Index: chan_vpb.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_vpb.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- chan_vpb.c	26 Mar 2004 07:18:26 -0000	1.14
+++ chan_vpb.c	31 Mar 2004 04:29:55 -0000	1.15
@@ -33,22 +33,23 @@
 
 #include <vpbapi.h>
 
-
-#define DEFAULT_GAIN 1.0
+#define DEFAULT_GAIN 0
+#define DEFAULT_ECHO_CANCEL 1
+  
 #define VPB_SAMPLES 240 
 #define VPB_MAX_BUF VPB_SAMPLES*4 + AST_FRIENDLY_OFFSET
 
[...1935 lines suppressed...]
+		     
+		     vpb_close(p->handle);
+		     
+		     iflist = iflist->next;
+		     
+		     free(p);
+		}
+		iflist = NULL;
+	} ast_mutex_unlock(&iflock);
+	
+	ast_mutex_lock(&bridge_lock); {
+	     memset(bridges, 0, sizeof bridges);	     
+	} ast_mutex_unlock(&bridge_lock);
+	ast_mutex_destroy(&bridge_lock);
+	free(bridges);
+	
+	return 0;
 }
 
 int usecount()




More information about the svn-commits mailing list