Hello,
We have a G400E card with 4 modules and when trying to install chan_extra, I get the following compilation error:
Thu Jan 17 18:41:28 EET 2013 : Checking asterisk configuration files ...
Thu Jan 17 18:41:28 EET 2013 :
[ OK ]
Thu Jan 17 18:41:29 EET 2013 : Checking asterisk patch files ...
Thu Jan 17 18:41:29 EET 2013 :
[ OK ]
Thu Jan 17 18:41:30 EET 2013 : Backuping asterisk configuration files ...
Thu Jan 17 18:41:30 EET 2013 :
[ OK ]
Thu Jan 17 18:41:32 EET 2013 : Patching asterisk configure files ...
Thu Jan 17 18:41:32 EET 2013 :
[ OK ]
Thu Jan 17 18:41:35 EET 2013 : Installing OpenVox chan_extra module to /usr/src/asterisk-1.8.20.0 ...
Thu Jan 17 18:41:35 EET 2013 :
[ OK ]
chan_extra.c: In function ‘extra_new’:
chan_extra.c:4665: error: incompatible type for argument 2 of ‘ast_devstate_changed_literal’
/usr/src/asterisk-1.8.20.0/include/asterisk/devicestate.h:167: note: expected ‘enum ast_devstate_cache’ but argument is of type ‘ast_string_field’
chan_extra.c:4665: error: too few arguments to function ‘ast_devstate_changed_literal’
chan_extra.c: In function ‘sms_send_new’:
chan_extra.c:6274: error: incompatible type for argument 2 of ‘ast_devstate_changed_literal’
/usr/src/asterisk-1.8.20.0/include/asterisk/devicestate.h:167: note: expected ‘enum ast_devstate_cache’ but argument is of type ‘ast_string_field’
chan_extra.c:6274: error: too few arguments to function ‘ast_devstate_changed_literal’
make[1]: *** [chan_extra.o] Error 1
make: *** [channels] Error 2
===========================================================================
Installing Asterisk: make ...
[ Failure ]
===========================================================================
We were able to install the 1.2.1 version on CentOS, but not version 2.0.7.
We never compiled Asterisk 1.8.20 on our chan_extra 2.0.7 at present. Because it 's the newest(release on 2013-1-14). We have to build a similar scenario and test it first.
And we will give you a solution here as soon as possible once we get it done.
Hello,
Please go to your chan_extra source code package and fine chan_extra.c, open it by your editor and insert the following codes to the corresponding lines:
hi,
i'm new on this forum.
Hi ave the same problem and insert the code on lines +4663 and +6274 dont resolve the problem.
i have asterisk 11.5 and chan_extra 2.0.7 on centos 6.4.
[CC] chan_extra.c -> chan_extra.o
chan_extra.c: In function ‘extra_new’:
chan_extra.c:4663: error: incompatible type for argument 2 of ‘ast_devstate_changed_literal’
/usr/src/asterisk-11.5.1/include/asterisk/devicestate.h:167: note: expected ‘enum ast_devstate_cache’ but argument is of type ‘const char *’
chan_extra.c:4663: error: too few arguments to function ‘ast_devstate_changed_literal’
chan_extra.c: In function ‘sms_send_new’:
chan_extra.c:6272: error: incompatible type for argument 2 of ‘ast_devstate_changed_literal’
/usr/src/asterisk-11.5.1/include/asterisk/devicestate.h:167: note: expected ‘enum ast_devstate_cache’ but argument is of type ‘const char *’
chan_extra.c:6272: error: too few arguments to function ‘ast_devstate_changed_literal’
make[1]: *** [chan_extra.o] Error 1
make: *** [channels] Error 2