[asterisk-commits] seanbright: branch seanbright/cdr-syslog r203643 - /team/seanbright/cdr-syslo...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 26 11:05:15 CDT 2009


Author: seanbright
Date: Fri Jun 26 11:05:12 2009
New Revision: 203643

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=203643
Log:
Use ast_dummy_channel_alloc() to create our substitution channel.

Modified:
    team/seanbright/cdr-syslog/cdr/cdr_syslog.c

Modified: team/seanbright/cdr-syslog/cdr/cdr_syslog.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/seanbright/cdr-syslog/cdr/cdr_syslog.c?view=diff&rev=203643&r1=203642&r2=203643
==============================================================================
--- team/seanbright/cdr-syslog/cdr/cdr_syslog.c (original)
+++ team/seanbright/cdr-syslog/cdr/cdr_syslog.c Fri Jun 26 11:05:12 2009
@@ -83,9 +83,7 @@
 		return -1;
 	}
 
-	dummy = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Substitution/%p", cdr);
-
-	if (!dummy) {
+	if (!(dummy = ast_dummy_channel_alloc())) {
 		ast_log(AST_LOG_ERROR, "Unable to allocate channel for variable substitution.\n");
 		return -1;
 	}




More information about the asterisk-commits mailing list