]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6820 mod_gsmopen: fix total interfaces count when executing gsm reload
authorDušan Dragić <dragic.dusan@gmail.com>
Sun, 14 Sep 2014 10:24:19 +0000 (12:24 +0200)
committerDušan Dragić <dragic.dusan@gmail.com>
Sun, 14 Sep 2014 10:24:19 +0000 (12:24 +0200)
src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp

index a92303351a79ff5075073aca716298564fec22f6..dfc354435ca0bcd5fc7bf36cee20a49e50e92dfb 100644 (file)
@@ -1694,14 +1694,15 @@ static switch_status_t load_config(int reload_type)
                                switch_sleep(100000);
                                WARNINGA("STARTED interface_id=%u\n", GSMOPEN_P_LOG, interface_id);
 
+                               /* How many real intterfaces */
+                               globals.real_interfaces++;
+
                        }
                }
 
 
                for (i = 0; i < GSMOPEN_MAX_INTERFACES; i++) {
                        if (strlen(globals.GSMOPEN_INTERFACES[i].name)) {
-                               /* How many real intterfaces */
-                               globals.real_interfaces++;
 
                                tech_pvt = &globals.GSMOPEN_INTERFACES[i];