This is usefull to test if select loop causes problems and does not wake
when it is required. If lcr seems not to wake up, try using 'polling' to
disable select timer and use polling instead.
+# Enable polling in main loop.
+# This feature is temporarily for test purpose. Don't enable it
+#polling
- select_main(0, NULL, NULL, NULL);
+ if (options.polling)
+ if (!select_main(1, NULL, NULL, NULL))
+ usleep(10000);
+ else
+ select_main(0, NULL, NULL, NULL);
#endif
}
SPRINT(tracetext, "%s terminated", NAME);
#endif
}
SPRINT(tracetext, "%s terminated", NAME);
0700, /* rights of lcr admin socket */
-1, /* socket user (-1= no change) */
-1, /* socket group (-1= no change) */
0700, /* rights of lcr admin socket */
-1, /* socket user (-1= no change) */
-1, /* socket group (-1= no change) */
+ 0, /* enable gsm */
+ 1 /* use polling of main loop */
};
char options_error[256];
};
char options_error[256];
} else
if (!strcmp(option,"gsm")) {
options.gsm = 1;
} else
if (!strcmp(option,"gsm")) {
options.gsm = 1;
+ } else
+ if (!strcmp(option,"polling")) {
+ options.polling = 1;
} else {
UPRINT(options_error, "Error in %s (line %d): wrong option keyword %s.\n", filename,line,option);
goto error;
} else {
UPRINT(options_error, "Error in %s (line %d): wrong option keyword %s.\n", filename,line,option);
goto error;
int socketuser; /* socket chown to this user */
int socketgroup; /* socket chgrp to this group */
int gsm; /* enable gsm support */
int socketuser; /* socket chown to this user */
int socketgroup; /* socket chgrp to this group */
int gsm; /* enable gsm support */
};
extern struct options options;
};
extern struct options options;
- neuen partyline-param dokumentieren
- aufzeichnung der ansage mit 0 ohne beep beenden
- gain, pipeline, crypt
- neuen partyline-param dokumentieren
- aufzeichnung der ansage mit 0 ohne beep beenden
- gain, pipeline, crypt