[asterisk-commits] russell: branch 1.4 r83910 - /branches/1.4/channels/chan_misdn.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Sep 26 15:50:10 CDT 2007
Author: russell
Date: Wed Sep 26 15:50:09 2007
New Revision: 83910
URL: http://svn.digium.com/view/asterisk?view=rev&rev=83910
Log:
Fix building chan_misdn under dev-mode. (please run the configure script
with --enable-dev-mode so this doesn't happen again ...)
Modified:
branches/1.4/channels/chan_misdn.c
Modified: branches/1.4/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_misdn.c?view=diff&rev=83910&r1=83909&r2=83910
==============================================================================
--- branches/1.4/channels/chan_misdn.c (original)
+++ branches/1.4/channels/chan_misdn.c Wed Sep 26 15:50:09 2007
@@ -3134,15 +3134,19 @@
}
if (rr) {
+ int port_start = 0;
+ int port_bak = rr->port;
+ int chan_bak = rr->channel;
+
if (!rr->port)
rr->port = misdn_cfg_get_next_port_spin(rr->port);
- int port_start = 0;
- int port_bak = rr->port;
- int chan_bak = rr->channel;
-
for (; rr->port > 0 && rr->port != port_start;
rr->port = misdn_cfg_get_next_port_spin(rr->port)) {
+ int port_up;
+ int check;
+ int max_chan;
+ int last_chance = 0;
if (!port_start)
port_start = rr->port;
@@ -3151,8 +3155,6 @@
if (strcasecmp(cfg_group, group))
continue;
- int port_up;
- int check;
misdn_cfg_get(rr->port, MISDN_CFG_PMP_L1_CHECK, &check, sizeof(int));
port_up = misdn_lib_port_up(rr->port, check);
@@ -3165,8 +3167,7 @@
if (port_up <= 0)
continue;
- int max_chan = misdn_lib_get_maxchans(rr->port);
- int last_chance = 0;
+ max_chan = misdn_lib_get_maxchans(rr->port);
for (++rr->channel; !last_chance && rr->channel <= max_chan; ++rr->channel) {
if (rr->port == port_bak && rr->channel == chan_bak)
More information about the asterisk-commits
mailing list