[asterisk-commits] branch crichter/0.3.0 r32778 - in /team/crichter/0.3.0/channels: ./ misdn/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jun 7 05:59:10 MST 2006


Author: crichter
Date: Wed Jun  7 07:59:09 2006
New Revision: 32778

URL: http://svn.digium.com/view/asterisk?rev=32778&view=rev
Log:
changed the clean_up_bc function to work proper again. fixed the print with the conference nr. when bridged

Modified:
    team/crichter/0.3.0/channels/chan_misdn.c
    team/crichter/0.3.0/channels/misdn/isdn_lib.c

Modified: team/crichter/0.3.0/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/chan_misdn.c?rev=32778&r1=32777&r2=32778&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/chan_misdn.c (original)
+++ team/crichter/0.3.0/channels/chan_misdn.c Wed Jun  7 07:59:09 2006
@@ -2180,13 +2180,13 @@
 		}
 		
 		/* trying to make a mISDN_dsp conference */
-		chan_misdn_log(1, ch1->bc->port, "I SEND: Making conference with Number:%d\n", (ch1->bc->pid<<1) +1);
-
+		chan_misdn_log(1, ch1->bc->port, "I SEND: Making conference with Number:%d\n", ch1->bc->pid +1);
+		
 		misdn_lib_bridge(ch1->bc,ch2->bc);
 	}
 	
-	chan_misdn_log(1, ch1->bc->port, "* Makeing Native Bridge between %s and %s\n", ch1->bc->oad, ch2->bc->oad);
-  
+	chan_misdn_log(1, ch1->bc->port, "* Making Native Bridge between %s and %s\n", ch1->bc->oad, ch2->bc->oad);
+	
 	while(1) {
 		to=-1;
 		who = ast_waitfor_n(carr, 2, &to);

Modified: team/crichter/0.3.0/channels/misdn/isdn_lib.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/misdn/isdn_lib.c?rev=32778&r1=32777&r2=32778&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/misdn/isdn_lib.c (original)
+++ team/crichter/0.3.0/channels/misdn/isdn_lib.c Wed Jun  7 07:59:09 2006
@@ -585,17 +585,16 @@
 		manager_ec_disable(bc);
 	}
 
-	if (bc->bc_state == BCHAN_SETUP) 
-		mISDN_write_frame(stack->midev, buff, bc->layer_id|FLG_MSG_DOWN, MGR_DELLAYER | REQUEST, 0, 0, NULL, TIMEOUT_1SEC);
-	else
-		mISDN_write_frame(stack->midev, buff, bc->addr|FLG_MSG_DOWN, MGR_DELLAYER | REQUEST, 0, 0, NULL, TIMEOUT_1SEC);
-
+	
+	mISDN_write_frame(stack->midev, buff, bc->layer_id|FLG_MSG_DOWN, MGR_DELLAYER | REQUEST, 0, 0, NULL, TIMEOUT_1SEC);
+
+#if 0
 	cb_log(3, stack->port, "$$$ CLEARING STACK\n");
-	
 	ret=mISDN_clear_stack(stack->midev,bc->b_stid);
 	if (ret<0 && errno) {
 		cb_log(-1,stack->port,"clear stack failed [%s]\n",strerror(errno));
 	}
+#endif
 
 	bc->b_stid = 0;
 	bc_state_change(bc, BCHAN_CLEANED);



More information about the asterisk-commits mailing list