Hi
I want to enable chan_mobile to connect to a bluetooth-enabled cellphone. I have successfully installed asterisk 1.8.0-beta2. Installing asterisk-addons-1.6.2.1 gives the following error:
root@basil-laptop:/usr/src/asterisk-addons-1.6.2.1# make all
CC="gcc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-addons-1.6.2.1/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.2.1/menuselect'
menuselect/menuselect --check-deps menuselect.makeopts
Generating embedded module rules ...
make[1]: Entering directory `/usr/src/asterisk-addons-1.6.2.1'
make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.2.1'
make[1]: Entering directory `/usr/src/asterisk-addons-1.6.2.1'
make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.2.1'
make[1]: Entering directory `/usr/src/asterisk-addons-1.6.2.1'
make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.2.1'
make[1]: Entering directory `/usr/src/asterisk-addons-1.6.2.1/channels'
[CC] chan_ooh323.c -> chan_ooh323.o
In file included from chan_ooh323.c:18:
chan_ooh323.h:53:26: error: asterisk/rtp.h: No such file or directory
chan_ooh323.c:55: warning: ‘struct ast_rtp’ declared inside parameter list
chan_ooh323.c:55: warning: its scope is only this definition or declaration, which is probably not what you want
chan_ooh323.c:56: warning: ‘struct ast_rtp’ declared inside parameter list
chan_ooh323.c:58: warning: ‘struct ast_rtp’ declared inside parameter list
chan_ooh323.c:70: warning: initialization from incompatible pointer type
chan_ooh323.c:82: error: ‘ast_rtp_bridge’ undeclared here (not in a function)
chan_ooh323.c:85: error: variable ‘ooh323_rtp’ has initializer but incomplete type
chan_ooh323.c:86: error: unknown field ‘type’ specified in initializer
chan_ooh323.c:86: warning: excess elements in struct initializer
chan_ooh323.c:86: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c:87: error: unknown field ‘get_rtp_info’ specified in initializer
chan_ooh323.c:87: warning: excess elements in struct initializer
chan_ooh323.c:87: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c:88: error: unknown field ‘get_vrtp_info’ specified in initializer
chan_ooh323.c:88: warning: excess elements in struct initializer
chan_ooh323.c:88: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c:89: error: unknown field ‘set_rtp_peer’ specified in initializer
chan_ooh323.c:90: warning: excess elements in struct initializer
chan_ooh323.c:90: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c: In function ‘ooh323_new’:
chan_ooh323.c:257: warning: passing argument 8 of ‘__ast_channel_alloc’ makes pointer from integer without a cast
/usr/include/asterisk/channel.h:1048: note: expected ‘const char *’ but argument is of type ‘int’
chan_ooh323.c:257: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast
/usr/include/asterisk/channel.h:1048: note: expected ‘int’ but argument is of type ‘char *’
chan_ooh323.c:300: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:304: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c: In function ‘ooh323_alloc’:
chan_ooh323.c:379: warning: assignment makes pointer from integer without a cast
chan_ooh323.c: In function ‘ooh323_call’:
chan_ooh323.c:736: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:743: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:750: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c: In function ‘ooh323_write’:
chan_ooh323.c:906: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘format_t’)
chan_ooh323.c:910: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘union ast_frame_subclass’
chan_ooh323.c:910: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘format_t’
chan_ooh323.c:910: warning: format ‘%d’ expects type ‘int’, but argument 8 has type ‘format_t’
chan_ooh323.c:910: warning: format ‘%d’ expects type ‘int’, but argument 9 has type ‘format_t’
chan_ooh323.c: In function ‘ooh323_onReceivedDigit’:
chan_ooh323.c:1146: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_ooh323.c: In function ‘build_user’:
chan_ooh323.c:1551: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:698: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c:1558: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:698: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c: In function ‘build_peer’:
chan_ooh323.c:1651: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:698: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c:1658: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:698: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c: In function ‘reload_config’:
chan_ooh323.c:1902: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:698: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c:1908: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:698: note: expected ‘format_t *’ but argument is of type ‘int *’
chan_ooh323.c: At top level:
chan_ooh323.c:2821: error: return type is an incomplete type
chan_ooh323.c:2820: error: conflicting types for ‘ooh323_get_rtp_peer’
chan_ooh323.c:55: note: previous declaration of ‘ooh323_get_rtp_peer’ was here
chan_ooh323.c: In function ‘ooh323_get_rtp_peer’:
chan_ooh323.c:2823: error: variable ‘res’ has initializer but incomplete type
chan_ooh323.c:2823: error: ‘AST_RTP_TRY_PARTIAL’ undeclared (first use in this function)
chan_ooh323.c:2823: error: (Each undeclared identifier is reported only once
chan_ooh323.c:2823: error: for each function it appears in.)
chan_ooh323.c:2823: error: storage size of ‘res’ isn’t known
chan_ooh323.c:2826: error: ‘AST_RTP_GET_FAILED’ undeclared (first use in this function)
chan_ooh323.c:2826: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:2831: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:2833: error: ‘AST_RTP_TRY_NATIVE’ undeclared (first use in this function)
chan_ooh323.c:2835: warning: ‘return’ with a value, in function returning void
chan_ooh323.c: At top level:
chan_ooh323.c:2839: error: return type is an incomplete type
chan_ooh323.c:2838: error: conflicting types for ‘ooh323_get_vrtp_peer’
chan_ooh323.c:56: note: previous declaration of ‘ooh323_get_vrtp_peer’ was here
chan_ooh323.c: In function ‘ooh323_get_vrtp_peer’:
chan_ooh323.c:2841: error: variable ‘res’ has initializer but incomplete type
chan_ooh323.c:2841: error: ‘AST_RTP_TRY_PARTIAL’ undeclared (first use in this function)
chan_ooh323.c:2841: error: storage size of ‘res’ isn’t known
chan_ooh323.c:2844: error: ‘AST_RTP_GET_FAILED’ undeclared (first use in this function)
chan_ooh323.c:2844: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:2849: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:2851: error: ‘AST_RTP_TRY_NATIVE’ undeclared (first use in this function)
chan_ooh323.c:2853: warning: ‘return’ with a value, in function returning void
chan_ooh323.c: At top level:
chan_ooh323.c:2896: error: conflicting types for ‘ooh323_set_rtp_peer’
chan_ooh323.c:57: note: previous declaration of ‘ooh323_set_rtp_peer’ was here
chan_ooh323.c: In function ‘ooh323_rtp_read’:
chan_ooh323.c:3057: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3060: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3063: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3066: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3078: error: invalid operands to binary != (have ‘union ast_frame_subclass’ and ‘format_t’)
chan_ooh323.c:3079: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘union ast_frame_subclass’
chan_ooh323.c:3080: error: incompatible types when assigning to type ‘format_t’ from type ‘union ast_frame_subclass’
chan_ooh323.c:3087: warning: format ‘%c’ expects type ‘int’, but argument 6 has type ‘union ast_frame_subclass’
make[1]: *** [chan_ooh323.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.2.1/channels'
make: *** [channels] Error 2
root@basil-laptop:/usr/src/asterisk-addons-1.6.2.1#
Any suggestion would be of great help!