Trunking Two PIAFs with IAX... perplexing issue

w1ve

Guru
Joined
Nov 15, 2007
Messages
842
Reaction score
223
Hey folks,

My buddy and I are trying to trunk our PIAFs together using IAX, so we stop spending money, and we can dial specific extensions.

My PIAF is a hosted version, with a public IP.

His is behind a router, but is DMZ'd to a FIOS public IP.

Here's the trouble: He can "see me", but I cannot see him.
Therefore, he can make calls to me, but I cannot call via the trunk to him.

Both ends have IAX trunk settings like this:

type=friend
context=from-internal
host=ip.of.system.we.are.trunking.to
disallow=all
allow=ulaw
qualify=yes

When we look at trunk status on his system, we can see the trunk pinging fine.

I get a status of unreachable to his piaf pbx.

Now, if he sets up an IAX extension, I can connect (from a different system than my PIAF) with an IAX softphone to his public ip and it works fine. Additionally, i can ping his ip from piaf, and I can SSH to his box from piaf.

I am trunked to voip.ms with IAX, and it works fine. So, that would rule out some port problem on my end.

Thoughts??
 
he will need to open the IAX port on his firewall for your inbound calls to come thru DON'T DMZ.

A better way - install hamachi and go thru the VPN 5.x.x.x and you don't have to worry about firewalls, because the ham0 interface has 100% access as its not firewalled.

That is how I am linking 6+ boxes here so far - here is Ward's howto: http://nerdvittles.com/?p=615

very good article, will let you call any extension on the box by just using a box prefix - ex - work ext 1000 i dial 21000 from home and away it goes thru the IAX trunk

Holler if you need more info

Myk
 
myk,

You've missed the point. With IAX trunking, I dial 8+extension from either end and it works.

He does have the iax port open on the firewall -- otherwise, I would not be able to connect externally from an IAX softphone. That works perfectly -- hence the perplexing problem.

If I can't find the solution, I might try hamachi -- but I want to understand why it does not work now.

Gerry
 
If you don't mind, post your sanitized trunk settings (both ends) so we can take a look.
 
Here is my trunk at home to get to the box at work:

Trunk Desc: PBX-RENA
Dial Rules: 2|XXXX

Outgoing Settings:
Code:
Trunk Name: PBX-RENA
host=pbx-rena
secret=<SECRET>
type=peer
qualify=2000
Incoming Settings:
Code:
User Context: PBX-TCS
secret=<SECRET>
type=friend
context=from-internal
host=pbx-tcs
user=pbx-tcs
qualify=2000
so when I want to dial work I dial 2XXXX using the 4 digit extension I want to reach

Rena trunk to me is setup just the opposite and they dial 1XXXX to reach me

If you follow wards instructions on the article I posted above, it will work as advertised weather using VPN or non VPN

my pbx-<name> resolves to a 5.x.x.x ip address in my hosts file
 
Without the settings from both machines it will be hard to tell what is amiss. In your outbound settings, you have the host as PBX-RENA. The host= field is usually used for the IP or the FQDN of the remote machine.

One thing that I do notice is in your dial rules. You will need an outbound route with 2XXXX in the dial patterns and pointing to this trunk.
 
This is Gerry, W1VE.. The guy with the original problem...

At my pbx, which has a public ip on the internet, I have for my buddy's trunk:

type=friend
context=from-internal
host=my.buddies.public.ip
disallow=all
allow=ulaw
qualify=yes

Again, my buddie's pbx is on a private ip, but DMZ'd to the public IP above. If he configures an IAX extension, I can connect to his public IP, and the extension works fine.


Now, on HIS pbx, the trunk to ME works fine:

type=friend
context=from-internal
host=my.public.ip.address
disallow=all
allow=ulaw
qualify=yes

both trunks have outbound routes that use 8 as a prefix to dial the route. We can watch the asterisk debugger, and I see a call being placed via IAX to his system. On his asterisk debugger, he sees no call processing... but, if we turn on iax2 debugging, we see messages. The call just never rings, and eventually times out.

Thank for your thoughts, John!

Gerry
 
Without the settings from both machines it will be hard to tell what is amiss. In your outbound settings, you have the host as PBX-RENA. The host= field is usually used for the IP or the FQDN of the remote machine.

One thing that I do notice is in your dial rules. You will need an outbound route with 2XXXX in the dial patterns and pointing to this trunk.

My setup works just fine, and my outbound route has 2XXXX 3XXXX etc, and then it has 1 trunk listed after the other. By setting the dial pattern on my trunks, i have ONE outbound route called internal-network, I just add NXXXX as new machines are added - went this way cause I could not get dundi working - and my asking for help thread died because of no interest. Even sent a email to you offering to pay to help setup dundi - but no response :(
 
This is Gerry, W1VE.. The guy with the original problem...

Have you even look at Ward's How-To Article I posted above - it tells you 1 2 3 EXACTLY what and how to set it up.....
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top