X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=chan_lcr.c;h=95972a90f47b0595eceb00708a27b4362956dad8;hp=9adaa594a394dbfd44013f0802095af3a444add9;hb=729893ae61a8c4a9ffbcd4efbfda4fac5713c736;hpb=49de81a7f6ee47347e44cd8a0d881e557f6f97e5 diff --git a/chan_lcr.c b/chan_lcr.c index 9adaa59..95972a9 100644 --- a/chan_lcr.c +++ b/chan_lcr.c @@ -168,9 +168,6 @@ struct ast_channel; #include #include #include -#if ASTERISK_VERSION_NUM < 110000 -#include -#endif #include "extension.h" #include "message.h" #include "callerid.h" @@ -178,6 +175,7 @@ struct ast_channel; #include "cause.h" #include "select.h" #include "options.h" +#include "config.h" #include "chan_lcr.h" CHAN_LCR_STATE // state description structure @@ -1193,6 +1191,10 @@ static void lcr_in_setup(struct chan_call *call, int message_type, union paramet /* 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;