#include <asterisk/app.h>
#include <asterisk/features.h>
#include <asterisk/sched.h>
-#if ASTERISK_VERSION_NUM < 110000
-#include <asterisk/version.h>
-#endif
#include "extension.h"
#include "message.h"
#include "callerid.h"
#include "cause.h"
#include "select.h"
#include "options.h"
+#include "config.h"
#include "chan_lcr.h"
CHAN_LCR_STATE // state description structure
/* configure channel */
#if ASTERISK_VERSION_NUM < 100000
+ wat een onzin
+#endif
+
+#if ASTERISK_VERSION_NUM < 100000
ast->nativeformats = (options.law=='a')?AST_FORMAT_ALAW:AST_FORMAT_ULAW;
ast->readformat = ast->rawreadformat = ast->nativeformats;
ast->writeformat = ast->rawwriteformat = ast->nativeformats;