[Asterisk-cvs] asterisk/channels chan_vpb.c,1.35,1.36

bkramer at lists.digium.com bkramer at lists.digium.com
Thu Aug 19 23:09:25 CDT 2004


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

Modified Files:
	chan_vpb.c 
Log Message:
/ check so as not to enable loo-drop on FXS


Index: chan_vpb.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_vpb.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- chan_vpb.c	18 Aug 2004 23:58:07 -0000	1.35
+++ chan_vpb.c	20 Aug 2004 02:55:29 -0000	1.36
@@ -1499,9 +1499,11 @@
 	if (option_verbose > 3)
 			ast_verbose(VERBOSE_PREFIX_4 "%s: Answering channel\n",p->dev);
 
-	if (option_verbose > 4)
-			ast_verbose("%s: Disabling Loop Drop detection\n",p->dev);
-	vpb_disable_event(p->handle, VPB_MDROP);
+	if (p->mode == MODE_FXO){
+		if (option_verbose > 4)
+				ast_verbose("%s: Disabling Loop Drop detection\n",p->dev);
+		vpb_disable_event(p->handle, VPB_MDROP);
+	}
 
 	if (ast->_state != AST_STATE_UP) {
 		if (p->mode == MODE_FXO){
@@ -1540,9 +1542,11 @@
 	//	ast_verbose("%s: unLOCKING in answer [%d]\n", p->dev,res);
 	}
 	vpb_sleep(500);
-	if (option_verbose > 4)
-			ast_verbose("%s: Re-enabling Loop Drop detection\n",p->dev);
-	vpb_enable_event(p->handle,VPB_MDROP);
+	if (p->mode == MODE_FXO){
+		if (option_verbose > 4)
+				ast_verbose("%s: Re-enabling Loop Drop detection\n",p->dev);
+		vpb_enable_event(p->handle,VPB_MDROP);
+	}
 	res = ast_mutex_unlock(&p->lock);
 /*
 	if(option_verbose>3) ast_verbose("%s: unLOCKING in answer [%d]\n", p->dev,res);




More information about the svn-commits mailing list