[Asterisk-bsd] I4B by HPS + chan_capi + 1.4.8 on 6.2 = choppy audio & hangups

Hans Petter Selasky hselasky at c2i.net
Fri Jul 20 10:03:31 CDT 2007


On Friday 20 July 2007 13:58, Michael Iedema wrote:
> Hans Petter,
>
> > First of all, Asterisk 1.4.8 is not in ports yet.
> > How did you build the software?
>
> Straight from the source. I looked at the patches in the port and,
> perhaps naively, thought they were not crucial to my options.
>
> > What warnings do you get when you compile "chan_capi" ?
>
> After installing asterisk 1.4.8's new headers I now get the following
> errors compiling chan_capi.

Aha, that won't work.

I will have to update my "chan_capi" to work with Asterisk 1.4.8 .

--HPS

>
> MiniBSD # gmake
> ./create_config.sh "/usr/local/include"
> Checking Asterisk structures and files ...
>  * no 'struct ast_codec_pref'
>  * found 'struct ast_channel_tech'
>  * found 'ast_bridged_channel'
>  * found 'ast_bridge_result'
>  * found bridge with timeoutms
>  * ast_dsp_process() without 'needlock'
>  * found 'struct ast_callerid'
>  * found 'struct timeval delivery'
>  * found 'transfercapability'
>  * found 'ast_set_read_format'
>  * found 'ast_set_write_format'
>  * found 'ast_config_load'
>  * found 'AST_CONTROL_HOLD'
>  * found 'struct ast_custom_function'
>  * found 'devicestate.h'
>  * found Asterisk version 1.4.x
>  * found version header file: /usr/local/include/asterisk/version.h
> config.h complete.
> gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g
> -I/usr/local/include -I/usr/include/i4b/include -D_REENTRANT
> -D_GNU_SOURCE  -O6 -march=i386  -Wformat -DASTERISKVERSION=\"\"
> -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o
> chan_capi.o chan_capi.c
> chan_capi.c:33:1: invalid digit "8" in octal constant
> chan_capi.c:92:1: invalid digit "8" in octal constant
> chan_capi.c:93: warning: type defaults to `int' in declaration of
> `STANDARD_LOCAL_USER'
> chan_capi.c:93: warning: data definition has no type or storage class
> chan_capi.c:94: warning: type defaults to `int' in declaration of
> `LOCAL_USER_DECL'
> chan_capi.c:94: warning: data definition has no type or storage class
> chan_capi.c:1396:2: warning: #warning "What about cd->next after free?
> Currently 'cd' is not freed by cd_free()."
> chan_capi.c:2375:1: invalid digit "8" in octal constant
> chan_capi.c: In function `cd_alloc':
> chan_capi.c:2382: error: too few arguments to function `ast_channel_alloc'
> chan_capi.c:2392:1: invalid digit "8" in octal constant
> chan_capi.c:2393: error: structure has no member named `type'
> chan_capi.c:2542:1: invalid digit "8" in octal constant
> chan_capi.c: In function `cd_set_cep':
> chan_capi.c:2547: warning: passing arg 1 of `strlcpy' discards
> qualifiers from pointer target type
> chan_capi.c:2550: warning: passing arg 1 of `strlcpy' discards
> qualifiers from pointer target type
> chan_capi.c: In function `capi_send_connect_resp':
> chan_capi.c:3150: warning: implicit declaration of function
> `__dont_use_localtime_r_use_ast_localtime_instead__'
> chan_capi.c:3849:1: invalid digit "8" in octal constant
> chan_capi.c: In function `chan_capi_request':
> chan_capi.c:3854: warning: passing arg 1 of `snprintf' discards
> qualifiers from pointer target type
> chan_capi.c:4625:1: invalid digit "8" in octal constant
> chan_capi.c:4809:1: invalid digit "8" in octal constant
> chan_capi.c:4845:1: invalid digit "8" in octal constant
> chan_capi.c:4967:2: warning: #warning "Should send a messages, but which?"
> chan_capi.c:5120:2: warning: #warning "Cannot do this, because one
> cannot lock 'pbx_chan' here!"
> chan_capi.c:5648:2: warning: #warning "Maybe cannot write these
> variables here! Locking issue!"
> chan_capi.c:5659:2: warning: #warning "Does not handle length == 0xFF"
> chan_capi.c:5846:1: invalid digit "8" in octal constant
> chan_capi.c: In function `cd_copy_telno_ext':
> chan_capi.c:5851: warning: passing arg 1 of `snprintf' discards
> qualifiers from pointer target type
> chan_capi.c:6920:1: invalid digit "8" in octal constant
> chan_capi.c:6940:1: invalid digit "8" in octal constant
> chan_capi.c: In function `chan_capi_command_exec':
> chan_capi.c:6943: warning: implicit declaration of function
> `LOCAL_USER_ADD' chan_capi.c:6974:1: invalid digit "8" in octal constant
> chan_capi.c:6977: error: structure has no member named `type'
> chan_capi.c:7028:1: invalid digit "8" in octal constant
> chan_capi.c:7031: warning: implicit declaration of function
> `LOCAL_USER_REMOVE' chan_capi.c:7130:2: warning: #warning "TODO: check for
> calls that
> never received connect_conf;"
> chan_capi.c:7531:1: invalid digit "8" in octal constant
> chan_capi.c: At top level:
> chan_capi.c:7535: error: unknown field `send_digit' specified in
> initializer chan_capi.c:7535: warning: initialization from incompatible
> pointer type chan_capi.c:7545: warning: initialization from incompatible
> pointer type chan_capi.c:8161: warning: initialization from incompatible
> pointer type chan_capi.c:8168:1: invalid digit "8" in octal constant
> chan_capi.c: In function `load_module':
> chan_capi.c:8336: warning: implicit declaration of function `unload_module'
> chan_capi.c:8346:1: invalid digit "8" in octal constant
> chan_capi.c:8416:1: invalid digit "8" in octal constant
> gmake: *** [chan_capi.o] Error 1
> MiniBSD #
>
> > Try "Asterisk 1.4.4" from ports first, even though it has some security
> > issues with IAX2.
>
> I may have to resort to using that but I would rather figure out what
> is causing these issues and either get the port updated to 1.4.8 or
> apply these patches manually.




More information about the Asterisk-BSD mailing list