From: Dušan Dragić Date: Sun, 14 Sep 2014 10:24:19 +0000 (+0200) Subject: FS-6820 mod_gsmopen: fix total interfaces count when executing gsm reload X-Git-Tag: v1.4.9~4^2~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9423953e028f8dd319a790ba1e5fdca37ff0cb2f;p=thirdparty%2Ffreeswitch.git FS-6820 mod_gsmopen: fix total interfaces count when executing gsm reload --- diff --git a/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp b/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp index a92303351a..dfc354435c 100644 --- a/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp +++ b/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp @@ -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];