\*****************************************************************************/
#include "main.h"
+#include "config.h"
//MESSAGES
}
#if defined WITH_GSM_BS || defined WITH_GSM_MS
- /* handle gsm */
+ /* init gsm */
if (options.gsm && gsm_init()) {
fprintf(stderr, "GSM initialization failed.\n");
goto free;
if (options.gsm) {
if (handle_gsm())
all_idle = 0;
-#ifdef WITH_GSM_BS
- if (handle_gsm_bs())
- all_idle = 0;
-#endif
#ifdef WITH_GSM_MS
if (handle_gsm_ms())
all_idle = 0;
#endif
}
+ /* close loopback, if used by GSM or remote */
+ if (mISDNloop.sock > -1)
+ mISDNloop_close();
+
/* display memory leak */
#define MEMCHECK(a, b) \
if (b) { \