× Questions about V100 Transcoding Series

V100-BOX installation in Elastix 2.4

1 year 10 months ago #10768 by jcapurro
Hello,
Using the manual in the product description page for V100-BOX, i already installed dahdi-linux-complete and opvc_tc_linux-x86-1.2.0.
What i don't undertand is this: the V100-BOX has a Ethernet interface. Do this equipment have a default IP address or something?
I've connected it to the Ethernet interface of my Elastix, run tcpdump against it and i see no traffic.

From what i understand from the user manual, the V100-BOX must create a new Ethernet interface in my Elastix server, but i see nothing.

Any guidance would be much appreciated.
1 year 10 months ago #10769 by jcapurro
Hello, again.
I've discovered the installation procedure. Since i didn't found anything in the Openvox Wiki, Forums and the Internet, i'll post the procedure. Again this is for the V100-BOX (A V100 card in a blue box with two connectors: one for 12V power and an Ethernet port) in an Elastix 2.4 with two Ethernet interfaces.

For this setup, we need asume the following:
A. The Ethernet interface of the Elastix server where the V100-BOX is connected is eth1.
B. The IP address of the Elastix server assigned to eth1 is 10.1.1.80/24.
C. The IP address of the V100-BOX is 10.1.1.10/24.

===============================
Setup
===============================
1. Login as root to your Elastix server.
2. Change to /usr/src directory.
- cd /usr/src
3. Download DAHDI current tarball.
- wget downloads.openvox.cn/pub/drivers/dahdi-l...plete-current.tar.gz
4. Download Openvox transcoding module current tarball.
- wget downloads.openvox.cn/pub/drivers/transco...x_x86-current.tar.gz
5. Install build requirements for the Openvox transcoding module
- yum install bison bison-devel ncurses ncurses-devel zlib zlib-devel openssl openssl-devel gnutls-devel gcc gcc-c++ libxml2 libxml2-devel kernel-devel
6. Extract DAHDI tarball.
- tar xfvz openvox_dahdi-linux-complete-current.tar.gz
7. Enter DAHDI source directory.
- cd dahdi-linux-complete-xxxxxx (xxxxx is the current DAHDI version).
8. Build and install DAHDI.
- make && make install && make config
9. Exit DAHDI source directory.
- cd ..
10. Extract Openvox transcoding module tarball.
- tar xfvz opvx_tc_linux_x86-current.tar.gz
11. Enter Openvox transcoding module source directory.
- cd opvx_tx_linux_x86-xxxx (xxxx is the current Openvox transcoding module version).
12. Enter kernel module source directory.
- cd libopxtc
13. Install kernel module.
- make install
14. Exit kernel module source directory.
- cd ..
15. Enter asterisk module source directory.
- cd codec/asterisk
16. Install asterisk module.
- make install
17. Change to root home directory.
- cd
18. Open your V100-BOX, removing the four side Phillips screws and the upper lid.
19. Annotate your V100-BOX MAC address
20. In your Elastix server, configure your Ethernet interface.
- ip ad ad 10.1.1.80/24 dev eth1
21. In your Elastix server, add an ARP entry for the V100-BOX connected to the Ethernet interface eth1.
- arp -i eth1 -s 10.1.1.10 00:00:ca:fe:ba:be (00:00:ca:fe:ba:be is the MAC address of the V100-BOX annotated in step 19).
22. Modify /etc/asterisk/openvox_codec.conf.
- cat >> /etc/asterisk/openvox_codec.conf << EOF
[eth1]
Baseudp=5000
Vocalloaddr=10.1.1.10
EOF
23. Stop Asterisk.
- /etc/init.d/asterisk stop
24. Run Asterisk as root (if you don't run it as root it will fail to start because the Openvox module need to create some sockets and only root
can do that).
- asterisk -vvvgc
25. Check your registered translators
- openvox show translators

With this, you can manage to run the V100-BOX.
Now, what i need to figure out:
1. How to run Asterisk as root in Elastix.
2. How to set permanently the IP address in the V100-BOX without always creating an ARP entry in Elastix.

As soon i figured these out, i'll update this post and create the Wiki page.

Yours truly.
1 year 10 months ago - 1 year 10 months ago #10770 by hua
Hello,

Please change these two locations in this file /var/lib/asterisk/bin/freepbx_engine

location 1:

# Set some defaults which can be re-defined in amportal.conf
AMPDEVUSER=asterisk
AMPDEVGROUP=asterisk
AMPASTERISKUSER=asterisk /Change asterisk to root/
AMPASTERISKGROUP=asterisk /Change asterisk to root/

AMPASTERISKWEBUSER=$AMPASTERISKUSER
AMPASTERISKWEBGROUP=$AMPASTERISKGROUP
AMPVMUMASK=077
ASTETCDIR=/etc/asterisk
FPBXDBUGFILE=/tmp/freepbx_debug.log

location 2:

run_asterisk() {
# check to see if asterisk is running
echo
echo "STARTING ASTERISK"
pid_length=`$PIDOF asterisk|awk '{print length($0)}'`
if [ "$pid_length" != "0" -a "$pid_length" != "" ]
then
echo "Asterisk is already running"
else
# su - asterisk -c "export PATH=$PATH:/usr/sbin && export LD_LIBRARY_PATH=/usr/local/lib && /usr/sbin/safe_asterisk"
export LD_LIBRARY_PATH=/usr/local/lib
umask $AMPVMUMASK
/usr/sbin/safe_asterisk -U asterisk -G $AMPASTERISKGROUP /Comment this line /
/usr/sbin/safe_asterisk /Add this line/
sleep 5
check_asterisk
sleep 1
check_asterisk
echo "Asterisk Started"
fi
}

Hope this will help you .You also can add my skype: upper.hua

Best regards
upper
Time to create page: 0.032 seconds
Powered by Kunena Forum