keywords: ip pbx voip gateway gsm gateway

×

Notice

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

how to update chan_extra on elastix 2.4

10 years 8 months ago #9014 by m.jandaghy
hi
how can i update chan_extra in elastix 2.4 with no problem in cdr or without cdr! to chan_extra 2.0.7
chan_extra in elastix 2.4 is >>> 2.0.3
asterisk version >>> 1.8.20
thanks
10 years 8 months ago #9016 by rick.zhu
Hi,

As chan_extra 2.0.7 does not support Elastix 2.4 yet, it is not available for deploying on Elastix 2.4 with Elastix-dahdi install mode.

But you can follow steps below to make it work:

1. Download asterisk-1.8.20.0.tar.gz, chan_extra-2.0.7.tar.gz, openvox_dahdi-linux-complete-2.6.1+2.6.1.tar.gz under /usr/src, decompress them.

http://downloads.openvox.cn/pub/drivers/dahdi-linux-complete/releases/1.3.5/openvox_dahdi-linux-complete-2.6.1+2.6.1.tar.gz



2. Patch Dahdi and Asterisk source code:
1)
# vim /usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/Kbuild

obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_PCIRADIO) += pciradio.o

endif




# 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

Comment the line in RED and save.


2) # vim /usr/src/chan_extra-2.0.7/src/chan_extra/src/chan_extra.c
[align=left]open it by your editor and insert the following codes to the corresponding lines:[/align]

under line 4663

[align=left][font=Helvetica, Arial, sans-serif]#elif (ASTERISK_VERSION_NUM >= 10820)[/font][/align]
[align=left][font=Helvetica, Arial, sans-serif] ast_devstate_changed_literal(ast_state_chan2dev(state), AST_DEVSTATE_NOT_CACHABLE, tmp->name);[/font][/align]

[align=left]under line 6274[/align]
#elif (ASTERISK_VERSION_NUM >= 10820)
ast_devstate_changed_literal(ast_state_chan2dev(state), AST_DEVSTATE_NOT_CACHABLE, chn->name);




3. Run /usr/src/chan_extra-2.0.7/install.sh


Choose "Source code install" mode, the scripts will search the source codes you downloaded. Follow it to finish installation.


Warming:


DO NOT INSTALL asterisk configuration files in the last step of the script.





4. Rebuild asterisk

# cd /usr/src/asterisk-1.8.20.0

# make menuselect

Enable app_mysql and cdr_mysql modules, press X to save and quit.

# make

# make install



5. Restart amportal service
# amportal stop
# service dahdi restart
# amportal start



OK, DONE!
10 years 8 months ago #9017 by m.jandaghy
in the kbuild which line is red that i comment it?!!!
10 years 8 months ago #9018 by rick.zhu
this line:
# obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_XPP) += xpp/

I'm sorry,I forget to colour it.
10 years 8 months ago #9020 by m.jandaghy
the make manu select doesnt work!

CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-1.8.20.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-1.8.20.0/menuselect'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" nmenuselect
make[1]: Entering directory `/usr/src/asterisk-1.8.20.0/menuselect'
make[1]: Nothing to be done for `nmenuselect'.
make[1]: Leaving directory `/usr/src/asterisk-1.8.20.0/menuselect'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" gmenuselect
make[1]: Entering directory `/usr/src/asterisk-1.8.20.0/menuselect'
make[1]: Nothing to be done for `gmenuselect'.
make[1]: Leaving directory `/usr/src/asterisk-1.8.20.0/menuselect'
make[1]: Entering directory `/usr/src/asterisk-1.8.20.0'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[2]: Entering directory `/usr/src/asterisk-1.8.20.0/menuselect'
make[2]: `makeopts' is up to date.
make[2]: Leaving directory `/usr/src/asterisk-1.8.20.0/menuselect'
Unknown value '' found in build_tools/menuselect-deps for NATIVE_ARCH
Terminal must be at least 80 x 27.
menuselect changes NOT saved!
make[1]: Leaving directory `/usr/src/asterisk-1.8.20.0'
[root@voip19 asterisk-1.8.20.0]#
10 years 8 months ago #9021 by m.jandaghy
oh sorry
when i maximize the terminal window it working properly :D
Time to create page: 0.048 seconds
Powered by Kunena Forum