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

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Jul 12 20:24:20 CDT 2008


Author: moy
Date: Sat Jul 12 20:24:20 2008
New Revision: 130441

URL: http://svn.digium.com/view/asterisk?view=rev&rev=130441
Log:
updated OR2VAR_UNKNOWN to OR2_VAR_UNKNOWN to match latest openr2 version

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

Modified: team/moy/mfcr2/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/moy/mfcr2/channels/chan_zap.c?view=diff&rev=130441&r1=130440&r2=130441
==============================================================================
--- team/moy/mfcr2/channels/chan_zap.c (original)
+++ team/moy/mfcr2/channels/chan_zap.c Sat Jul 12 20:24:20 2008
@@ -413,7 +413,7 @@
 };
 
 static struct zt_mfcr2 r2links[NUM_SPANS];
-static openr2_variant_t mfcr2_cur_variant = OR2VAR_UNKNOWN;
+static openr2_variant_t mfcr2_cur_variant = OR2_VAR_UNKNOWN;
 static int mfcr2_cur_mfback_timeout = -1;
 static int mfcr2_cur_metering_pulse_timeout = -1;
 static int mfcr2_cur_max_ani = 10;
@@ -9660,8 +9660,8 @@
 			if (p->mfcr2) {
 				ast_mutex_lock(&p->lock);
 				if (p->mfcr2call) {
+					ast_mutex_unlock(&p->lock);
 					ast_log(LOG_DEBUG, "Yay!, someone just beat us in the race for channel %d.\n", p->channel);
-					ast_mutex_unlock(&p->lock);
 					goto next;
 				}
 				p->mfcr2call = 1;
@@ -15116,7 +15116,7 @@
 				ast_copy_string(mfcr2_cur_logdir, v->value, sizeof(mfcr2_cur_logdir));
 			} else if (!strcasecmp(v->name, "mfcr2_variant")) {
 				mfcr2_cur_variant = openr2_proto_get_variant(v->value);
-				if (OR2VAR_UNKNOWN == mfcr2_cur_variant) {
+				if (OR2_VAR_UNKNOWN == mfcr2_cur_variant) {
 					ast_log(LOG_WARNING, "Unknown MFC/R2 variant '%s' at line %d.\n", v->value, v->lineno);
 				}
 			} else if (!strcasecmp(v->name, "mfcr2_mfback_timeout")) {




More information about the svn-commits mailing list