Connected 2 boxes - audio problem

I am using IAX2 to connect 2 boxes – Box “A” and Box “B”. I can call an extension between the 2 boxes with no problem. However, when dialing from Box “A” and having Box “B” call an outside number, the call is accept but there is no audio on either side.

Asterisk CLI when Box “A” has Box “B” place an outside call.

–Called BoxB-peer-16387/XXXXXXXX
–Call accepted by 0.0.0.0 (format ulaw)
–Format for call is ulaw
–IAX2/BoxB-peer-16387 is ringing
–IAX2/BoxB-peer-16387 is making progress passing it to SIP/701-09d600b0
–IAX2/BoxB-peer-16387 stopped sounds
–IAX2/BoxB-peer-16387 answered SIP/701-09d600b0
–Hungup ‘IAX2/XYZ-peer-16387’

Does the line above, IAX2/BoxB-peer-16387 stopped sounds, mean anything. This same line appears when an extension is call, but there is no audio problem.

Would appreciate any help to get the audio to work.

Thanks

Please post your Settings for the iax2-trunks

Thank you for your response. Here’s my settings.

Box A - IAX Trunk

Trunk Name: BoxB-peer

Peer Details:
host=my.dyndns.org
deny=all
allow=g729&ulaw
username=BoxA-user
type=peer
qualify=yes
secret=1234

User Context: BoxB-peer

User Details:
secret=1234
type=user
context=from-internal

Box B - IAX Trunk

Trunk Name: BoxA-peer

Peer Details:
host=my1.dyndns.org
deny=all
allow=g729&ulaw
username=BoxB-user
type=peer
qualify=yes
secret=1234

User Context: BoxA-peer

User Details:
secret=1234
type=user
context=from-internal

before we go down the road to far, Can phones on Box B call out ok? Also provide some information on versions of things you are using (FreePBX, asterisk, OS, etc).

Yes, a phone on Box B can call out and audio is ok. I am using PBX In A Flash. Box A has Centos 5.2; Asterisk 1.4.15; and FreePBX 2.4.1, while Box B has Centos 5.2; Asterisk 1.4.21.2; and FreePBX 2.4.