Summary: | ASTERISK-04881: chan_sip2.c | ||
Reporter: | Tomas Komarek (komoush) | Labels: | |
Date Opened: | 2005-08-23 06:25:26 | Date Closed: | 2011-06-07 14:10:31 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_sip/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | I've tried to compile the new chan_sip2.c, but I've received these errors while compiling: gcc -shared -Xlinker -x -o chan_sip.so chan_sip.o gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DASTERISK_VERSION=\"1.0.9\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -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 -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC -c -o chan_sip2.o chan_sip2.c chan_sip2.c: In function `sip_call': chan_sip2.c:1994: error: structure has no member named `cid' chan_sip2.c: In function `sip_new': chan_sip2.c:2551: error: structure has no member named `cid' chan_sip2.c:2572: error: structure has no member named `cid' chan_sip2.c:2574: error: structure has no member named `cid' chan_sip2.c:2576: error: structure has no member named `cid' chan_sip2.c:2578: error: structure has no member named `cid' chan_sip2.c: In function `process_sdp': chan_sip2.c:3344: warning: implicit declaration of function `ast_bridged_channel' chan_sip2.c:3347: warning: passing arg 1 of `ast_moh_stop' makes pointer from integer without a cast chan_sip2.c:3349: warning: passing arg 1 of `ast_moh_start' makes pointer from integer without a cast chan_sip2.c: In function `initreqprep': chan_sip2.c:4264: error: structure has no member named `cid' chan_sip2.c:4265: error: structure has no member named `cid' chan_sip2.c: In function `register_peer_exten': chan_sip2.c:4986: warning: passing arg 8 of `ast_add_extension' from incompatible pointer type chan_sip2.c:4986: warning: passing arg 9 of `ast_add_extension' from incompatible pointer type chan_sip2.c:4986: error: too many arguments to function `ast_add_extension' chan_sip2.c: In function `sip_show_peer': chan_sip2.c:6720: warning: implicit declaration of function `ast_callerid_merge' chan_sip2.c:6720: warning: format argument is not a pointer (arg 3) chan_sip2.c: In function `attempt_transfer': chan_sip2.c:8241: warning: assignment makes pointer from integer without a cast chan_sip2.c:8242: warning: assignment makes pointer from integer without a cast chan_sip2.c: In function `handle_request': chan_sip2.c:8659: warning: assignment makes pointer from integer without a cast chan_sip2.c:8740: warning: assignment makes pointer from integer without a cast chan_sip2.c: In function `sip_request_call': chan_sip2.c:9440: error: `AST_CAUSE_UNREGISTERED' undeclared (first use in this function) chan_sip2.c:9440: error: (Each undeclared identifier is reported only once chan_sip2.c:9440: error: for each function it appears in.) chan_sip2.c: In function `build_user': chan_sip2.c:9689: warning: implicit declaration of function `ast_callerid_split' chan_sip2.c: In function `realtime_update_peer': chan_sip2.c:9920: warning: implicit declaration of function `ast_update_realtime' chan_sip2.c: In function `realtime_peer': chan_sip2.c:9961: warning: implicit declaration of function `ast_load_realtime' chan_sip2.c:9961: warning: assignment makes pointer from integer without a cast chan_sip2.c:9963: warning: assignment makes pointer from integer without a cast chan_sip2.c:10002: warning: implicit declaration of function `ast_destroy_realtime' chan_sip2.c: In function `realtime_user': chan_sip2.c:10062: warning: assignment makes pointer from integer without a cast chan_sip2.c: In function `sip_getheader': chan_sip2.c:11129: error: structure has no member named `cid' chan_sip2.c: In function `load_module': chan_sip2.c:11452: warning: passing arg 4 of `ast_channel_register_ex' from incompatible pointer type chan_sip2.c: At top level: chan_sip2.c:496: warning: `contact_text' defined but not used chan_sip2.c:521: warning: `global_domain_strict' defined but not used chan_sip2.c:5273: warning: `list_route' defined but not used make[1]: *** [chan_sip2.o] Error 1 make[1]: Leaving directory `/lost+found/asterisk-1.0.9/channels' make: *** [subdirs] Error 1 Any suggestions how to solve this? Thanks | ||
Comments: | By: Michael Jerris (mikej) 2005-08-23 06:52:20 What is chan_sip2.c? By: Russell Bryant (russell) 2005-08-23 07:27:46 whatever you are using was written for cvs head, not 1.0 |