AstRecipes » Peering two Asterisk servers using IAX
It is quite easy to "join together" two Asterisk server using IAX. Unfortunately it takes a while to get things right by reading the docs, so here is a ready-made recipe that you can use to have two Asterisk box dial each others extensions. We imagine that we have two Asterisk boxen, called foo and bar. foo is at 192.168.1.2 while bar is at 192.168.2.3. Le's start with foo; here is its iax.conf file:[general]
bindport = 4569 ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
allow=gsm
mailboxdetail=yes
[bar]
type=friend
username=foo
secret=password123
auth=plaintext
host=192.168.2.3
context=fromiax
peercontext=fromiax
qualify=yes
trunk=yes
[general]
bindport = 4569 ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
allow=gsm
mailboxdetail=yes
[foo]
type=friend
username=bar
secret=password123
auth=plaintext
host=192.168.1.2
context=fromiax
peercontext=fromiax
qualify=yes
trunk=yes
Softlinks:
Home Page - Installing the Asterisk GUI - Compiling Asterisk 1.4 beta - Installing QueueMetrics from scratch - Understanding queue logic - Installing QueueMetrics - Changing DTMF tone frequency in Asterisk - Music-on-hold without MPG123 - Installing the Linksys PAP2-NA port adapter - Configuring a queue - Utenti/Lenz73 - Removing Asterisk - Compiling Asterisk with OH323 - AddQueueMember and the queue_log file - Create an account - Script to convert music-on-hold to native formats - Improving AstRecipes - Misc links - QueueMetrics - Add a recipe - Installing Queuemetrics on Debian - Upgrading QueueMetrics licences - Compiling Asterisk 1.2 with TDM400 and H323 - Avoiding queue_log file rotation - Licences - QueueMetrics logs - asterisk - Monitoring Zaptel Hardware - Connecting to FWD using IAX - User stats - UPDATING - Checking library dependencies - Installing QueueMetrics using Yum - Listening to recorded calls using XC-AST - SandBox - Backup of an Asterisk system - Turning off modules - Converting sound files for Asterisk - Utenti/timlitw - Creating XC-AST database - Utenti/peter-dean - Administering QueueMetrics using Tomcat - Installing XC-AST under Jetty - Installing XC-AST - Quick and Dirty Asterisk sound recorder - Recording queue transfers to disk - Displaying OH323 calls - Asterisk dialplanner - Simple queue and agent debug monitoring - Debugging Qloaderd installation
Home Page - Installing the Asterisk GUI - Compiling Asterisk 1.4 beta - Installing QueueMetrics from scratch - Understanding queue logic - Installing QueueMetrics - Changing DTMF tone frequency in Asterisk - Music-on-hold without MPG123 - Installing the Linksys PAP2-NA port adapter - Configuring a queue - Utenti/Lenz73 - Removing Asterisk - Compiling Asterisk with OH323 - AddQueueMember and the queue_log file - Create an account - Script to convert music-on-hold to native formats - Improving AstRecipes - Misc links - QueueMetrics - Add a recipe - Installing Queuemetrics on Debian - Upgrading QueueMetrics licences - Compiling Asterisk 1.2 with TDM400 and H323 - Avoiding queue_log file rotation - Licences - QueueMetrics logs - asterisk - Monitoring Zaptel Hardware - Connecting to FWD using IAX - User stats - UPDATING - Checking library dependencies - Installing QueueMetrics using Yum - Listening to recorded calls using XC-AST - SandBox - Backup of an Asterisk system - Turning off modules - Converting sound files for Asterisk - Utenti/timlitw - Creating XC-AST database - Utenti/peter-dean - Administering QueueMetrics using Tomcat - Installing XC-AST under Jetty - Installing XC-AST - Quick and Dirty Asterisk sound recorder - Recording queue transfers to disk - Displaying OH323 calls - Asterisk dialplanner - Simple queue and agent debug monitoring - Debugging Qloaderd installation



