[svn-commits] russell: branch russell/indications r174863 - /team/russell/indications/chann...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Feb 11 09:21:37 CST 2009


Author: russell
Date: Wed Feb 11 09:21:36 2009
New Revision: 174863

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=174863
Log:
compiling is a good thing.

Modified:
    team/russell/indications/channels/chan_misdn.c

Modified: team/russell/indications/channels/chan_misdn.c
URL: http://svn.digium.com/svn-view/asterisk/team/russell/indications/channels/chan_misdn.c?view=diff&rev=174863&r1=174862&r2=174863
==============================================================================
--- team/russell/indications/channels/chan_misdn.c (original)
+++ team/russell/indications/channels/chan_misdn.c Wed Feb 11 09:21:36 2009
@@ -379,7 +379,7 @@
 	 * \brief Tone zone sound used for dialtone generation.
 	 * \note Used as a boolean.  Non-NULL to prod generation if enabled. 
 	 */
-	const struct tone_zone_sound *ts;
+	const struct ast_tone_zone_sound *ts;
 	
 	/*!
 	 * \brief Enables overlap dialing for the set amount of seconds.  (0 = Disabled)
@@ -3357,7 +3357,6 @@
 
 static int dialtone_indicate(struct chan_list *cl)
 {
-	const struct tone_zone_sound *ts = NULL;
 	struct ast_channel *ast = cl->ast;
 	int nd = 0;
 
@@ -3374,14 +3373,14 @@
 	}
 	
 	chan_misdn_log(3, cl->bc->port, " --> Dial\n");
-	ts = ast_get_indication_tone(ast->zone, "dial");
-	cl->ts = ts;	
-	
-	if (ts) {
+
+	cl->ts = ast_get_indication_tone(ast->zone, "dial");
+	
+	if (cl->ts) {
 		cl->notxtone = 0;
 		cl->norxtone = 0;
 		/* This prods us in misdn_write */
-		ast_playtones_start(ast, 0, ts->data, 0);
+		ast_playtones_start(ast, 0, cl->ts->data, 0);
 	}
 
 	return 0;
@@ -3407,7 +3406,6 @@
 	ast_playtones_stop(ast);
 
 	cl->ts = NULL;
-	/*ast_deactivate_generator(ast);*/
 
 	return 0;
 }




More information about the svn-commits mailing list