WELCOME [ Log In · Register ]        SITE [ Search · Page Index · Recent Changes ]    RSS

Chan_Woomera to Multiple SMGs

 

One of the unique features of Chan_Woomera is that it can connect to multiple Woomera Severs (SMG is a Woomera Server).  This allows you have a load balanced and redundant setup ensuring maximum system uptime.  Adding another Woomera Server to the Chan_Woomera configuration is as easy as adding another "profile" to the configuration.

 

 

 

 


Woomera.conf Setup

 

  1. Since we are going to make major changes to the "woomera.conf" configuration file it is best to start from scratch rather then build on the default version of the file.  Start by making a backup of the existing "woomera.conf" file by coping it "woomera.conf.backup"
    # cp /etc/asterisk/woomera.conf /etc/asterisk/woomera.conf.backup
  2. Clean out/remove all the options of the "woomera.conf" file
    # echo " " > /etc/asterisk/woomera.conf
  3. The first section of the file is the "global" settings section.  Copy the following to the file to setup the global options
    [settings]
    ;global debug flag
    ;Production set to 2
    ;Debugging set to 3
    debug=2

  4. Next we need to starting adding a "profile" for each SMG system this Woomera Client will connect to.  Copy the following to the file:
    [smg-A]
    host=<ip address of SMG system>
    port=42420
    audio_ip=<ip address of this system on LAN to SMG system>
    base_media_port=10000
    max_media_ports=1000
    context=sangomaA
    debug=2
    dtmf_enable=1
    jb_enable=0
    progress_enable=0
  5. Repeat step 4 for each SMG system that Chan_Woomera will be connecting to giving it a unique profile name and unique context value (in addition to filling in the correct IP addresses)

 

 


Asterisk Incoming Call Setup

Chan_Woomera sends incoming calls from the Woomera server to the context specified for the the "context=" option for that profile.

For example, if your woomera.conf had the following profile:

[smg-A]
host=192.168.1.10
port=42420
audio_ip=192.168.1.11
base_media_port=10000
max_media_ports=1000
context=sangomaA
debug=2
dtmf_enable=1
jb_enable=0
progress_enable=0

 

and a call came in on Trunk Group 1 (sangoma_isup.conf trunk group 0), the call would enter the Asterisk dial plan at:

[sangomaA1]

 


Asterisk Outgoing Call Setup

For an outgoing call from Asterisk to the Woomera Server you need to specify the profile to use in the dial string.

For example, if your woomera.conf had the following profile:

[smg-A]
host=192.168.1.10
port=42420
audio_ip=192.168.1.11
base_media_port=10000
max_media_ports=1000
context=sangomaA
debug=2
dtmf_enable=1
jb_enable=0
progress_enable=0

 

then you can send a call to trunk group 1 on this profile using the following dial string

dial(woomera/smg-A:g1/${EXTEN},60)