From c242f766345614468c434b63110444ad8534a4d5 Mon Sep 17 00:00:00 2001 From: Giovanni Maruzzelli Date: Mon, 24 Feb 2014 18:15:43 +0100 Subject: [PATCH] FS-5830 fixed, thx Dusan --- src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp b/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp index 158e1b5ad8..13e33cde29 100644 --- a/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp +++ b/src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp @@ -1681,7 +1681,7 @@ static switch_status_t load_config(int reload_type) for (i = 0; i < GSMOPEN_MAX_INTERFACES; i++) { if (strlen(globals.GSMOPEN_INTERFACES[i].name)) { /* How many real intterfaces */ - globals.real_interfaces = i + 1; + globals.real_interfaces++; tech_pvt = &globals.GSMOPEN_INTERFACES[i]; @@ -2226,7 +2226,7 @@ SWITCH_STANDARD_API(gsm_function) } stream->write_function(stream, "\nTotal Interfaces: %d IB Calls(Failed/Total): %u/%u OB Calls(Failed/Total): %u/%u\n", - globals.real_interfaces > 0 ? globals.real_interfaces - 1 : 0, ib_failed, ib, ob_failed, ob); + globals.real_interfaces > 0 ? globals.real_interfaces : 0, ib_failed, ib, ob_failed, ob); } else if (!strcasecmp(argv[0], "console")) { int i;