[asterisk-commits] moy: branch moy/dahdi-tap-1.6.2 r219810 - /team/moy/dahdi-tap-1.6.2/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 22 12:23:34 CDT 2009


Author: moy
Date: Tue Sep 22 12:23:30 2009
New Revision: 219810

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=219810
Log:
set new file name for tap audio

Modified:
    team/moy/dahdi-tap-1.6.2/channels/chan_dahdi.c

Modified: team/moy/dahdi-tap-1.6.2/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/team/moy/dahdi-tap-1.6.2/channels/chan_dahdi.c?view=diff&rev=219810&r1=219809&r2=219810
==============================================================================
--- team/moy/dahdi-tap-1.6.2/channels/chan_dahdi.c (original)
+++ team/moy/dahdi-tap-1.6.2/channels/chan_dahdi.c Tue Sep 22 12:23:30 2009
@@ -12404,6 +12404,7 @@
 	struct ast_app *app = NULL;
 	struct ast_channel *c = NULL;
 	struct ast_channel *peer  = NULL;
+	char mixfilename[512];
 	int peerspan = !(pri->span % 2) ? (pri->span - 1) : (pri->span + 1);
 	struct dahdi_pri *peerpri = pri_find_by_span(peerspan);
 	if (!peerpri) {
@@ -12480,7 +12481,10 @@
 				PRI_SPAN(e->answer.channel), PRI_CHANNEL(e->answer.channel), pri->span);
 			break;
 		}
-		if (pbx_exec(pri->pvts[chanpos]->owner, app, "/tmp/sangoma_monitor.ulaw")) {
+
+		snprintf(mixfilename, sizeof(mixfilename), "dahdi-tap-span-%d-chan-%d.ulaw", pri->span, PRI_CHANNEL(e->answer.channel));
+		mixfilename[sizeof(mixfilename)-1] = '\0';
+		if (pbx_exec(pri->pvts[chanpos]->owner, app, mixfilename)) {
 			ast_log(LOG_WARNING, "Failed to launch mix monitor in channel number %d/%d on span %d\n",
 				PRI_SPAN(e->answer.channel), PRI_CHANNEL(e->answer.channel), pri->span);
 			break;




More information about the asterisk-commits mailing list