[svn-commits] moy: branch moy/mfcr2-1.2 r128123 - /team/moy/mfcr2-1.2/channels/chan_zap.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 4 22:27:43 CDT 2008


Author: moy
Date: Fri Jul  4 22:27:43 2008
New Revision: 128123

URL: http://svn.digium.com/view/asterisk?view=rev&rev=128123
Log:
add mfcr2_call_files parameter to zapata.conf

Modified:
    team/moy/mfcr2-1.2/channels/chan_zap.c

Modified: team/moy/mfcr2-1.2/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/moy/mfcr2-1.2/channels/chan_zap.c?view=diff&rev=128123&r1=128122&r2=128123
==============================================================================
--- team/moy/mfcr2-1.2/channels/chan_zap.c (original)
+++ team/moy/mfcr2-1.2/channels/chan_zap.c Fri Jul  4 22:27:43 2008
@@ -379,6 +379,7 @@
 static int mfcr2_cur_max_dnis = 4;
 static int mfcr2_cur_get_ani_first = 0;
 static int mfcr2_cur_context_index = 0;
+static int mfcr2_cur_call_files = 0;
 static char mfcr2_cur_logdir[OR2_MAX_LOGDIR];
 static openr2_log_level_t mfcr2_cur_loglevel = OR2_LOG_ERROR | OR2_LOG_WARNING;
 static openr2_calling_party_category_t mfcr2_cur_category = OR2_CALLING_PARTY_CATEGORY_NATIONAL_SUBSCRIBER;
@@ -7460,6 +7461,9 @@
 					openr2_chan_set_client_data(tmp->r2chan, tmp);
 					openr2_chan_set_logging_func(tmp->r2chan, zt_r2_on_chan_log);
 					openr2_chan_set_log_level(tmp->r2chan, mfcr2_cur_loglevel);
+					if (mfcr2_cur_call_files) {
+						openr2_chan_enable_call_files(tmp->r2chan);
+					}
 					tmp->mfcr2_category = mfcr2_cur_category;
 					tmp->mfcr2 = zap_r2;
 					tmp->mfcr2call = 0;
@@ -11387,6 +11391,8 @@
 				}
 			} else if (!strcasecmp(v->name, "mfcr2_get_ani_first")) {
 				mfcr2_cur_get_ani_first = ast_true(v->value);
+			} else if (!strcasecmp(v->name, "mfcr2_call_files")) {
+				mfcr2_cur_call_files = ast_true(v->value);
 			} else if (!strcasecmp(v->name, "mfcr2_max_ani")) {
 				mfcr2_cur_max_ani = atoi(v->value);
 			} else if (!strcasecmp(v->name, "mfcr2_max_dnis")) {




More information about the svn-commits mailing list