[Asterisk-Users] Re: Asterisk-Users Digest, Vol 10, Issue 221

Steve Underwood steveu at coppice.org
Sat May 28 18:59:30 MST 2005


Hi,

It looks like you are using Asterisk 1.1.x. Until yesterday 
chan_unicall.c only worked with 1.0.x. In the 0.0.3pre2 directory you 
will now find versions of chan_unicall.c for Asterisk 1.0.x and 1.1.x. 
The version for 1.0.x is well tested. The version for 1.1.x is new, and 
only slightly tested. It is possible that some differences between the 
1.0.x APIs and the 1.1.x APIs have not been allowed for so far.

Regards,
Steve


Nguyen Trung Tin wrote:

> Hello all.
>  
> How to compile chan_unicall.c
> i have problem when compile chan_unicall.c, error message
> please help
>  
> gcc -c -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
> -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT 
> -D_GNU_SOURCE  -O6 -march=i686  -DZAPTEL_OPTIMIZATIONS  
> -DASTERISK_VERSION=\"CVS-HEAD-05/28/05-06:39:38\" 
> -DASTERISK_VERSION_NUM=999999 -DINSTALL_PREFIX=\"\" 
> -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" 
> -DASTVARLIBDIR=\"/var/lib/asterisk\" 
> -DASTVARRUNDIR=\"/var/run/asterisk\" 
> -DASTSPOOLDIR=\"/var/spool/asterisk\" 
> -DASTLOGDIR=\"/var/log/asterisk\" 
> -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" 
> -DASTMODDIR=\"/usr/lib/asterisk/modules\" 
> -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN     
> -fomit-frame-pointer  -Wno-missing-prototypes 
> -Wno-missing-declarations   -DZAPATA_PRI  -DIAX_TRUNKING   -DCRYPTO 
> -fPIC  -o chan_unicall.o chan_unicall.c
> chan_unicall.c:24:34: asterisk/channel_pvt.h: No such file or directory
> chan_unicall.c:59:25: ../asterisk.h: No such file or directory
> chan_unicall.c: In function `unicall_digit':
> chan_unicall.c:623: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_call':
> chan_unicall.c:1127: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_hangup':
> chan_unicall.c:1319: dereferencing pointer to incomplete type
> chan_unicall.c:1524: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_answer':
> chan_unicall.c:1560: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_setoption':
> chan_unicall.c:1586: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_bridge':
> chan_unicall.c:1785: dereferencing pointer to incomplete type
> chan_unicall.c:1786: dereferencing pointer to incomplete type
> chan_unicall.c:1794: dereferencing pointer to incomplete type
> chan_unicall.c:1796: dereferenci ng pointer to incomplete type
> chan_unicall.c:1991: dereferencing pointer to incomplete type
> chan_unicall.c:1992: dereferencing pointer to incomplete type
> chan_unicall.c:2044: dereferencing pointer to incomplete type
> chan_unicall.c:2046: dereferencing pointer to incomplete type
> chan_unicall.c:2050: dereferencing pointer to incomplete type
> chan_unicall.c:2052: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_fixup':
> chan_unicall.c:2098: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_exception':
> chan_unicall.c:2132: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_read':
> chan_unicall.c:2206: dereferencing pointer to incomplete type
> chan_unicall.c:2251: dereferencing pointer to incomplete type
> chan_unicall.c:2394: dereferencing pointer to incomplete type
> chan_unicall.c:2400: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_write':
> chan_unicall.c:2542: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_indicate':
> chan_unicall.c:2614: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_new':
> chan_unicall.c:2727: dereferencing pointer to incomplete type
> chan_unicall.c:2729: dereferencing pointer to incomplete type
> chan_unicall.c:2754: dereferencing pointer to incomplete type
> chan_unicall.c:2755: dereferencing pointer to incomplete type
> chan_unicall.c:2756: dereferencing pointer to incomplete type
> chan_unicall.c:2757: dereferencing pointer to incomplete type
> chan_unicall.c:2758: dereferencing pointer to incomplete type
> chan_unicall.c:2759: dereferencing pointer to incomplete type
> chan_unicall.c:2760: dereferencing pointer to incomplete type
> chan_unicall.c:2761: dereferencing pointer to incomplete type
> chan_unicall.c:2762: dereferencing pointer to incomplete type
> chan_unicall.c:2763: derefe rencing pointer to incomplete type
> chan_unicall.c:2764: dereferencing pointer to incomplete type
> chan_unicall.c:2765: dereferencing pointer to incomplete type
> chan_unicall.c:2766: dereferencing pointer to incomplete type
> chan_unicall.c: In function `setup_unicall':
> chan_unicall.c:4556: warning: passing arg 1 of `ast_channel_register' 
> from incompatible pointer type
> chan_unicall.c:4556: too many arguments to function `ast_channel_register'
> chan_unicall.c:4564: warning: passing arg 1 of `ast_channel_register' 
> from incompatible pointer type
> chan_unicall.c:4564: too many arguments to function `ast_channel_register'
> chan_unicall.c: In function `unload_module':
> chan_unicall.c:4603: warning: passing arg 1 of 
> `ast_channel_unregister' from incompatible pointer type
> chan_unicall.c:4604: warning: passing arg 1 of 
> `ast_channel_unregister' from incompatible pointer type
> chan_unicall.c: In function `unicall_sendtext':
> chan_unicall.c:4666: dereferencing pointe r to incomplete type
> make[1]: *** [chan_unicall.o] Error 1
> make[1]: Leaving directory `/usr/src/asterisk/channels'
> make: *** [subdirs] Error 1
> [root at tvcti asterisk]#
>  
> Thanks





More information about the asterisk-users mailing list