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 - Understanding queue logic - Installing QueueMetrics from scratch - Configuring a queue - Installing the Linksys PAP2-NA port adapter - Music-on-hold without MPG123 - Changing DTMF tone frequency in Asterisk - Utenti/Lenz73 - Installing QueueMetrics - Removing Asterisk - Script to convert music-on-hold to native formats - Compiling Asterisk with OH323 - Improving AstRecipes - Create an account - Compiling Asterisk 1.2 with TDM400 and H323 - Misc links - QueueMetrics - Connecting to FWD using IAX - Backup of an Asterisk system - Upgrading QueueMetrics licences - Licences - asterisk - Installing Queuemetrics on Debian - AddQueueMember and the queue_log file - Monitoring Zaptel Hardware - Checking library dependencies - Add a recipe - Avoiding queue_log file rotation - QueueMetrics logs - Listening to recorded calls using XC-AST - Turning off modules - User stats - Converting sound files for Asterisk - Creating XC-AST database - UPDATING - Recording queue transfers to disk - Installing QueueMetrics using Yum - Utenti/timlitw - SandBox - Quick and Dirty Asterisk sound recorder - Administering QueueMetrics using Tomcat - Simple queue and agent debug monitoring - Asterisk dialplanner - Displaying OH323 calls - Installing XC-AST under Jetty - Installing XC-AST - Utenti/peter-dean - Utenti/lostdave
Home Page - Installing the Asterisk GUI - Compiling Asterisk 1.4 beta - Understanding queue logic - Installing QueueMetrics from scratch - Configuring a queue - Installing the Linksys PAP2-NA port adapter - Music-on-hold without MPG123 - Changing DTMF tone frequency in Asterisk - Utenti/Lenz73 - Installing QueueMetrics - Removing Asterisk - Script to convert music-on-hold to native formats - Compiling Asterisk with OH323 - Improving AstRecipes - Create an account - Compiling Asterisk 1.2 with TDM400 and H323 - Misc links - QueueMetrics - Connecting to FWD using IAX - Backup of an Asterisk system - Upgrading QueueMetrics licences - Licences - asterisk - Installing Queuemetrics on Debian - AddQueueMember and the queue_log file - Monitoring Zaptel Hardware - Checking library dependencies - Add a recipe - Avoiding queue_log file rotation - QueueMetrics logs - Listening to recorded calls using XC-AST - Turning off modules - User stats - Converting sound files for Asterisk - Creating XC-AST database - UPDATING - Recording queue transfers to disk - Installing QueueMetrics using Yum - Utenti/timlitw - SandBox - Quick and Dirty Asterisk sound recorder - Administering QueueMetrics using Tomcat - Simple queue and agent debug monitoring - Asterisk dialplanner - Displaying OH323 calls - Installing XC-AST under Jetty - Installing XC-AST - Utenti/peter-dean - Utenti/lostdave



