IAX for trunking two asterisk servers over the internet

Hi,

Apologies if this question has been answered before. Is the following setup possible.

clients->asterisk->NAT->INTERNET->NAT->asterisk->clients

clients should be able to call each other without any problems using SIP.
IAX is used between the servers for trunking.

As of now, one side of the setup is complete and working fine.

Thanks

Yes it is possible see more on this here

voip-info.org/wiki/index.php … al+servers

Thanks rusty,
Another quick question. which hardware is cheaper?
A VOIP phone or an Analogue phone connected to an ATA??

Thanks in advance.

For those of you using asterisk@home, I put this together if you just want to do this via the GUI and avoid VI :smile:
(Excuse the crudity…but i did test it and it worked just fine…but I would be interested of any tuning that could be done with it)

PBX1 IP address = 192.168.17.100
PBX2 IP address = 192.168.17.100

ON PBX1

Select "Trunks”
Select “Add IAX2 Trunk”

Scroll to “Outgoing Settings”

Trunk Name: “PBX2”

Under PEER Details place the following:

allow=ulaw
disallow=all
host=192.168.17.200
secret=1234
type=friend
username=PBX2

Scroll to “Incoming Settings”

User Context: “PBX1”

Under USER Details place the following:

allow=ulaw
context=from-internal
disallow=all
host=192.168.17.200
secret=1234
type=user
username=PBX1

Click on “Submit Changes” button and then “Apply” your changes

Goto “Outbound Routing”

Give it a route name of your choice, example “PBX1toPBX2”

Scroll down to Dial Patterns and enter: 4|.

Under Trunk Sequence pick your IAX2 Trunk in the drop box “IAX/PBX2”

Click ADD

Click SUBMIT

Apply your changes

ON Computer 2, IPAddress = 192.168.17.200

Select "Trunks” from the left menu under “Setup”
Select “Add IAX2 Trunk”

Scroll to “Outgoing Settings”

Trunk Name: “PBX1”

Under PEER Details place the following:

allow=ulaw
disallow=all
host=192.168.17.100
secret=1234
type=friend
username=PBX1

Scroll to “Incoming Settings”

User Context: “PBX2”

Under USER Details place the following:

allow=ulaw
context=from-internal
disallow=all
secret=1234
type=user
username=PBX2

Submit Changes and apply

Goto “Outbound Routing”

Give it a route name of your choice, example “PBX2toPBX1”

Scroll down to Dial Patterns and enter: 3|.

Under Trunk Sequence pick your IAX2 Trunk in the drop box “IAX/PBX1”

Click ADD

Click SUBMIT

Apply your changes

Now, users of each PBX can now call users on the other by adding in the proper dial pattern in front of the call.

In our example, users on the PBX2 on 192.168.17.200 simply dial a 3, followed by the extension number of the user on PBX1 192.168.17.100 and the extension will ring. Users on the other PBX simply dial a 4 followed by the extension number.

[quote=“lohitbob”]Another quick question. which hardware is cheaper?
A VOIP phone or an Analogue phone connected to an ATA??[/quote]
That depends on how much the VOIP phone costs, how much the analogue phone costs and how much the ATA costs! Therefore it depends on you, to a large extent.

Regardless of what costs more and what costs less, i think a VOIP phone is better - it will probably have features that you won’t be able to get with the analogue phone and ATA combination.

You can get a dirt Voip phone for $50. (even cheaper i would guess if you scowered EBAY enough)

But a GOOD voip phone, its pretty competative to a decent multi line phone. We run Polycom501 (about 45 or so last count) and they work great, and i think they listed for $200 each, which is great for this type of phone. It was definitely a no brainer in a business case for a larger operation.

Thanks for all the info guys. I think I have gathered enough information to implement asterisk based VOIP solution.

But the only problem is convincing the higher ups about the reliability of the asterisk server. Though they were happy when I gave them a demo using soft phones, they are worried about support and other usual FUD that people
spread about Open Source based solutions.

Thanks again for all your tips/suggestions.

-Lohit