Recommend way to connect three Elastix Servers

Posted on 2011-10-31
Last Modified: 2013-11-12
Greetings to everyone.

I have a customer who has three sites, located in three different cities. Each site has a dedicated VPN between each other (Mesh VPN Topology) and I'd like to know which is the recommended way of interconnecting these sites between each other.

It is best to create MESH IAX trunks between each Elastix server or assign one as a the Master Elasix server and connect the other two sites to it?

Looking forward to your suggestions.

Many thanks in advanced.
Question by:kosmas
    LVL 9

    Accepted Solution

    As you already have a mesh network, why bother to go through the central site for communication between the other two sites?

    Author Comment


    True, I am asking this question because I currently have the three Elastix servers connected in a mesh topology using IAX2 trunks, however for some unknown reason, the AIX trunks are loosing connectivity between each other, so I am wondering if there is a better suggestion - maybe what I am trying to achieve is best done with SIP trunks instead of IAX?  

    Thank you.

    Author Comment

    A quick update on this thread.

    I have proceeded with the setup of IAX2 trunks, however I am experiencing problems.

    I have three sites:  hq, remote1 & remote2.

    To breakdown the issue, I am focusing on one leg ( hq --- remote 1).

    Here, I have created a iax2 trunk between them, however it is showing unreachable from both sides.  I have verified ip connectivity between the two and followed bob's article precisely (

    Further IAX2 debugging shows the following:

    HQ side:
    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE  
       Timestamp: 00004ms  SCall: 02139  DCall: 00000 []
    Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE  
       Timestamp: 00004ms  SCall: 02139  DCall: 00000 []

    Remote1 Side:
    Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00004ms  SCall: 02139  DCall: 00000 []
    Tx-Frame Retry[001] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
       Timestamp: 00004ms  SCall: 02139  DCall: 00000 []

    There is no PONG or ACK sent from Remote 1 to HQ and therefore the trunk is not working.

    Are the any suggestions for this behaviour?

    Many thanks in advanced!
    LVL 9

    Expert Comment

    I think that was caused by the underlying network. Do you connect the sites via VPN? Have you define keepalive parameter in your routers? Do you have NAT enabled? If yes, please refer to General NAT Issues stated here
    LVL 32

    Expert Comment

    raysonlee is correct. This is an underlying network issue. Double check your NAT settings, and while you're at it, you probably want to make sure you directmedia=no (you'll have to find this in Elastix, since I only code Asterisk and don't use GUIs). This keeps asterisk in the loop for all calls, which makes life easier when NAT is involved.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    The point of this post is to give you a copy/paste installation solution to setting up Asterisk 1.6 on Ubuntu 9.04 (or similar) server. # Setup the system apt-get install subversion apt-get install make apt-get install linux-source kernel-p…
    So you think no one can listen in on your VOIP conversations, eh? Well... if you haven't setup Secure Real Time Transport (SRTP), your voice communications can be hacked into by just about anyone! First, let's talk about the intended audience for…
    This video discusses moving either the default database or any database to a new volume.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now