Problema llamadas troncal sip entre freepbx

Les explico mi excenario , tengo dos freepbx , una conectada a un troncal SIP para salida de llamados (PBX1) y la segunda con un troncal SIP hacia la primera PBX (PBX2)

Actualmente PBX2 Puede recibir llamadas y realizarlas de forma “publica” y llamar a los anexos de la PBX1
PBX1 puede realizar todo menos llamar a anexos de PBX2

Les comparto mi configuracion del troncal SIP para su ayuda.

PBX1

Saliente:
type=peer
qualify=yes
port=5060
host=X.X.X.X

Entrante
type=peer
qualify=yes
port=5060
insecure=invite,port
host=X.X.X.X
context=from-internal

PBX2

Saliente:
type=peer
port=5060
qualify=yes
host=X.X.X.X

Entrante:
type=peer
port=5060
qualify=yes
host=X.X.X.X
insecure=invite,port


Este es el registro que obtengo al realizar llamadas entre anexos de PBX1 a PBX2

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [6000@from-internal:1] Macro(“SIP/2016-00005a4d”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/2016-00005a4d”, “TOUCH_MONITOR=1495655751.26908”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/2016-00005a4d”, “AMPUSER=2016”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/2016-00005a4d”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/2016-00005a4d”, “1?Set(REALCALLERIDNUM=2016)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/2016-00005a4d”, “AMPUSER=2016”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/2016-00005a4d”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/2016-00005a4d”, “AMPUSERCIDNAME=2016”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/2016-00005a4d”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/2016-00005a4d”, “AMPUSERCID=2016”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/2016-00005a4d”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/2016-00005a4d”, “CALLERID(all)=“2016” <2016>”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“SIP/2016-00005a4d”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/2016-00005a4d”, “1?Set(GROUP(concurrency_limit)=2016)”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/2016-00005a4d”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:15] GotoIf(“SIP/2016-00005a4d”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,29)
– Executing [s@macro-user-callerid:29] Set(“SIP/2016-00005a4d”, “CALLERID(number)=2016”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/2016-00005a4d”, “CALLERID(name)=2016”) in new stack
– Executing [s@macro-user-callerid:31] GotoIf(“SIP/2016-00005a4d”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/2016-00005a4d”, “CDR(cnam)=2016”) in new stack
– Executing [s@macro-user-callerid:33] Set(“SIP/2016-00005a4d”, “CDR(cnum)=2016”) in new stack
– Executing [s@macro-user-callerid:34] Set(“SIP/2016-00005a4d”, “CHANNEL(language)=es”) in new stack
– Executing [6000@from-internal:2] Gosub(“SIP/2016-00005a4d”, “sub-record-check,s,1(out,6000,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/2016-00005a4d”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/2016-00005a4d”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/2016-00005a4d”, “NOW=1495655751”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/2016-00005a4d”, “__DAY=24”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/2016-00005a4d”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/2016-00005a4d”, “__YEAR=2017”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/2016-00005a4d”, “__TIMESTR=20170524-165551”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/2016-00005a4d”, “__FROMEXTEN=2016”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/2016-00005a4d”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/2016-00005a4d”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/2016-00005a4d”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/2016-00005a4d”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/2016-00005a4d”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/2016-00005a4d”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/2016-00005a4d”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“SIP/2016-00005a4d”, “Outbound Recording Check from 2016 to 6000”) in new stack
– Executing [out@sub-record-check:2] Set(“SIP/2016-00005a4d”, “RECMODE=dontcare”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“SIP/2016-00005a4d”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“SIP/2016-00005a4d”, “recordcheck,1(dontcare,out,6000)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/2016-00005a4d”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/2016-00005a4d”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/2016-00005a4d”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“SIP/2016-00005a4d”, “”) in new stack
– Executing [6000@from-internal:3] ExecIf(“SIP/2016-00005a4d”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [6000@from-internal:4] Set(“SIP/2016-00005a4d”, “MOHCLASS=default”) in new stack
– Executing [6000@from-internal:5] Set(“SIP/2016-00005a4d”, “_NODEST=”) in new stack
– Executing [6000@from-internal:6] Macro(“SIP/2016-00005a4d”, “dialout-trunk,1,6000,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/2016-00005a4d”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/2016-00005a4d”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/2016-00005a4d”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/2016-00005a4d”, “DIAL_NUMBER=6000”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/2016-00005a4d”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/2016-00005a4d”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/2016-00005a4d”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:8] GotoIf(“SIP/2016-00005a4d”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/2016-00005a4d”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/2016-00005a4d”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/2016-00005a4d”, “outbound-callerid,1”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/2016-00005a4d”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/2016-00005a4d”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:3] ExecIf(“SIP/2016-00005a4d”, “0?Set(REALCALLERIDNUM=2016)”) in new stack
– Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/2016-00005a4d”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,7)
– Executing [s@macro-outbound-callerid:7] Set(“SIP/2016-00005a4d”, “USEROUTCID=322999200”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/2016-00005a4d”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] Set(“SIP/2016-00005a4d”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:10] GotoIf(“SIP/2016-00005a4d”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,15)
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/2016-00005a4d”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/2016-00005a4d”, “1?Set(CALLERID(all)=322999200)”) in new stack
– Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/2016-00005a4d”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:18] ExecIf(“SIP/2016-00005a4d”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:19] ExecIf(“SIP/2016-00005a4d”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:20] Set(“SIP/2016-00005a4d”, “CDR(outbound_cnum)=322999200”) in new stack
– Executing [s@macro-outbound-callerid:21] Set(“SIP/2016-00005a4d”, “CDR(outbound_cnam)=”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/2016-00005a4d”, “1?sub-flp-1,s,1()”) in new stack
– Executing [s@sub-flp-1:1] ExecIf(“SIP/2016-00005a4d”, “1?Return()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/2016-00005a4d”, “OUTNUM=6000”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/2016-00005a4d”, “custom=SIP/valpo-trunk-out”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/2016-00005a4d”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/2016-00005a4d”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/2016-00005a4d”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/2016-00005a4d”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/2016-00005a4d”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/2016-00005a4d”, “1?Set(CONNECTEDLINE(num,i)=6000)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/2016-00005a4d”, “1?Set(CONNECTEDLINE(name,i)=CID:322999200)”) in new stack
– Executing [s@macro-dialout-trunk:21] ExecIf(“SIP/2016-00005a4d”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)322999200)”) in new stack
– Executing [s@macro-dialout-trunk:22] GotoIf(“SIP/2016-00005a4d”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:23] Dial(“SIP/2016-00005a4d”, “SIP/valpo-trunk-out/6000,300,T”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/valpo-trunk-out/6000
– Call on SIP/valpo-trunk-out-00005a4e placed on hold
[2017-05-24 16:55:52] WARNING[19895][C-000026ef]: res_musiconhold.c:899 _get_mohbyname: Music on Hold class ‘default’ not found in memory. Verify your configuration.
[2017-05-24 16:55:52] WARNING[19895][C-000026ef]: res_musiconhold.c:899 _get_mohbyname: Music on Hold class ‘default’ not found in memory. Verify your configuration.
– SIP/valpo-trunk-out-00005a4e is making progress passing it to SIP/2016-00005a4d
> 0x7fd9d02d5aa0 – Probation passed - setting RTP source address to 138.204.230.6:8004
– SIP/valpo-trunk-out-00005a4e is making progress passing it to SIP/2016-00005a4d