FÓRUM DigiVoice

Fórum de Suporte Digivoice

Vocę năo está logado.

#1 24/11/2010 15:44:55

erikvf7
Membro

Problema com Asterisk 1.8.0

Olá, estou tendo problemas com a instalaçăo do dgvchannel 1.0.8-beta1 no Asterisk 1.8.0.

Versőes:

Asterisk 1.8.0
LibPRI 1.4.11.4
VoicerLib 4.2.3.0-rc13

Problema na compilaçăo:

gcc -std=gnu99 -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations  -I/usr/src/asterisk/include -D_REENTRANT -D_GNU_SOURCE -D__LINUX__ -DK_ECHO -march=i686   -c -o chan_dgv.o chan_dgv.c
chan_dgv.c:512: warning: initialization from incompatible pointer type
chan_dgv.c:529: error: unknown field ‘send_digit’ specified in initializer
chan_dgv.c:529: warning: initialization from incompatible pointer type
chan_dgv.c: In function ‘second_call_callback’:
chan_dgv.c:1130: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_dgv.c: In function ‘need_sc_ring_callback’:
chan_dgv.c:1199: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:1220: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:1226: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c: In function ‘dgv_show_alarms’:
chan_dgv.c:3531: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:3531: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c:3731: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:3731: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c: In function ‘dgv_alarms_reset’:
chan_dgv.c:4320: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:4320: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c:4424: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:4424: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c:4552: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:4552: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c:4649: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:4649: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c: At top level:
chan_dgv.c:5265: warning: initialization from incompatible pointer type
chan_dgv.c:5266: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5268: warning: initialization from incompatible pointer type
chan_dgv.c:5269: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5271: warning: initialization from incompatible pointer type
chan_dgv.c:5272: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5274: warning: initialization from incompatible pointer type
chan_dgv.c:5275: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5277: warning: initialization from incompatible pointer type
chan_dgv.c:5278: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5280: warning: initialization from incompatible pointer type
chan_dgv.c:5281: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5283: warning: initialization from incompatible pointer type
chan_dgv.c:5284: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5286: warning: initialization from incompatible pointer type
chan_dgv.c:5287: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5290: warning: initialization from incompatible pointer type
chan_dgv.c:5291: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5293: warning: initialization from incompatible pointer type
chan_dgv.c:5294: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5296: warning: initialization from incompatible pointer type
chan_dgv.c:5297: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5299: warning: initialization from incompatible pointer type
chan_dgv.c:5300: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5302: warning: initialization from incompatible pointer type
chan_dgv.c:5303: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5305: warning: initialization from incompatible pointer type
chan_dgv.c:5306: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5311: warning: initialization from incompatible pointer type
chan_dgv.c:5312: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5314: warning: initialization from incompatible pointer type
chan_dgv.c:5315: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5322: warning: initialization from incompatible pointer type
chan_dgv.c:5323: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5325: warning: initialization from incompatible pointer type
chan_dgv.c:5326: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5328: warning: initialization from incompatible pointer type
chan_dgv.c:5329: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5331: warning: initialization from incompatible pointer type
chan_dgv.c:5332: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5334: warning: initialization from incompatible pointer type
chan_dgv.c:5335: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5337: warning: initialization from incompatible pointer type
chan_dgv.c:5338: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5340: warning: initialization from incompatible pointer type
chan_dgv.c:5341: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5343: warning: initialization from incompatible pointer type
chan_dgv.c:5344: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5347: warning: initialization from incompatible pointer type
chan_dgv.c:5348: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5350: warning: initialization from incompatible pointer type
chan_dgv.c:5351: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5353: warning: initialization from incompatible pointer type
chan_dgv.c:5354: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5356: warning: initialization from incompatible pointer type
chan_dgv.c:5357: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5359: warning: initialization from incompatible pointer type
chan_dgv.c:5360: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5362: warning: initialization from incompatible pointer type
chan_dgv.c:5363: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5368: warning: initialization from incompatible pointer type
chan_dgv.c:5369: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5371: warning: initialization from incompatible pointer type
chan_dgv.c:5372: warning: initialization makes integer from pointer without a cast
chan_dgv.c: In function ‘fixup_pri_channel’:
chan_dgv.c:6126: warning: passing argument 1 of ‘snprintf’ discards qualifiers from pointer target type
/usr/include/stdio.h:363: note: expected ‘char * restrict’ but argument is of type ‘ast_string_field’
chan_dgv.c: In function ‘pri_event_handle’:
chan_dgv.c:6827: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_dgv.c:7308: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7328: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7348: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7549: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7561: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7575: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘format_t’
chan_dgv.c:7597: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:7762: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7774: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7788: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘format_t’
chan_dgv.c:7811: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c: In function ‘fv_thread’:
chan_dgv.c:8819: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘short int’
chan_dgv.c:8843: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c: In function ‘read_samples’:
chan_dgv.c:11596: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:11623: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:11636: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:11646: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘void *’
chan_dgv.c:11678: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:11695: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:11705: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘void *’
chan_dgv.c:11748: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:11774: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:11784: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘void *’
chan_dgv.c: In function ‘QueueFrame’:
chan_dgv.c:11847: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘union ast_frame_subclass’
chan_dgv.c:11862: error: ‘struct ast_channel’ has no member named ‘lock’
chan_dgv.c:11880: warning: format ‘%d’ expects type ‘int’, but argument 8 has type ‘union ast_frame_subclass’
chan_dgv.c:11897: warning: format ‘%d’ expects type ‘int’, but argument 8 has type ‘union ast_frame_subclass’
chan_dgv.c:11914: error: ‘struct ast_channel’ has no member named ‘lock’
chan_dgv.c: In function ‘event_handler’:
chan_dgv.c:12193: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:12694: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:12793: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:12806: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:12914: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13217: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13241: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13278: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13618: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13654: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_dgv.c:13703: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13725: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13875: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:13897: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:14150: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14214: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14258: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14295: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14335: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14688: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14714: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:14742: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15040: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15211: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15229: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15247: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15273: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15433: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘short unsigned int’
chan_dgv.c:15512: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15529: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15536: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:15559: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15600: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_dgv.c:15655: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_dgv.c:15681: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘short unsigned int’
chan_dgv.c: In function ‘dgv_new’:
chan_dgv.c:16900: warning: passing argument 8 of ‘__ast_channel_alloc’ makes pointer from integer without a cast
/usr/src/asterisk/include/asterisk/channel.h:1071: note: expected ‘const char *’ but argument is of type ‘int’
chan_dgv.c:16900: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast
/usr/src/asterisk/include/asterisk/channel.h:1071: note: expected ‘int’ but argument is of type ‘char *’
chan_dgv.c:16900: warning: too many arguments for format
chan_dgv.c:16917: warning: passing argument 1 of ‘snprintf’ discards qualifiers from pointer target type
/usr/include/stdio.h:363: note: expected ‘char * restrict’ but argument is of type ‘ast_string_field’
chan_dgv.c:17002: error: ‘struct ast_channel’ has no member named ‘type’
chan_dgv.c: In function ‘dgv_call’:
chan_dgv.c:17503: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17516: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17516: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17517: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17534: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17590: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17604: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17604: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17605: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17624: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17636: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17645: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17646: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17656: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17733: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17733: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17741: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17741: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17763: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:17802: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:17838: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17838: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17840: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17841: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17897: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c: In function ‘dgv_write’:
chan_dgv.c:17967: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘union ast_frame_subclass’
chan_dgv.c:17985: error: wrong type argument to unary exclamation mark
chan_dgv.c:18007: error: invalid operands to binary != (have ‘int’ and ‘union ast_frame_subclass’)
chan_dgv.c:18021: error: incompatible types when assigning to type ‘short int’ from type ‘union ast_frame_subclass’
chan_dgv.c:18068: error: cannot convert to a pointer type
chan_dgv.c:18081: warning: format ‘%x’ expects type ‘unsigned int’, but argument 10 has type ‘union ast_frame_subclass’
chan_dgv.c:18107: error: cannot convert to a pointer type
chan_dgv.c:18141: error: cannot convert to a pointer type
chan_dgv.c:18170: error: cannot convert to a pointer type
chan_dgv.c:18197: error: cannot convert to a pointer type
chan_dgv.c: In function ‘dgv_hangup’:
chan_dgv.c:18440: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:18483: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:18698: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c: In function ‘dgv_answer’:
chan_dgv.c:19357: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘format_t’
chan_dgv.c:19379: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c: In function ‘dgv_indicate’:
chan_dgv.c:20045: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:20139: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘short int’
chan_dgv.c:20162: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:20788:31: error: macro "ast_config_load" requires 2 arguments, but only 1 given
chan_dgv.c: In function ‘setup_dgv’:
chan_dgv.c:20788: error: ‘ast_config_load’ undeclared (first use in this function)
chan_dgv.c:20788: error: (Each undeclared identifier is reported only once
chan_dgv.c:20788: error: for each function it appears in.)
chan_dgv.c:21329: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:21329: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c:21851:36: error: macro "ast_config_load" requires 2 arguments, but only 1 given
chan_dgv.c: At top level:
chan_dgv.c:21958: warning: no previous prototype for ‘usecount’
chan_dgv.c:21966: warning: no previous prototype for ‘description’
chan_dgv.c:21974: warning: no previous prototype for ‘key’
make: ** [chan_dgv.o] Erro 1

Obrigado,

Erik Vilela

Offline

 

#2 24/11/2010 15:47:47

erikvf7
Membro

Re: Problema com Asterisk 1.8.0

Nova saída, depois do "make clean && make":

./create_rcdl.sh "/usr/src/libpri"
Checking Libpri version at /usr/src/libpri...1.4.11.4

* Libpri already patched, nothing to do.

./create_config.sh "/usr/src/asterisk/include" "/usr/src/libpri"
4230
Checking Asterisk version at /usr/src/asterisk/include/asterisk... 1.8.0
* found stringfield in ast_channel
* no snmp in ast_channel
* found 'indicate' with data
* found second extended ast_channel_alloc
* found clear flag HAS_TIMING_INFO in ast_channel
* found reverse charging detection in libpri
* found extended ast_channel_alloc
* found send_digit_end with duration
* without generic jitter-buffer patch
config.h complete.
gcc -std=gnu99 -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations  -I/usr/src/asterisk/include -D_REENTRANT -D_GNU_SOURCE -D__LINUX__ -DK_ECHO -march=i686   -c -o chan_dgv.o chan_dgv.c
chan_dgv.c:512: warning: initialization from incompatible pointer type
chan_dgv.c:529: error: unknown field ‘send_digit’ specified in initializer
chan_dgv.c:529: warning: initialization from incompatible pointer type
chan_dgv.c: In function ‘second_call_callback’:
chan_dgv.c:1130: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_dgv.c: In function ‘need_sc_ring_callback’:
chan_dgv.c:1199: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:1220: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:1226: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c: In function ‘dgv_show_alarms’:
chan_dgv.c:3531: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:3531: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c:3731: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:3731: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c: In function ‘dgv_alarms_reset’:
chan_dgv.c:4320: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:4320: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c:4424: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:4424: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c:4552: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:4552: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c:4649: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:4649: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c: At top level:
chan_dgv.c:5265: warning: initialization from incompatible pointer type
chan_dgv.c:5266: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5268: warning: initialization from incompatible pointer type
chan_dgv.c:5269: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5271: warning: initialization from incompatible pointer type
chan_dgv.c:5272: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5274: warning: initialization from incompatible pointer type
chan_dgv.c:5275: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5277: warning: initialization from incompatible pointer type
chan_dgv.c:5278: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5280: warning: initialization from incompatible pointer type
chan_dgv.c:5281: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5283: warning: initialization from incompatible pointer type
chan_dgv.c:5284: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5286: warning: initialization from incompatible pointer type
chan_dgv.c:5287: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5290: warning: initialization from incompatible pointer type
chan_dgv.c:5291: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5293: warning: initialization from incompatible pointer type
chan_dgv.c:5294: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5296: warning: initialization from incompatible pointer type
chan_dgv.c:5297: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5299: warning: initialization from incompatible pointer type
chan_dgv.c:5300: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5302: warning: initialization from incompatible pointer type
chan_dgv.c:5303: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5305: warning: initialization from incompatible pointer type
chan_dgv.c:5306: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5311: warning: initialization from incompatible pointer type
chan_dgv.c:5312: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5314: warning: initialization from incompatible pointer type
chan_dgv.c:5315: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5322: warning: initialization from incompatible pointer type
chan_dgv.c:5323: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5325: warning: initialization from incompatible pointer type
chan_dgv.c:5326: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5328: warning: initialization from incompatible pointer type
chan_dgv.c:5329: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5331: warning: initialization from incompatible pointer type
chan_dgv.c:5332: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5334: warning: initialization from incompatible pointer type
chan_dgv.c:5335: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5337: warning: initialization from incompatible pointer type
chan_dgv.c:5338: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5340: warning: initialization from incompatible pointer type
chan_dgv.c:5341: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5343: warning: initialization from incompatible pointer type
chan_dgv.c:5344: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5347: warning: initialization from incompatible pointer type
chan_dgv.c:5348: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5350: warning: initialization from incompatible pointer type
chan_dgv.c:5351: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5353: warning: initialization from incompatible pointer type
chan_dgv.c:5354: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5356: warning: initialization from incompatible pointer type
chan_dgv.c:5357: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5359: warning: initialization from incompatible pointer type
chan_dgv.c:5360: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5362: warning: initialization from incompatible pointer type
chan_dgv.c:5363: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5368: warning: initialization from incompatible pointer type
chan_dgv.c:5369: warning: initialization makes integer from pointer without a cast
chan_dgv.c:5371: warning: initialization from incompatible pointer type
chan_dgv.c:5372: warning: initialization makes integer from pointer without a cast
chan_dgv.c: In function ‘fixup_pri_channel’:
chan_dgv.c:6126: warning: passing argument 1 of ‘snprintf’ discards qualifiers from pointer target type
/usr/include/stdio.h:363: note: expected ‘char * restrict’ but argument is of type ‘ast_string_field’
chan_dgv.c: In function ‘pri_event_handle’:
chan_dgv.c:6827: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_dgv.c:7308: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7328: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7348: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7549: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7561: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7575: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘format_t’
chan_dgv.c:7597: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:7762: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7774: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:7788: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘format_t’
chan_dgv.c:7811: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c: In function ‘fv_thread’:
chan_dgv.c:8819: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘short int’
chan_dgv.c:8843: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c: In function ‘read_samples’:
chan_dgv.c:11596: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:11623: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:11636: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:11646: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘void *’
chan_dgv.c:11678: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:11695: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:11705: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘void *’
chan_dgv.c:11748: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:11774: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:11784: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘void *’
chan_dgv.c: In function ‘QueueFrame’:
chan_dgv.c:11847: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘union ast_frame_subclass’
chan_dgv.c:11862: error: ‘struct ast_channel’ has no member named ‘lock’
chan_dgv.c:11880: warning: format ‘%d’ expects type ‘int’, but argument 8 has type ‘union ast_frame_subclass’
chan_dgv.c:11897: warning: format ‘%d’ expects type ‘int’, but argument 8 has type ‘union ast_frame_subclass’
chan_dgv.c:11914: error: ‘struct ast_channel’ has no member named ‘lock’
chan_dgv.c: In function ‘event_handler’:
chan_dgv.c:12193: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:12694: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:12793: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:12806: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:12914: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13217: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13241: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13278: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13618: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13654: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_dgv.c:13703: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13725: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:13875: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:13897: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:14150: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14214: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14258: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14295: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14335: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14688: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:14714: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:14742: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15040: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15211: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15229: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15247: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15273: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15433: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘short unsigned int’
chan_dgv.c:15512: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15529: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15536: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:15559: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:15600: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_dgv.c:15655: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_dgv.c:15681: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘short unsigned int’
chan_dgv.c: In function ‘dgv_new’:
chan_dgv.c:16900: warning: passing argument 8 of ‘__ast_channel_alloc’ makes pointer from integer without a cast
/usr/src/asterisk/include/asterisk/channel.h:1071: note: expected ‘const char *’ but argument is of type ‘int’
chan_dgv.c:16900: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast
/usr/src/asterisk/include/asterisk/channel.h:1071: note: expected ‘int’ but argument is of type ‘char *’
chan_dgv.c:16900: warning: too many arguments for format
chan_dgv.c:16917: warning: passing argument 1 of ‘snprintf’ discards qualifiers from pointer target type
/usr/include/stdio.h:363: note: expected ‘char * restrict’ but argument is of type ‘ast_string_field’
chan_dgv.c:17002: error: ‘struct ast_channel’ has no member named ‘type’
chan_dgv.c: In function ‘dgv_call’:
chan_dgv.c:17503: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17516: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17516: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17517: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17534: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17590: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17604: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17604: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17605: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17624: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17636: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17645: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17646: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17656: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17733: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17733: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17741: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17741: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17763: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:17802: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:17838: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17838: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17840: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17841: error: ‘struct ast_channel’ has no member named ‘cid’
chan_dgv.c:17897: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c: In function ‘dgv_write’:
chan_dgv.c:17967: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘union ast_frame_subclass’
chan_dgv.c:17985: error: wrong type argument to unary exclamation mark
chan_dgv.c:18007: error: invalid operands to binary != (have ‘int’ and ‘union ast_frame_subclass’)
chan_dgv.c:18021: error: incompatible types when assigning to type ‘short int’ from type ‘union ast_frame_subclass’
chan_dgv.c:18068: error: cannot convert to a pointer type
chan_dgv.c:18081: warning: format ‘%x’ expects type ‘unsigned int’, but argument 10 has type ‘union ast_frame_subclass’
chan_dgv.c:18107: error: cannot convert to a pointer type
chan_dgv.c:18141: error: cannot convert to a pointer type
chan_dgv.c:18170: error: cannot convert to a pointer type
chan_dgv.c:18197: error: cannot convert to a pointer type
chan_dgv.c: In function ‘dgv_hangup’:
chan_dgv.c:18440: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:18483: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:18698: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c: In function ‘dgv_answer’:
chan_dgv.c:19357: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘format_t’
chan_dgv.c:19379: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c: In function ‘dgv_indicate’:
chan_dgv.c:20045: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘int’
chan_dgv.c:20139: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘short int’
chan_dgv.c:20162: error: incompatible types when assigning to type ‘union <anonymous>’ from type ‘char *’
chan_dgv.c:20788:31: error: macro "ast_config_load" requires 2 arguments, but only 1 given
chan_dgv.c: In function ‘setup_dgv’:
chan_dgv.c:20788: error: ‘ast_config_load’ undeclared (first use in this function)
chan_dgv.c:20788: error: (Each undeclared identifier is reported only once
chan_dgv.c:20788: error: for each function it appears in.)
chan_dgv.c:21329: warning: passing argument 1 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘const struct timeval *’ but argument is of type ‘time_t *’
chan_dgv.c:21329: warning: passing argument 2 of ‘ast_localtime’ from incompatible pointer type
/usr/src/asterisk/include/asterisk/localtime.h:57: note: expected ‘struct ast_tm *’ but argument is of type ‘struct tm *’
chan_dgv.c:21851:36: error: macro "ast_config_load" requires 2 arguments, but only 1 given
chan_dgv.c: At top level:
chan_dgv.c:21958: warning: no previous prototype for ‘usecount’
chan_dgv.c:21966: warning: no previous prototype for ‘description’
chan_dgv.c:21974: warning: no previous prototype for ‘key’
make: ** [chan_dgv.o] Erro 1

Offline

 

#3 26/11/2010 11:48:18

r.teodoro
Membro

Re: Problema com Asterisk 1.8.0

Olá, segue howto para compilaçăo da placa.


COMPILANDO ASTERISK 1.8 / LIBPRI / DAHDI / VOICERLIB / DGVCHANNEL

=============================================================================
Por Tiago M Carvalho <tiago.carvalho@digivoice.com.br>
release v0.1 26-11-2010

!!!ATENCAO!!!

- UBUNTU 10.04LTS, SLACKWARE 13.x , FEDORA 12/13
    Adicionar a seguine linha no arquivo dgvchannel-1.0.8_beta1/fifodev/dgvfifo.c:

        #include <linux/sched.h>

01- INSTALAÇĂO DE DEPEDENCIAS UBUNTU (execute os comandos abaixo):

    /usr/bin/aptitude -y update
    /usr/bin/aptitude -y install linux-headers-`uname -r`
    /usr/bin/aptitude -y install autoconf \
                automake binutils bison bzip2 doxygen g++ g++-4.1 gcc \
                libc6-dev libcurl3 libcurl3-dev libmyodbc libncurses5 \
                libncurses5-dev libnewt0.52 libnewt-dev libogg-dev \
                libspeex1 libspeex-dev libssl0.9.7 libssl-dev \
                libvorbis-dev libwrap0-dev libxml2 libxml2-dev make \
                mcrypt openssh-server openssl patch pciutils procps \
                sox unixodbc-dev vim zlib1g-dev

02 - COMPILANDO O DAHDI-LINUX E DAHDI-TOOLS

cd /usr/src

wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/dahdi-linux-2.4.0.tar.gz
wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/dahdi-tools-2.4.0.tar.gz

tar -zxf dahdi-linux-2.4.0.tar.gz
tar -zxf dahdi-tools-2.4.0.tar.gz

ln -s /usr/src/dahdi-linux-2.4.0 /usr/src/dahdi-linux

cd /usr/src/dahdi-linux

   !!!ATENCAO!!!

   Editar o arquivo /usr/src/dahdi-linux/drivers/dahdi/Kbuild

   Descomente as seguintes linhas (retirando o '#' da frentre da linha):

    obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI)            += dahdi.o
    obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DUMMY)        += dahdi_dummy.o
    obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC)        += dahdi_dynamic.o
    obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC_LOC)    += dahdi_dynamic_loc.o
    obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC_ETH)    += dahdi_dynamic_eth.o
    obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC_ETHMF)    += dahdi_dynamic_ethmf.o
    obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_TRANSCODE)        += dahdi_transcode.o

   Comente as seguintes linhas (colocando um "#" na frente da linha, salve e saia):

    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT4XXP)        += wct4xxp/
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTC4XXP)        += wctc4xxp/
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM24XXP)    += wctdm24xxp/
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE12XP)        += wcte12xp/
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM)        += wctdm.o
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_VOICEBUS)        += voicebus/
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCB4XXP)        += wcb4xxp/
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT1XXP)        += wct1xxp.o
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE11XP)        += wcte11xp.o
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCFXO)        += wcfxo.o
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_TOR2)        += tor2.o
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_PCIRADIO)        += pciradio.o
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_XPP)        += xpp/
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_ECHOCAN_JPAH)    += dahdi_echocan_jpah.o
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_ECHOCAN_STEVE)    += dahdi_echocan_sec.o
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_ECHOCAN_STEVE2)    += dahdi_echocan_sec2.o
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_ECHOCAN_KB1)    += dahdi_echocan_kb1.o
    #obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_ECHOCAN_MG2)    += dahdi_echocan_mg2.o

COMPILE COM:
    make clean
    make
    make install

cd /usr/src/dahdi-tools-2.4.0

make clean
./configure
make menuselect
make
make install

03. INSTALAR / ATUALIZAR A LIBPRI:

    cd /usr/src/
    wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.11.4.tar.gz
    tar -zxf libpri-1.4.11.4.tar.gz
    rm -rf /usr/src/libpri
    ln -s /usr/src/libpri-1.4.11.4.tar.gz /usr/src/libpri

    cd /usr/src/libpri
    make clean
    make
    make install

04 - COMPILANDO O ASTERISK (MUDE P/ VERSĂO PARA A QUAL VOCĘ IRÁ UTILIZAR)

cd /usr/src

wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8.0.tar.gz

tar -zxf asterisk-1.8.0

ln -s /usr/src/asterisk-1.8.0 /usr/src/asterisk

cd asterisk

make clean
./configure
make menuselect
make
make install
make samples
make config

06 - COMPILANDO A VOICERLIB

cd /usr/src/
wget http://downloads.digivoice.com.br/pub/voicerlib/linux/unstable/voicerlib-4.2.3.0_rc13.tar.gz
tar -zxvf voicerlib-4.2.3.0_rc13.tar.gz
cd /usr/src/voicerlib-4.2.3.0_rc13
make clean
make
make install
make config

08 - COMPILANDO O DGVCHANNEL

cd /usr/src/

wget http://downloads.digivoice.com.br/pub/dgvchannel/unstable/dgvchannel-1.0.8_beta1.tar.gz

tar -zxf dgvchannel-1.0.8_beta1.tar.gz

cd /usr/src/dgvchannel-1.0.8_beta1

make clean
make
make install
make config
make install_config

==FIM==


Rodrigo Teodoro
DigiVoice - Suporte

Offline

 

#4 02/12/2010 08:28:55

scraipt
Membro

Re: Problema com Asterisk 1.8.0

UP nesse post !!!

Offline

 

#5 08/12/2010 15:48:31

r.teodoro
Membro

Re: Problema com Asterisk 1.8.0

Conforme procedimentos do howto, o problema foi resolvido.

Rodrigo Teodoro
DigiVoice - Suporte


Rodrigo Teodoro
DigiVoice - Suporte

Offline

 

#6 03/03/2011 13:29:00

marcussilva
Membro

Re: Problema com Asterisk 1.8.0

Senhores, boa tarde.

Executamos os passos, mas esta apresentando o erro abaixo ao compilar o dgvchannel:

root@toipbox-pshnutrissa-server:/usr/src/dgvchannel-1.0.8_beta1# make clean
rm -f config.h
rm -f *.so *.o
rm -f fifodev/*.o
rm -f fifodev/*.ko
root@toipbox-pshnutrissa-server:/usr/src/dgvchannel-1.0.8_beta1# make
./create_rcdl.sh "/usr/src/libpri"
Checking Libpri version at /usr/src/libpri...1.4.11.5

* Libpri already patched, nothing to do.

./create_config.sh "/usr/src/asterisk/include" "/usr/src/libpri"
4230
Checking Asterisk version at /usr/src/asterisk/include/asterisk... 1.8.2.4
* found Asterisk version 1.8
* found data pointer in ast_frame
* found stringfield in ast_channel
* no snmp in ast_channel
* found 'indicate' with data
* found second extended ast_channel_alloc
* found clear flag HAS_TIMING_INFO in ast_channel
* found reverse charging detection in libpri
* found extended ast_channel_alloc
* found send_digit_end with duration
config.h complete.
gcc -std=gnu99 -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations  -I/usr/src/asterisk/include -D_REENTRANT -D_GNU_SOURCE -D__LINUX__ -DK_ECHO -march=i686   -c -o chan_dgv.o chan_dgv.c
gcc -shared -Xlinker -x -o chan_dgv.so chan_dgv.o -ldigivoice -lpri
gcc -std=gnu99 -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations  -I/usr/src/asterisk/include -D_REENTRANT -D_GNU_SOURCE -D__LINUX__ -DK_ECHO -march=i686   -c -o app_dgccb.o app_dgccb.c
gcc -shared -Xlinker -x -o app_dgccb.so app_dgccb.o -ldigivoice
gcc -std=gnu99 -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations  -I/usr/src/asterisk/include -D_REENTRANT -D_GNU_SOURCE -D__LINUX__ -DK_ECHO -march=i686   -c -o app_dgflash.o app_dgflash.c
gcc -shared -Xlinker -x -o app_dgflash.so app_dgflash.o -ldigivoice
gcc -std=gnu99 -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations  -I/usr/src/asterisk/include -D_REENTRANT -D_GNU_SOURCE -D__LINUX__ -DK_ECHO -march=i686   -c -o app_dgsendr2groupb.o app_dgsendr2groupb.c
gcc -shared -Xlinker -x -o app_dgsendr2groupb.so app_dgsendr2groupb.o -ldigivoice
gcc -std=gnu99 -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations  -I/usr/src/asterisk/include -D_REENTRANT -D_GNU_SOURCE -D__LINUX__ -DK_ECHO -march=i686   -c -o app_dgsendsms.o app_dgsendsms.c
gcc -shared -Xlinker -x -o app_dgsendsms.so app_dgsendsms.o -ldigivoice
gcc -std=gnu99 -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations  -I/usr/src/asterisk/include -D_REENTRANT -D_GNU_SOURCE -D__LINUX__ -DK_ECHO -march=i686   -c -o auto_conf_dgv.o auto_conf_dgv.c
gcc -o auto_conf_dgv -std=gnu99 -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations  -I/usr/src/asterisk/include -D_REENTRANT -D_GNU_SOURCE -D__LINUX__ -DK_ECHO -march=i686 auto_conf_dgv.o -I/usr/include/voicerlib -lpthread -ldigivoice -lm
make -C fifodev
-p: not found
chkconfig: not found
make[1]: Entrando no diretĂłrio `/usr/src/dgvchannel-1.0.8_beta1/fifodev'
Building FIFO device for kernel 2.6...

make -C /lib/modules/2.6.32-5-686/build -I/usr/include/asm/mach-default/ SUBDIRS=/usr/src/dgvchannel-1.0.8_beta1/fifodev modules
make[2]: Entrando no diretĂłrio `/usr/src/linux-headers-2.6.32-5-686'
-p: not found
chkconfig: not found
  CC [M]  /usr/src/dgvchannel-1.0.8_beta1/fifodev/dgvfifo.o
/usr/src/dgvchannel-1.0.8_beta1/fifodev/dgvfifo.c: In function âdgvfifo_readâ:
/usr/src/dgvchannel-1.0.8_beta1/fifodev/dgvfifo.c:145: error: âTASK_INTERRUPTIBLEâ undeclared (first use in this function)
/usr/src/dgvchannel-1.0.8_beta1/fifodev/dgvfifo.c:145: error: (Each undeclared identifier is reported only once
/usr/src/dgvchannel-1.0.8_beta1/fifodev/dgvfifo.c:145: error: for each function it appears in.)
/usr/src/dgvchannel-1.0.8_beta1/fifodev/dgvfifo.c:145: error: implicit declaration of function âsignal_pendingâ
/usr/src/dgvchannel-1.0.8_beta1/fifodev/dgvfifo.c:145: error: implicit declaration of function âscheduleâ
/usr/src/dgvchannel-1.0.8_beta1/fifodev/dgvfifo.c: In function âdgvfifo_writeâ:
/usr/src/dgvchannel-1.0.8_beta1/fifodev/dgvfifo.c:252: error: âTASK_NORMALâ undeclared (first use in this function)
make[5]: ** [/usr/src/dgvchannel-1.0.8_beta1/fifodev/dgvfifo.o] Erro 1
make[4]: ** [_module_/usr/src/dgvchannel-1.0.8_beta1/fifodev] Erro 2
make[3]: ** [sub-make] Erro 2
make[2]: ** [all] Erro 2
make[2]: Saindo do diretĂłrio `/usr/src/linux-headers-2.6.32-5-686'
make[1]: ** [all] Erro 2
make[1]: Saindo do diretĂłrio `/usr/src/dgvchannel-1.0.8_beta1/fifodev'
make: ** [fifo] Erro 2

Offline

 

#7 04/03/2011 13:53:43

tmcarvalho
Membro

Re: Problema com Asterisk 1.8.0

Boa tarde marcussilva,

Adicionar no arquivo /usr/src/dgvchannel-1.0.8_beta1/fifodev/dgvfifo.c:
        #include<linux/sched.h>

Att,
Tiago M Carvalho

Offline

 

Rodapé do fórum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson