Trunk to Trunk issue

Hi,

CUCM----trunk----PBXA----trunk-------PBXB
2012---------------------------------6002

Got a CUCM on one side, FreePBX(PBXA) in middle and another FreePBX(PBXB) on another side. Cant get calls from CUCM to PBXB to work.

PBXB>CUCM fine
PBXA>PBXB fine
PBXB>PBXA fine
CUCM>PBXA fine
CUCM>PBXB doesnt work. “Number not inservice”

Debug is below. Can anyone shine any light on this for me?

Rich

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]_CUCM2:1] Set(“SIP/KIT_CUCM2-00000067”, “GROUP()=OUT_3”) in new stack
– Executing [[email protected]_CUCM2:2] Goto(“SIP/KIT_CUCM2-00000067”, “from-trunk,6002,1”) in new stack
– Goto (from-trunk,6002,1)
– Executing [[email protected]:1] Set(“SIP/KIT_CUCM2-00000067”, “__FROM_DID=6002”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/KIT_CUCM2-00000067”, “Received an unknown call with DID set to 6002”) in new stack
– Executing [[email protected]:3] Goto(“SIP/KIT_CUCM2-00000067”, “s,a2”) in new stack
– Goto (from-trunk,s,2)
– Executing [[email protected]:2] Answer(“SIP/KIT_CUCM2-00000067”, “”) in new stack
– Executing [[email protected]:3] Wait(“SIP/KIT_CUCM2-00000067”, “2”) in new stack
– Executing [[email protected]:4] Playback(“SIP/KIT_CUCM2-00000067”, “ss-noservice”) in new stack
– <SIP/KIT_CUCM2-00000067> Playing ‘ss-noservice.ulaw’ (language ‘en’)
== Spawn extension (from-trunk, s, 4) exited non-zero on ‘SIP/KIT_CUCM2-00000067’
– Executing [[email protected]:1] Macro(“SIP/KIT_CUCM2-00000067”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/KIT_CUCM2-00000067”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [[email protected]:4] GotoIf(“SIP/KIT_CUCM2-00000067”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [[email protected]:7] GotoIf(“SIP/KIT_CUCM2-00000067”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [[email protected]:9] Hangup(“SIP/KIT_CUCM2-00000067”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/KIT_CUCM2-00000067’ in macro ‘hangupcall’
== Spawn extension (from-trunk, h, 1) exited non-zero on ‘SIP/KIT_CUCM2-00000067’

Try using an inbound route with the DID value set to 6002 and send to a destination like say, extension 6002, its probably because you use a a trunk context alike, it’s treated as an external number?

As i see it above, it says received unknown DID which then means its treated as external and does not know what to do…