[Asterisk-Dev] Unicall and Asterisk HEAD

Steve Underwood steveu at coppice.org
Fri Jul 15 21:42:45 MST 2005


Hi Denis,

If you look in the 0.0.3pre3 directory you will find versions of 
chan_unicall.c for * 1.0.x and 1.1.x. If you want to continue using 
0.0.2c (I assume that is what you are using) look near the top of 
chan_unicall.c for:

#if (ASTERISK_VERSION_NUM < 011000)
#define OLD_WAY
#endif

This used to select automatically between versions of *. However, this 
approach was broken recently. If you just change that to say

#define OLD_WAY

things might work. I can't guarantee that, though. They keep changing 
things (in ways that often seem to be for the worse), and break things.

Regards,
Steve

Denis Galvão wrote:

> Anybody using Asterisk HEAD with chan_unicall ?
>
> I cant compile it with Asterisk HEAD.
>
> I got asterisk.h and channel_pvt.h from other Asterisk box(ok, just a  
> try), error persists.
>
> Any clue?
>
>
> Denis.
>
>
>
> make[1]: Entering directory `/usr/src/asterisk/channels'
> gcc -c -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes - 
> Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT - 
> D_GNU_SOURCE  -O6 -march=i686  -DZAPTEL_OPTIMIZATIONS      - 
> DBUSYDETECT_MARTIN     -fomit-frame-pointer  -Wno-missing-prototypes - 
> Wno-missing-declarations    -DIAX_TRUNKING   -DCRYPTO -fPIC  -o  
> chan_unicall.o chan_unicall.c
> chan_unicall.c:24:34: asterisk/channel_pvt.h: Arquivo ou diretório nà 
> £o encontrado
> chan_unicall.c:59:25: ../asterisk.h: Arquivo ou diretório não  
> encontrado
> chan_unicall.c: In function `unicall_digit':
> chan_unicall.c:624: error: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_call':
> chan_unicall.c:1128: error: dereferencing pointer to incomplete type
> chan_unicall.c:1166: error: structure has no member named `callerid'
> chan_unicall.c:1172: error: structure has no member named `callerid'
> chan_unicall.c:1172: error: structure has no member named `callerid'
> chan_unicall.c:1172: error: structure has no member named `callerid'
> chan_unicall.c:1172: error: structure has no member named `callerid'
> chan_unicall.c:1172: error: structure has no member named `callerid'
> chan_unicall.c: In function `unicall_hangup':
> chan_unicall.c:1321: error: dereferencing pointer to incomplete type
> chan_unicall.c:1413: error: structure has no member named `bridge'
> chan_unicall.c:1414: error: structure has no member named `bridge'
> chan_unicall.c:1445: error: structure has no member named `bridge'
> chan_unicall.c:1446: error: structure has no member named `bridge'
> chan_unicall.c:1464: error: structure has no member named `bridge'
> chan_unicall.c:1465: error: structure has no member named `bridge'
> chan_unicall.c:1527: error: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_answer':
> chan_unicall.c:1563: error: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_setoption':
> chan_unicall.c:1589: error: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_bridge':
> chan_unicall.c:1788: error: dereferencing pointer to incomplete type
> chan_unicall.c:1789: error: dereferencing pointer to incomplete type
> chan_unicall.c:1797: error: dereferencing pointer to incomplete type
> chan_unicall.c:1799: error: dereferencing pointer to incomplete type
> chan_unicall.c:1994: error: dereferencing pointer to incomplete type
> chan_unicall.c:1995: error: dereferencing pointer to incomplete type
> chan_unicall.c:2047: error: dereferencing pointer to incomplete type
> chan_unicall.c:2049: error: dereferencing pointer to incomplete type
> chan_unicall.c:2053: error: dereferencing pointer to incomplete type
> chan_unicall.c:2055: error: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_fixup':
> chan_unicall.c:2101: error: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_exception':
> chan_unicall.c:2135: error: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_read':
> chan_unicall.c:2209: error: dereferencing pointer to incomplete type
> chan_unicall.c:2254: error: dereferencing pointer to incomplete type
> chan_unicall.c:2321: error: structure has no member named `callerid'
> chan_unicall.c:2334: error: structure has no member named `callerid'
> chan_unicall.c:2397: error: dereferencing pointer to incomplete type
> chan_unicall.c:2403: error: dereferencing pointer to incomplete type
> chan_unicall.c:2474: error: structure has no member named `callerid'
> chan_unicall.c: In function `unicall_write':
> chan_unicall.c:2545: error: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_indicate':
> chan_unicall.c:2618: error: dereferencing pointer to incomplete type
> chan_unicall.c: In function `unicall_new':
> chan_unicall.c:2731: error: dereferencing pointer to incomplete type
> chan_unicall.c:2733: error: dereferencing pointer to incomplete type
> chan_unicall.c:2758: error: dereferencing pointer to incomplete type
> chan_unicall.c:2759: error: dereferencing pointer to incomplete type
> chan_unicall.c:2760: error: dereferencing pointer to incomplete type
> chan_unicall.c:2761: error: dereferencing pointer to incomplete type
> chan_unicall.c:2762: error: dereferencing pointer to incomplete type
> chan_unicall.c:2763: error: dereferencing pointer to incomplete type
> chan_unicall.c:2764: error: dereferencing pointer to incomplete type
> chan_unicall.c:2765: error: dereferencing pointer to incomplete type
> chan_unicall.c:2766: error: dereferencing pointer to incomplete type
> chan_unicall.c:2767: error: dereferencing pointer to incomplete type
> chan_unicall.c:2768: error: dereferencing pointer to incomplete type
> chan_unicall.c:2769: error: dereferencing pointer to incomplete type
> chan_unicall.c:2770: error: dereferencing pointer to incomplete type
> chan_unicall.c:2808: error: structure has no member named `callerid'
> chan_unicall.c:2809: error: structure has no member named `ani'
> chan_unicall.c:2813: error: structure has no member named `rdnis'
> chan_unicall.c: In function `handle_uc_event':
> chan_unicall.c:2955: error: structure has no member named `callerid'
> chan_unicall.c:2956: error: structure has no member named `ani'
> chan_unicall.c: In function `do_monitor':
> chan_unicall.c:3401: error: too few arguments to function  
> `ast_app_has_voicemail'
> chan_unicall.c: In function `setup_unicall':
> chan_unicall.c:4575: warning: passing arg 1 of `ast_channel_register'  
> from incompatible pointer type
> chan_unicall.c:4575: error: too many arguments to function  
> `ast_channel_register'
> chan_unicall.c:4583: warning: passing arg 1 of `ast_channel_register'  
> from incompatible pointer type
> chan_unicall.c:4583: error: too many arguments to function  
> `ast_channel_register'
> chan_unicall.c: In function `unload_module':
> chan_unicall.c:4622: warning: passing arg 1 of  
> `ast_channel_unregister' from incompatible pointer type
> chan_unicall.c:4623: warning: passing arg 1 of  
> `ast_channel_unregister' from incompatible pointer type
> chan_unicall.c: In function `unicall_sendtext':
> chan_unicall.c:4685: error: dereferencing pointer to incomplete type
> chan_unicall.c: At top level:
> chan_unicall.c:342: warning: `hangup_uc2cause' defined but not used
> chan_unicall.c:871: warning: `reset_conf' defined but not used
> chan_unicall.c:1009: warning: `unicall_train_ec' defined but not used
> make[1]: ** [chan_unicall.o] Erro 1
> make[1]: Leaving directory `/usr/src/asterisk/channels'
> make: ** [subdirs] Erro 1





More information about the asterisk-dev mailing list