IAX Trunking Help NAT to NO-NAT

i am having an issue where i have an iax trunk between 2 sites.
site A(1001) can dial site B(6800) extensions but not B>A
site B is behind a firewall with NAT to the internal PBX
site A is on the public interface.

not too sure where to go from here.

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] Macro(“SIP/6800-0000000a”, “user-callerid,SKIPTTL,”) in new stack
– Executing [[email protected]:1] Set(“SIP/6800-0000000a”, “AMPUSER=6800”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/6800-0000000a”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/6800-0000000a”, “1?Set(REALCALLERIDNUM=6800)”) in new stack
– Executing [[email protected]:4] Set(“SIP/6800-0000000a”, “AMPUSER=6800”) in new stack
– Executing [[email protected]:5] Set(“SIP/6800-0000000a”, “AMPUSERCIDNAME=IT - Jon”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/6800-0000000a”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/6800-0000000a”, “AMPUSERCID=6800”) in new stack
– Executing [[email protected]:8] Set(“SIP/6800-0000000a”, “CALLERID(all)=“IT - Jon” <6800>”) in new stack
– Executing [[email protected]:9] ExecIf(“SIP/6800-0000000a”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/6800-0000000a”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [[email protected]:19] Set(“SIP/6800-0000000a”, “CALLERID(number)=6800”) in new stack
– Executing [[email protected]:20] Set(“SIP/6800-0000000a”, “CALLERID(name)=IT - Jon”) in new stack
– Executing [[email protected]:21] NoOp(“SIP/6800-0000000a”, “Using CallerID “IT - Jon” <6800>”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/6800-0000000a”, “Calling Out Route: DataCenter”) in new stack
– Executing [[email protected]:3] Set(“SIP/6800-0000000a”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:4] Set(“SIP/6800-0000000a”, “_NODEST=”) in new stack
– Executing [[email protected]:5] Macro(“SIP/6800-0000000a”, “record-enable,6800,OUT,”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/6800-0000000a”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] ExecIf(“SIP/6800-0000000a”, “0?MacroExit()”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/6800-0000000a”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,15)
– Executing [[email protected]:15] GotoIf(“SIP/6800-0000000a”, “0?IN”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/6800-0000000a”, “1?MacroExit()”) in new stack
– Executing [[email protected]:6] Macro(“SIP/6800-0000000a”, “dialout-trunk,1,1001,”) in new stack
– Executing [[email protected]:1] Set(“SIP/6800-0000000a”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/6800-0000000a”, “0?sub-pincheck,s,1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/6800-0000000a”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“SIP/6800-0000000a”, “DIAL_NUMBER=1001”) in new stack
– Executing [[email protected]:5] Set(“SIP/6800-0000000a”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“SIP/6800-0000000a”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/6800-0000000a”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [[email protected]:9] GotoIf(“SIP/6800-0000000a”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/6800-0000000a”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/6800-0000000a”, “outbound-callerid,1”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/6800-0000000a”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/6800-0000000a”, “0?Set(REALCALLERIDNUM=6800)”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/6800-0000000a”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/6800-0000000a”, “USEROUTCID=3057777913”) in new stack
– Executing [[email protected]:7] Set(“SIP/6800-0000000a”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/6800-0000000a”, “TRUNKOUTCID=”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/6800-0000000a”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“SIP/6800-0000000a”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/6800-0000000a”, “1?Set(CALLERID(all)=3057777913)”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/6800-0000000a”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/6800-0000000a”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/6800-0000000a”, “0?sub-flp-1,s,1”) in new stack
– Executing [[email protected]:13] Set(“SIP/6800-0000000a”, “OUTNUM=1001”) in new stack
– Executing [[email protected]:14] Set(“SIP/6800-0000000a”, “custom=IAX2/dcmiami”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/6800-0000000a”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [[email protected]:16] Macro(“SIP/6800-0000000a”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/6800-0000000a”, “”) in new stack
– Executing [[email protected]:17] GotoIf(“SIP/6800-0000000a”, “0?bypass,1”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/6800-0000000a”, “0?customtrunk”) in new stack
– Executing [[email protected]:19] Dial(“SIP/6800-0000000a”, “IAX2/dcmiami/1001,300,”) in new stack
– Called IAX2/dcmiami/1001
– Hungup ‘IAX2/dcmiami-17089’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:20] NoOp(“SIP/6800-0000000a”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 50”) in new stack
– Executing [[email protected]:21] Goto(“SIP/6800-0000000a”, “s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] Set(“SIP/6800-0000000a”, “RC=50”) in new stack
– Executing [[email protected]:2] Goto(“SIP/6800-0000000a”, “50,1”) in new stack
– Goto (macro-dialout-trunk,50,1)
– Executing [[email protected]:1] Goto(“SIP/6800-0000000a”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] GotoIf(“SIP/6800-0000000a”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [[email protected]:3] NoOp(“SIP/6800-0000000a”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 50 - failing through to other trunks”) in new stack
– Executing [[email protected]:4] Set(“SIP/6800-0000000a”, “CALLERID(number)=6800”) in new stack
– Executing [[email protected]:7] Macro(“SIP/6800-0000000a”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“SIP/6800-0000000a”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/6800-0000000a”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/6800-0000000a”, “0?intracompany,1”) in new stack
– Executing [[email protected]:4] Playback(“SIP/6800-0000000a”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
– <SIP/6800-0000000a> Playing ‘all-circuits-busy-now.gsm’ (language ‘en’)
> 0x13826be0 – Probation passed - setting RTP source address to 10.101.3.210:60388
– <SIP/6800-0000000a> Playing ‘pls-try-call-later.gsm’ (language ‘en’)
– Executing [[email protected]:5] Congestion(“SIP/6800-0000000a”, “20”) in new stack
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘SIP/6800-0000000a’ in macro ‘outisbusy’
== Spawn extension (from-internal, 1001, 7) exited non-zero on ‘SIP/6800-0000000a’
– Executing [[email protected]:1] Macro(“SIP/6800-0000000a”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/6800-0000000a”, “1?endmixmoncheck”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [[email protected]:9] NoOp(“SIP/6800-0000000a”, “End of MIXMON check”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/6800-0000000a”, “1?nomeetmemon”) in new stack
– Goto (macro-hangupcall,s,28)
– Executing [[email protected]:28] NoOp(“SIP/6800-0000000a”, “End of MEETME check”) in new stack
– Executing [[email protected]:29] GotoIf(“SIP/6800-0000000a”, “1?noautomon”) in new stack
– Goto (macro-hangupcall,s,34)
– Executing [[email protected]:34] NoOp(“SIP/6800-0000000a”, “TOUCH_MONITOR_OUTPUT=”) in new stack
– Executing [[email protected]:35] GotoIf(“SIP/6800-0000000a”, “1?noautomon2”) in new stack
– Goto (macro-hangupcall,s,41)
– Executing [[email protected]:41] NoOp(“SIP/6800-0000000a”, “MONITOR_FILENAME=”) in new stack
– Executing [[email protected]:42] GotoIf(“SIP/6800-0000000a”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,45)
– Executing [[email protected]:45] GotoIf(“SIP/6800-0000000a”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,48)
– Executing [[email protected]:48] GotoIf(“SIP/6800-0000000a”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,50)
– Executing [[email protected]:50] AGI(“SIP/6800-0000000a”, “hangup.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
– <SIP/6800-0000000a>AGI Script hangup.agi completed, returning 0
– Executing [[email protected]:51] Hangup(“SIP/6800-0000000a”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on ‘SIP/6800-0000000a’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/6800-0000000a’

It’s not a NAT problem, from your post

– Executing [[email protected]:19] Dial(“SIP/6800-0000000a”, “IAX2/dcmiami/1001,300,”) in new stack
– Called IAX2/dcmiami/1001
– Hungup ‘IAX2/dcmiami-17089’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:20] NoOp(“SIP/6800-0000000a”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 50”) in new stack

dcmiami doesn’t know what to do with 1001