Connecting two servers via IAX

I cannot seem to be able to connect my two Asterisk servers and place a call between them!
In the iax.conf files of each I have the following:

[code][boxb-peer]
username=boxA-user
type=peer
secret=password
host=172.16.0.234
disallow=all
allow=gsm
allow=ulaw
allow=alaw

[boxB-user]
type=user
secret=password
host=172.16.0.234
disallow=all
allow=gsm
allow=ulaw
allow=alaw
context=from-internal[/code]

where, of course, switch boxB for boxA as appropriate.
In the extensions.conf file, I have the following line in the [from-internal] context (the context for calls that originate on local extensions)

When I place a call, I know the system enters this application but the call always fails. The softphone says:

“Call failed: 403 forbidden”

I don’t think the call ever makes it to the other PBX.

If someone could please help me I would gretly appreciate it!
Thanks,
Lilli

Lilli,

Suonds like a problem I had with AAH today. I was getting the same message reported and the line was hanging up on me. the CLI with set verbose 3 was showing nothing, but SIP DEBUG saw some activity.

My problem was that the default action for from-sip-external was

Answer
Congestion
Hangup

Once I changed this to something more meaningful, all worked fine. You may want to track down what your from-internal context does.

You could try commenting out the current actions and put something basic in there like

Answer
Wait(10)
Hangup

Then you should be able to tell if you got there. You could also add something like

Nop(I got here)

so with set vebose 3 you would see the message to.

HTH,
Andrew