projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MNCC socket: length of GSM TCH/F FR frame is 33 bytes _plus_ header
[lcr.git]
/
main.c
diff --git
a/main.c
b/main.c
index
c35be36
..
b9e836c
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-10,6
+10,7
@@
\*****************************************************************************/
#include "main.h"
\*****************************************************************************/
#include "main.h"
+#include "config.h"
//MESSAGES
//MESSAGES
@@
-363,7
+364,7
@@
int main(int argc, char *argv[])
}
#if defined WITH_GSM_BS || defined WITH_GSM_MS
}
#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 && gsm_init()) {
fprintf(stderr, "GSM initialization failed.\n");
goto free;
@@
-468,10
+469,6
@@
int main(int argc, char *argv[])
if (options.gsm) {
if (handle_gsm())
all_idle = 0;
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;
#ifdef WITH_GSM_MS
if (handle_gsm_ms())
all_idle = 0;
@@
-601,6
+598,10
@@
free:
#endif
}
#endif
}
+ /* close loopback, if used by GSM or remote */
+ if (mISDNloop.sock > -1)
+ mISDNloop_close();
+
/* display memory leak */
#define MEMCHECK(a, b) \
if (b) { \
/* display memory leak */
#define MEMCHECK(a, b) \
if (b) { \