[asterisk-commits] russell: branch russell/chan_console r72848 - /team/russell/chan_console/chan...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jul 1 21:27:01 CDT 2007


Author: russell
Date: Sun Jul  1 21:27:00 2007
New Revision: 72848

URL: http://svn.digium.com/view/asterisk?view=rev&rev=72848
Log:
Make this module build

Modified:
    team/russell/chan_console/channels/chan_console.c

Modified: team/russell/chan_console/channels/chan_console.c
URL: http://svn.digium.com/view/asterisk/team/russell/chan_console/channels/chan_console.c?view=diff&rev=72848&r1=72847&r2=72848
==============================================================================
--- team/russell/chan_console/channels/chan_console.c (original)
+++ team/russell/chan_console/channels/chan_console.c Sun Jul  1 21:27:00 2007
@@ -288,7 +288,7 @@
 {
 	struct ast_channel *chan;
 
-	if (!(chan = ast_channel_alloc(1, state, pvt->cid_num, pvt->cid_name, "Console/%s", pvt->name)))
+	if (!(chan = ast_channel_alloc(1, state, pvt->cid_num, pvt->cid_name, NULL, ext, ctx, 0, "Console/%s", pvt->name)))
 		return NULL;
 
 	chan->tech = &console_tech;
@@ -298,19 +298,8 @@
 	chan->tech_pvt = pvt;
 	pvt->owner = chan;
 
-	if (!ast_strlen_zero(ctx))
-		ast_copy_string(chan->context, ctx, sizeof(chan->context));
-	if (!ast_strlen_zero(ext))
-		ast_copy_string(chan->exten, ext, sizeof(chan->exten));
 	if (!ast_strlen_zero(pvt->language))
 		ast_string_field_set(chan, language, pvt->language);
-	/* Don't use ast_set_callerid() here because it will
-	 * generate a needless NewCallerID event */
-	chan->cid.cid_num = ast_strdup(pvt->cid_num);
-	chan->cid.cid_ani = ast_strdup(pvt->cid_num);
-	chan->cid.cid_name = ast_strdup(pvt->cid_name);
-	if (!ast_strlen_zero(ext))
-		chan->cid.cid_dnid = ast_strdup(ext);
 
 	ast_jb_configure(chan, &global_jbconf);
 




More information about the asterisk-commits mailing list