[asterisk-commits] rizzo: trunk r47130 - /trunk/channels/chan_vpb.cc

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 3 11:16:20 MST 2006


Author: rizzo
Date: Fri Nov  3 12:16:20 2006
New Revision: 47130

URL: http://svn.digium.com/view/asterisk?rev=47130&view=rev
Log:
remove old/useless usecnt stuff.
I think this module doesn't compile, anyways, because
it has not been updated to the new module interface.


Modified:
    trunk/channels/chan_vpb.cc

Modified: trunk/channels/chan_vpb.cc
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_vpb.cc?rev=47130&r1=47129&r2=47130&view=diff
==============================================================================
--- trunk/channels/chan_vpb.cc (original)
+++ trunk/channels/chan_vpb.cc Fri Nov  3 12:16:20 2006
@@ -105,13 +105,10 @@
 
 /* Default language */
 static char language[MAX_LANGUAGE] = "";
-static int usecnt =0;
 
 static int gruntdetect_timeout = 3600000; /* Grunt detect timeout is 1hr. */
 
 static const int prefformat = AST_FORMAT_SLINEAR;
-
-AST_MUTEX_DEFINE_STATIC(usecnt_lock);
 
 /* Protect the interface list (of vpb_pvt's) */
 AST_MUTEX_DEFINE_STATIC(iflock);
@@ -2095,11 +2092,6 @@
 		p->vad = NULL;
 	}
 
-	ast_mutex_lock(&usecnt_lock); {
-		usecnt--;
-	} ast_mutex_unlock(&usecnt_lock);
-	ast_update_use_count();
-
 	if (option_verbose > 1)
 		ast_verbose(VERBOSE_PREFIX_2 "%s: Hangup complete\n", ast->name);
 
@@ -2686,10 +2678,6 @@
 		me->lastgrunt  = ast_tvnow(); /* Assume at least one grunt tone seen now. */
 		me->lastplay  = ast_tvnow(); /* Assume at least one grunt tone seen now. */
 
-		ast_mutex_lock(&usecnt_lock);
-		usecnt++;
-		ast_mutex_unlock(&usecnt_lock);
-		ast_update_use_count();
 		if (state != AST_STATE_DOWN) {
 			if ((me->mode != MODE_FXO)&&(state != AST_STATE_UP)){
 				vpb_answer(tmp);



More information about the asterisk-commits mailing list