Echolink.conf - Echolink Channel Driver
The chan_echolink channel driver allows AllStar nodes to register on and communicate with the EchoLink network. The following information is originally from echolink.conf.
Enable the Channel Driver
In /etc/asterisk/modules.conf, you will first need to enable the channel driver
load => chan_echolink.so
A asterisk restart would be required, but continue to set-up your /etc/asterisk/echolink.conf
From an app_rpt/Allstar node, Echolink connections look just like Allstar/App_rpt connections except the Echolink node numbers have been prefixed with a 3 and padded out to 7 digits with leading zeroes. For instance, if you want to connect to Echolink node 1234 on your app_rpt system you would dial *3 followed by 3001234. If you have a 6 digit Echolink node number 123456, you would dial *3 followed by 3123456. As you can see we have reserved Allstar node numbers with a leading 3 for the Echolink number space.
For users originating from an Echolink node using Echolink supplied software, nothing changes for them, they just dial the 4 or 6 digit Echolink node number assigned to your app_rpt system and they get connected!
With the addition of the chan_echolink Asterisk channel driver direct connections to and from echolink to Asterisk/app_rpt are now supported. No other programs (e.g. rtpDir, or the link box) are required. With chan_echolink, EchoLink nodes become part of the AllStar link number space.
First, if you are behind a NAT router, please make sure the ports for Echolink service are correctly forwarded to your asterisk system.
|Port To Forward
Additionally, if you are running a firewall and not a consumer grade router which is configured to limit outbound access to a specific number of ports, you must enable UDP outbound access for 5198, and 5199, and TCP outbound access for port 5200.
Current documentation on what ports need to be forwarded can be found on echolink.org in the EchoLink, Firewalls, and Routers section.
To activate the Echolink channel driver, all that's required is a properly formatted configuration file. A base configuration file has been included with Both ACID and Limey Linux and is located in /usr/src/configs/examples/echolink. Copy this file to /etc/asterisk, and edit it to match your callsign, password and node number assignment from Echolink.org. The sample echolink.conf file is as follows:
Setup el0 Stanza
This to your active assigned Allstar node number.
This is the echolink node call sign.
This the Allstar context. It used for the dialing plan setup in extensions.conf. (Leave this default unless you have good reason to change.)
This is the direction of your antenna. Allowable values are: 0=omni, 1=45deg, 2=90deg, 3=135deg, 4=180deg, 5=225deg, 6=270deg, 7=315deg, 8=360deg
This contains a comma delimited list of stations that should be denied access. See the Controlling Access section for more information.
This is your email address.
This is sets the frequency of your node in megahertz's.
This is the gain of your antenna in db. Allowable values are 0 to 9.
This is the ASML height of your node. Allowable values are 0=10' ,1=20',2=40',3=80' ,4=160' ,5=320' ,6=640' ,7=1280',8=2560',9=5120'
This is latitude of your node.
This is the longitude of the node. Longitude in decimal degrees. Negative number for west longitudes
This sets the maximum 'at-once' connections allowed (see discussion below **)
This is your name.
This is your assigned echolink node number.
This contains a comma delimited list of stations that should be permitted access. See the Controlling Access section for more information.
This is the power, in watts, of your node. The allowable values are: 0=0W, 1=1W, 2=4W, 3=9W, 4=16W, 5=25W, 6=36W, 7=49W, 8=64W, 9=81W
This is the echolink node password.
This is the location of the node.
This sets the name of the file to store recorded echolink audio.
This sets the rtcp timeout in seconds. If an rtcp packet has not been received before this timer expires, the station will be disconnected.
These entries define the servers used to contact the echolink servers. These should not normally be changed.
server1=server1.echolink.org server2=server2.echolink.org server3=server3.echolink.org server4=backup.echolink.org
This is sets the tone of your node in hertz's.
How many stations will your node support? The 2 most particular factors will be how much CPU/Memory power you have AND how much bandwidth you have available. So you should not expect a bunch from cpu's under 1ghz or from memory below 1gb.
Once you have made the changes, restart Asterisk, and within a few minutes time, the node should show up on the echolink.org website under Current Logins.
app_rpt Node Stanza Keys
Note the below go in the node stanza in rpt.conf, not echolink.conf
|0 = do not announce Echolink nodes at all, 1 = announce only the node number (Allstar-translated), 2 = announce only the call of the echolink station, 3 = announce both
|0 = telemetry output off, 1 = telemetry output on, 2 = timed telemetry output on command execution and for a short time thereafter, 3 = follow local telemetry mode
|0 = disallow users to change current echolink telemetry setting with a COP command, 1 = Allow users to change the setting with a COP command
Echolink connections may be denied on a per-callsign basis. This is done by using the deny and permit key values in the above [el0] stanza. The default is to allow all connections if the permit and deny keywords are not present. If a permit is specified, then only the callsigns specified in the permit statement will be allowed to connect. If deny is specified, then the callsign(s) specified will be denied access and the connection will be terminated. Commas are used to delimit multiple callsigns for permit and deny keys. Wildcards are supported so that whole classes of connections can be rejected. Examples:
To deny w6xxx you would add the statement: deny=w6xxx
To prohibit computer-based connections you would write: permit=*-*
To allow access to only a select group of callsigns: permit=w6abc,w6def,...
Setting Audio Levels
The audio gain going to and coming from the Echolink system may be set from within a app_rpt Node Stanza as follows:
erxgain=-3.0 ; defaults to -3.0 db etxgain=3.0 ; defaults to 3.0 db.
The chan_echolink driver supports debugging output.
Debugging can be a activated with the command echolink debug level x (Where x = 0-7. 0=off). With debugging turned on, chan_echolink will output various messages to the terminal related to connecting to nodes, etc.
In addition to turning on debugging, you can use the following commands to query your node's copy of the EchoLink database:
|Dump EchoLink database
|Query EchoLink station by callsign
|echolink dbget callsign <EchoLink Callsign> (i.e., KG7QIN-R)
|Query EchoLink station by nodename
|echolink dbget nodename <EchoLink node number> (i.e., 407301)
|Query EchoLink station by ip address
|echolink dbget ip <EchoLink node ip address>
When debugging EchoLink connectivity issues with your AllStar node, remember the following:
- Never run the EchoLink application from your mobile device (cell phone/tablet/etc) using the same network as your AllStar node. This will lead to problems with one or the other not being able to connect to/register/use the EchoLink servers or other EchoLink nodes. (This also applies to running the Windows application on the same network as your AllStar node).
- If using the EchoLink application on your mobile device (cell phone/tablet/etc), make sure that the EchoLink application is not set to run/is not running in the background. Having the application running in the background can cause problems with your AllStar node not being able to connect to/register/use the EchoLink servers or other EchoLink nodes.
Note: Same network refers to the the Public IP address that both your AllStar node AND the device running the EchoLink application are using -- even if they are on different subnets internally. The Public IP is what the EchoLink servers/network sees and uses when communicating with your node/device.
The chan_echolink driver currently:
- Does not process chat text.
- Only recognizes a few remote text commands.
- Does not have a busy, deaf or mute feature.
- Does not have a banned or private station list. (Access controls are rudimentary and on a per station basis. See Controlling Access)
- Does not have an admin list, only local 127.0.0.1 access.
- Does not have a customizable welcome text message.
- Does not support login or connect timeouts.
- Does not have a max TX time limit.
- Does not support activity reporting.
- Does not have event notifications.
- Does not have any stats.
- Does not have any callsign prefix restrictions.
- Does not have any loop detection.
- Allows "doubles" (newer version of the software are preventing this. Work in progress)
The following remote text commands can be sent to the chan_echolink driver running on your AllStar link node using netcat:
|Request a connect
|Request a disconnect
|Turn on/off recording