[asterisk-commits] rmudgett: branch rmudgett/native_dahdi r394394 - /team/rmudgett/native_dahdi/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 15 15:45:44 CDT 2013


Author: rmudgett
Date: Mon Jul 15 15:45:42 2013
New Revision: 394394

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394394
Log:
Tweak some debug messages.

Modified:
    team/rmudgett/native_dahdi/channels/dahdi/bridge_native_dahdi.c

Modified: team/rmudgett/native_dahdi/channels/dahdi/bridge_native_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/native_dahdi/channels/dahdi/bridge_native_dahdi.c?view=diff&rev=394394&r1=394393&r2=394394
==============================================================================
--- team/rmudgett/native_dahdi/channels/dahdi/bridge_native_dahdi.c (original)
+++ team/rmudgett/native_dahdi/channels/dahdi/bridge_native_dahdi.c Mon Jul 15 15:45:42 2013
@@ -167,6 +167,10 @@
 
 	bridge_tech_pvt = bridge->tech_pvt;
 	dahdi_unlink(bridge_tech_pvt->slave, bridge_tech_pvt->master, 1);
+
+	ast_debug(2, "Stop native bridging %s and %s\n",
+		ast_channel_name(AST_LIST_FIRST(&bridge->channels)->chan),
+		ast_channel_name(AST_LIST_LAST(&bridge->channels)->chan));
 }
 
 /*!
@@ -350,7 +354,7 @@
 			nothing_ok = 0;
 		}
 	}
-	ast_debug(1, "master: %d, slave: %d, nothing_ok: %d\n",
+	ast_debug(3, "master: %d, slave: %d, nothing_ok: %d\n",
 		master ? master->channel : 0,
 		slave ? slave->channel : 0,
 		nothing_ok);
@@ -365,14 +369,14 @@
 			&& p1->subs[SUB_REAL].owner
 			&& p1->subs[SUB_REAL].inthreeway
 			&& ast_channel_state(p1->subs[SUB_REAL].owner) == AST_STATE_RINGING) {
-			ast_debug(1,
+			ast_debug(2,
 				"Playing ringback on %d/%d(%s) since %d/%d(%s) is in a ringing three-way\n",
 				p0->channel, npc0->index, ast_channel_name(c0),
 				p1->channel, npc1->index, ast_channel_name(c1));
 			tone_zone_play_tone(p0->subs[npc0->index].dfd, DAHDI_TONE_RINGTONE);
 			npc1->state = ast_channel_state(p1->subs[SUB_REAL].owner);
 		} else {
-			ast_debug(1, "Stopping tones on %d/%d(%s) talking to %d/%d(%s)\n",
+			ast_debug(2, "Stopping tones on %d/%d(%s) talking to %d/%d(%s)\n",
 				p0->channel, npc0->index, ast_channel_name(c0),
 				p1->channel, npc1->index, ast_channel_name(c1));
 			tone_zone_play_tone(p0->subs[npc0->index].dfd, -1);
@@ -383,14 +387,14 @@
 			&& p0->subs[SUB_REAL].owner
 			&& p0->subs[SUB_REAL].inthreeway
 			&& ast_channel_state(p0->subs[SUB_REAL].owner) == AST_STATE_RINGING) {
-			ast_debug(1,
+			ast_debug(2,
 				"Playing ringback on %d/%d(%s) since %d/%d(%s) is in a ringing three-way\n",
 				p1->channel, npc1->index, ast_channel_name(c1),
 				p0->channel, npc0->index, ast_channel_name(c0));
 			tone_zone_play_tone(p1->subs[npc1->index].dfd, DAHDI_TONE_RINGTONE);
 			npc0->state = ast_channel_state(p0->subs[SUB_REAL].owner);
 		} else {
-			ast_debug(1, "Stopping tones on %d/%d(%s) talking to %d/%d(%s)\n",
+			ast_debug(2, "Stopping tones on %d/%d(%s) talking to %d/%d(%s)\n",
 				p1->channel, npc1->index, ast_channel_name(c1),
 				p0->channel, npc0->index, ast_channel_name(c0));
 			tone_zone_play_tone(p1->subs[npc1->index].dfd, -1);
@@ -437,7 +441,8 @@
 	tech_pvt->master = master;
 	tech_pvt->slave = slave;
 
-	ast_verb(3, "Native bridging %s and %s\n", ast_channel_name(c0), ast_channel_name(c1));
+	ast_debug(2, "Start native bridging %s and %s\n",
+		ast_channel_name(c0), ast_channel_name(c1));
 
 #if defined(HAVE_PRI) && defined(PRI_2BCT)
 	if (!tech_pvt->tried_trombone_removal) {
@@ -840,7 +845,7 @@
 }
 
 static struct ast_bridge_technology native_bridge = {
-	.name = "dahdi_native",
+	.name = "native_dahdi",
 	.capabilities = AST_BRIDGE_CAPABILITY_NATIVE,
 	.preference = AST_BRIDGE_PREFERENCE_BASE_NATIVE,
 	.create = native_bridge_create,




More information about the asterisk-commits mailing list