Amfeltec PIRANHA USB Series User manual

Contents
User Manual, Revision 2.3
Page ii
Contents
1About this Document.....................................................................................................1
1.1 Purpose......................................................................................................................1
1.2 Feedback....................................................................................................................1
1.3 Revision History..........................................................................................................1
2General Description......................................................................................................2
2.1 Description .................................................................................................................2
2.2 Features.....................................................................................................................3
3Requirements & Installation ..........................................................................................4
3.1 Requirements.............................................................................................................4
3.2Installation..................................................................................................................4
3.2.1 Hardware Installation...............................................................................................4
3.2.2 Software Installation................................................................................................4
3.2.3 Channels Configuration...........................................................................................5
3.2.4 Starting Driver .........................................................................................................6
3.2.5 Stopping Driver........................................................................................................7
3.2.6 Additional Driver Parameters ..................................................................................7
3.2.7 FreePBX distribution installation notes....................................................................8
4Operation Instructions.................................................................................................10
4.1 Rotary switch setting ................................................................................................10
4.2 Fail-over operation mode (SKU-082-01)..................................................................10
4.3 Standard operation mode (SKU-082-02) .................................................................12
4.4Firmware update ......................................................................................................12
4.5 Led indicator.............................................................................................................13
5Ordering Information ...................................................................................................15
5.1 Standard package....................................................................................................15
5.1.1 SKU-082-01 – USB-FXO Adapter (with Fail-over support)...................................15
5.1.2 SKU-082-01 – USB-FXO Adapter (without Fail-over support)..............................15
5.1.3 SKU-083-01 – USB-FXS Adapter ........................................................................15
6Appendix A: Limited warranty .....................................................................................16
7Appendix B: Available analog lines operation modes .................................................17

Contents
User Manual Revision 2.3
Page iii
Figures
Figure 1: Amfeltec USB-FXO Adapter ................................................................................2
Figure 2: Amfeltec USB-FXO Adapter Connection scheme ...............................................3
Figure 3: Amfeltec USB-FXS Adapter Connection scheme................................................3
Figure 4: Amfeltec USB-FXO Adapter. Bottom side with Rotary switch ...........................10
Figure 5: Amfeltec USB-FXO Adapter. Fail-over connection scheme ..............................11
Figure 6: Amfeltec USB-FXO Adapter. Standard connection scheme..............................12


User Manual, Revision 2.3
Page 1
1 About this Document
1.1 Purpose
This document describes installation, features, specification and operation for AMFELTEC USB-
FXO/FXS Adapters.
1.2 Feedback
AMFELTEC Corp. makes every effort to ensure that the information contained in this document is
accurate and complete at time of release. Please contact AMFELTEC Corp. if you find any errors,
inconsistence or have trouble understanding any part of this document.
To provide your feedback, please send an email to support@amfeltec.com
Your comments or corrections are greatly valued in our effort for excellence and continued
improvement.
1.3 Revision History
Rev. No. Description Rev. Date
1.0 Initial Release January 14, 2014
2.0 FXO/FXS Adapters User Manual May 23, 2014
2.1 Firmware version check and update
reminder June 26, 2014
2.2 Minor changes September 30, 2014
2.3 Adjustments for DAHDI 3.1.0 February 2, 2020

User Manual, Revision 2.3
Page 2
2 General Description
2.1 Description
USB-FXO/FXS Adapters were designed to connect the popular Asterisk®-based PBX system to a
PSTN line and analog phone. They are heading the line of PIRANHA USB Adapters™ family.
These devices provide a cost-effective PSTN/analog phone connection for telecommunication
systems. Ultra compact design makes it a part of the cable between your PBX USB port and PSTN
jack in the wall (USB FXO Adapter) or analog phone (USB FXS Adapter).
Figure 1: Amfeltec USB-FXO/FXS Adapter

User Manual, Revision 2.3
Page 3
Figure 2: Amfeltec USB-FXO Adapter connection diagram
Figure 3: Amfeltec USB-FXS Adapter connection diagram
2.2 Features
•Cost-effective PSTN / analog phone connection
•Easy installation
•USB 2.0 compliant
•Supports multiple USB-FXO/FXS devices in one system
•Low power consumption, powered via USB interface
•Visual status indicator
•Ultra-small implementation
•Fail-over support (USB-FXO)
•RoHS-compliant

User Manual, Revision 2.3
Page 4
3 Requirements and Installation
3.1 Requirements
To operate the USB-FXO/FXS Adapters you will need a PBX system in a Linux environment with
Asterisk®, DAHDI, and Amfeltec’s USB driver installed.
Currently, the driver supports Linux Kernel 2.6.x, 3.x, and 4.15.x, and DAHDI 2.5 to 3.1.0.
3.2 Installation
The USB-FXO/FXS Adapters can be connected or disconnected at any time during software
installation and operation. However, for successful DAHDI and Asterisk® operations it is
necessary to plug in the Adapter before this software is initiated.
3.2.1 Hardware Installation
Set the Rotary switch on the bottom of Adapter to desired 1-9 position. Detailed information about
Rotary switch setting you can find in Operation Instructions section, below.
To install USB-FXO/FXS Adapter just connect it to your PBX USB port. Connection via USB
hub is not recommended.
3.2.2 Software Installation
Switch to /usr/src folder
•# cd /usr/src
Download and install latest DAHDI release from asterisk.org.
Download and install Asterisk® release from asterisk.org.
Download latest amfeltec_usb driver release from amfeltec.com:
•For DAHDI 2.5 or older
owget http://amfeltec.com/drivers/USB-FXO/amfeltec_usb-<version>.tgz
o# tar xzf amfeltec_usb-<version>.tgz
o# cd amfeltec_usb-<version>
o# make DAHDI_DIR=/usr/src/dahdi-linux-<version>

User Manual, Revision 2.3
Page 5
•For DAHDI 3.1.0
owget http://amfeltec.com/drivers/USB-FXO/amfeltec_usb_4.0.4.tar.gz
o# tar –zxvf amfeltec_usb_4.0.4.tar.gz
o# cd amfeltec_usb_4.0.4
o# make DAHDI_DIR=/usr/src/dahdi-linux
•# make install
•# make boot
If you use the FreePBX distribution, see special installation notes in FreePBX section, below.
To operate Amfeltec USB device you need to be sure that current Firmware version on the device
is the latest Firmware version posted on our site. Please check your Firmware version (see
instructions in Firmware update section below)
3.2.3 Channels Configuration
First, make necessary changes in /etc/dahdi/system.conf file.
To create one FXO channel with FXS signaling for USB-FXO Adapter:
•fxsks=1
•echocanceller=mg2,1
To create one FXS channel with FXO signaling for USB-FXS Adapter:
•fxoks=2
•echocanceller=mg2,2
Next, make necessary changes in /etc/asterisk/chan_dahdi.conf file, for example:
•context=from-dahdi
•group=0
•echocancel=yes
•signaling=fxs_ks

User Manual, Revision 2.3
Page 6
•channel => 1
•context=from-internal
•group=1
•echocancel=yes
•signaling=fxo_ks
•channel => 2
3.2.4 Starting Driver
You do not need to start amf_usb driver manually when connecting Amfeltec USB-FXO/FXS
Adapter. Generally, it will start on boot with DAHDI service.
To start (restart) the driver manually, type in the following command:
•# service dahdi restart (or /etc/init.d/dahdi restart)
Check if the amf_usb driver was started:
Loading DAHDI hardware modules:
amf_usb: [OK]
Shortly after start you will see the solid Red LED light inside USB-FXO PSTN connector or solid
Grin LED light inside USB-FXS telephone connector. Next enter:
•# service dahdi status (or /etc/init.d/dahdi status)
If Amfeltec USB-FXO device was connected, DAHDI span was registered and the FXO channel
was configured, you will see:
### Span 1: AMF_USB_FXO “AMF_USB_FXO 1” (MASTER)
1 FXO FXSKS (EC: MG2 - INACTIVE)
If Amfeltec USB-FXS device was connected, DAHDI span was registered and the FXS channel
was configured, you will see:
### Span 1: AMF_USB_FXS “AMF_USB_FXS 1” (MASTER)
1 FXS FXOKS (EC: MG2 - INACTIVE)
This manual suits for next models
2
Table of contents
Other Amfeltec Adapter manuals



















