[asterisk-commits] moy: branch moy/mfcr2-1.4 r157237 - /team/moy/mfcr2-1.4/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Nov 16 20:42:50 CST 2008


Author: moy
Date: Sun Nov 16 20:42:49 2008
New Revision: 157237

URL: http://svn.digium.com/view/asterisk?view=rev&rev=157237
Log:
updated code to use of OR2_MAX_PATH

Modified:
    team/moy/mfcr2-1.4/channels/chan_dahdi.c

Modified: team/moy/mfcr2-1.4/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/team/moy/mfcr2-1.4/channels/chan_dahdi.c?view=diff&rev=157237&r1=157236&r2=157237
==============================================================================
--- team/moy/mfcr2-1.4/channels/chan_dahdi.c (original)
+++ team/moy/mfcr2-1.4/channels/chan_dahdi.c Sun Nov 16 20:42:49 2008
@@ -324,8 +324,8 @@
 static int mfcr2_cur_forced_release = 0;
 static int mfcr2_cur_double_answer = 0;
 static int mfcr2_cur_immediate_accept = -1;
-static char mfcr2_cur_logdir[OR2_MAX_LOGDIR];
-static char mfcr2_cur_r2proto_file[OR2_MAX_LOGDIR];
+static char mfcr2_cur_logdir[OR2_MAX_PATH];
+static char mfcr2_cur_r2proto_file[OR2_MAX_PATH];
 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;
 
@@ -8081,7 +8081,7 @@
 #endif
 #ifdef HAVE_OPENR2
 			if (chan_sig == SIG_MFCR2 && reloading != 1) {
-				char logdir[OR2_MAX_LOGDIR];
+				char logdir[OR2_MAX_PATH];
 				struct zt_mfcr2 *dahdi_r2;
 				int threshold = 0;
 				int snres = 0;
@@ -11410,7 +11410,7 @@
 			}
 #ifdef HAVE_OPENR2
 			if (tmp->mfcr2) {
-				char calldir[OR2_MAX_LOGDIR];
+				char calldir[OR2_MAX_PATH];
 				openr2_context_t *r2context = openr2_chan_get_context(tmp->r2chan);
 				openr2_variant_t r2variant = openr2_context_get_variant(r2context);
 				ast_cli(fd, "MFC/R2 MF State: %s\n", openr2_proto_get_mf_state_string(tmp->r2chan));




More information about the asterisk-commits mailing list