Two Nodes on One Server: Difference between revisions

From AllStarLink Wiki
Jump to navigation Jump to search
imported>N8THN
Created page with "This how-to describes how to go from a 1 node system to a 2 node system. Changing a system from one node to two nodes requires that 4 text files be modified: extensions.con..."
 
imported>N8THN
m formating
Line 3: Line 3:
Changing a system from one node to two nodes requires that 4 text files be modified:
Changing a system from one node to two nodes requires that 4 text files be modified:


extensions.conf


extensions.conf
iax.conf
iax.conf
rpt.conf
rpt.conf
usbradio.conf
usbradio.conf


 
=== USB Device Enumeration ===
 
USB Device Enumeration
Because of the way USB bus device identification works, new USB fobs must be added one at a time. In other words, you must have a working single node system before you can make it a two node system. This is because the USB channel driver remembers where all the previously defined nodes are located, and when it finds new hardware, it will find the next unassigned stanza in usbradio.conf and assign the new hardware to that node. It is very important the order that the USB fobs connected to the computer are not disturbed or plugged in to different USB sockets, as this will confuse the USB channel driver and require that usbradio.conf have all the interfaces removed or commented out and added back in one at a time.
Because of the way USB bus device identification works, new USB fobs must be added one at a time. In other words, you must have a working single node system before you can make it a two node system. This is because the USB channel driver remembers where all the previously defined nodes are located, and when it finds new hardware, it will find the next unassigned stanza in usbradio.conf and assign the new hardware to that node. It is very important the order that the USB fobs connected to the computer are not disturbed or plugged in to different USB sockets, as this will confuse the USB channel driver and require that usbradio.conf have all the interfaces removed or commented out and added back in one at a time.


 
=== A Word About USB Hubs ===
A Word About USB Hubs
The use of USB hubs should be avoided if at all possible as we have found that some hubs corrupt the audio streams coming form and going to the USB fobs. If you must use a USB hub, use only multi-TT types, but be forewarned that you may have to test several models until you find one which works acceptably, if at all.
The use of USB hubs should be avoided if at all possible as we have found that some hubs corrupt the audio streams coming form and going to the USB fobs. If you must use a USB hub, use only multi-TT types, but be forewarned that you may have to test several models until you find one which works acceptably, if at all.


 
=== Procedure ===
Procedure


The procedure to configure a Multi-node system consisting of fictional nodes 1234 and 5678 is as follows:
The procedure to configure a Multi-node system consisting of fictional nodes 1234 and 5678 is as follows:
Make backup copies of rpt.conf, extensions.conf, iax.conf, and usbradio.conf.
# Make backup copies of rpt.conf, extensions.conf, iax.conf, and usbradio.conf.
Edit the usbradio.conf file. Make a copy of the [usb] stanza in usbradio.conf.
# Edit the usbradio.conf file. Make a copy of the [usb] stanza in usbradio.conf.
Paste the copy just below the original stanza.
# Paste the copy just below the original stanza.
Rename the stanza name of the copy to [usb1]
# Rename the stanza name of the copy to [usb1]
Change the configuration settings of [usb1] to suit the new radio.
# Change the configuration settings of [usb1] to suit the new radio.
Save the new usbradio.conf file.
# Save the new usbradio.conf file.
Edit the rpt.conf file. Make a copy of your Node stanza in rpt.conf
# Edit the rpt.conf file. Make a copy of your Node stanza in rpt.conf
Paste the copy just below the original node stanza 1234
# Paste the copy just below the original node stanza 1234
Change the node stanza of the copy to the new node number 5678. and change rxchannel to point to the name of the device in usbradio.conf:
# Change the node stanza of the copy to the new node number 5678. and change rxchannel to point to the name of the device in usbradio.conf: <code>[1234]</code><code>rxchannel=usb</code><code>.</code><code>.</code><code>.</code><code>[5678]</code><code>rxchannel=usb1</code><code>.</code><code>.</code><code>.</code>
 
# Change any configuration settings in the new node stanza to suit the new radio
[1234]
# Add a second local entry for node 5678 to the nodes stanza to allow local connections to be made: <code>[nodes]</code><code>1234 = radio@127.0.0.1/1234,NONE</code><code>5678 = radio@127.0.0.1/5678,NONE</code>
rxchannel=usb
# Save the new rpt.conf file
.
# Edit the iax.conf file
.
# Add an additional register statement for the second node, 5678 just below the first statement. <code>register=1234:12345678@register.allstarlink.org ; First Node</code><code>register=5678:12345678@register.allstarlink.org ; Second Node</code>
.
# Save the new iax.conf file.
[5678]
# Edit the extensions.conf file
rxchannel=usb1
# Add the 5678 extension in the radio-secure context to call the rpt application using the new node number: <code>[radio-secure]</code><code>exten => 1234,1,rpt,1234</code><code>exten => 5678,1,rpt,5678</code>
.
# Save extensions.conf and exit the text editor.
.
# Stop and restart asterisk
.
# Adjust the signal levels on the new interface using the usbradio audio setup procedure documented in the previous HOWTO. Issue the command radio active usb1 from the Asterisk CLI to switch to the new USB interface (usb1) before starting the audio adjustment process.
 
 
Change any configuration settings in the new node stanza to suit the new radio
Add a second local entry for node 5678 to the nodes stanza to allow local connections to be made:
 
[nodes]
1234 = radio@127.0.0.1/1234,NONE
5678 = radio@127.0.0.1/5678,NONE
 
 
Save the new rpt.conf file
Edit the iax.conf file
Add an additional register statement for the second node, 5678 just below the first statement.
 
register=1234:12345678@register.allstarlink.org ; First Node
register=5678:12345678@register.allstarlink.org ; Second Node
 
 
Save the new iax.conf file.
Edit the extensions.conf file
Add the 5678 extension in the radio-secure context to call the rpt application using the new node number:
 
[radio-secure]
exten => 1234,1,rpt,1234
exten => 5678,1,rpt,5678
 
 
Save extensions.conf and exit the text editor.
Stop and restart asterisk
Adjust the signal levels on the new interface using the usbradio audio setup procedure documented in the previous HOWTO. Issue the command radio active usb1 from the Asterisk CLI to switch to the new USB interface (usb1) before starting the audio adjustment process.

Revision as of 22:53, 26 January 2019

This how-to describes how to go from a 1 node system to a 2 node system.

Changing a system from one node to two nodes requires that 4 text files be modified:

extensions.conf

iax.conf

rpt.conf

usbradio.conf

USB Device Enumeration

Because of the way USB bus device identification works, new USB fobs must be added one at a time. In other words, you must have a working single node system before you can make it a two node system. This is because the USB channel driver remembers where all the previously defined nodes are located, and when it finds new hardware, it will find the next unassigned stanza in usbradio.conf and assign the new hardware to that node. It is very important the order that the USB fobs connected to the computer are not disturbed or plugged in to different USB sockets, as this will confuse the USB channel driver and require that usbradio.conf have all the interfaces removed or commented out and added back in one at a time.

A Word About USB Hubs

The use of USB hubs should be avoided if at all possible as we have found that some hubs corrupt the audio streams coming form and going to the USB fobs. If you must use a USB hub, use only multi-TT types, but be forewarned that you may have to test several models until you find one which works acceptably, if at all.

Procedure

The procedure to configure a Multi-node system consisting of fictional nodes 1234 and 5678 is as follows:

  1. Make backup copies of rpt.conf, extensions.conf, iax.conf, and usbradio.conf.
  2. Edit the usbradio.conf file. Make a copy of the [usb] stanza in usbradio.conf.
  3. Paste the copy just below the original stanza.
  4. Rename the stanza name of the copy to [usb1]
  5. Change the configuration settings of [usb1] to suit the new radio.
  6. Save the new usbradio.conf file.
  7. Edit the rpt.conf file. Make a copy of your Node stanza in rpt.conf
  8. Paste the copy just below the original node stanza 1234
  9. Change the node stanza of the copy to the new node number 5678. and change rxchannel to point to the name of the device in usbradio.conf: [1234]rxchannel=usb...[5678]rxchannel=usb1...
  10. Change any configuration settings in the new node stanza to suit the new radio
  11. Add a second local entry for node 5678 to the nodes stanza to allow local connections to be made: [nodes]1234 = radio@127.0.0.1/1234,NONE5678 = radio@127.0.0.1/5678,NONE
  12. Save the new rpt.conf file
  13. Edit the iax.conf file
  14. Add an additional register statement for the second node, 5678 just below the first statement. register=1234:12345678@register.allstarlink.org ; First Noderegister=5678:12345678@register.allstarlink.org ; Second Node
  15. Save the new iax.conf file.
  16. Edit the extensions.conf file
  17. Add the 5678 extension in the radio-secure context to call the rpt application using the new node number: [radio-secure]exten => 1234,1,rpt,1234exten => 5678,1,rpt,5678
  18. Save extensions.conf and exit the text editor.
  19. Stop and restart asterisk
  20. Adjust the signal levels on the new interface using the usbradio audio setup procedure documented in the previous HOWTO. Issue the command radio active usb1 from the Asterisk CLI to switch to the new USB interface (usb1) before starting the audio adjustment process.