keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about G400/G410 Cards.

Compilation error for chan_extra-2.0.7 with CentOS 6.3

11 years 3 months ago #8521 by claudiuc
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.

Please help. Thank you!
11 years 3 months ago #8523 by Joe.Yung
Hello,

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.

11 years 3 months ago #8529 by Joe.Yung
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:

4663
#elif (ASTERISK_VERSION_NUM >= 10820)
ast_devstate_changed_literal(ast_state_chan2dev(state), AST_DEVSTATE_NOT_CACHABLE, tmp->name);

6274
#elif (ASTERISK_VERSION_NUM >= 10820)
ast_devstate_changed_literal(ast_state_chan2dev(state), AST_DEVSTATE_NOT_CACHABLE, chn->name);

11 years 3 months ago #8531 by claudiuc
It compiles fine now. Many thanks for your help!
10 years 6 months ago #9096 by matis969
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

do you can help me too?
thanks
maurizio

i] Last edited by matis969 at 2013-9-30 04:49 [/i
10 years 6 months ago #9097 by rick.zhu
Hi,

So sorry for that reply you delay.
Please use the asterisk 1.8 version.Now it can't support asterisk 11.5.

Best regards.
Time to create page: 0.041 seconds
Powered by Kunena Forum