Connection between multiple fpbx17 via

Hello. I need some help from the fpbx and asterisk guru’s out here . I want to know if its any chance to send the a indentifier linked to the extension number when calling from pbx1 to pbx2 .. someting like TTTTXXX where T its the pbx identifier . And xxx its the extension number .. the whole setup will be on intranet ,no connection to internet .
I was thinking that i can get the extension entered with 7 digits and use the dialplan to remove the 4 digits when calling internal by putting a 0xxx.. i need to test this to see if it works …

Another question will be … lets say ,if i call a certain trunk identifier in my setup ,it will look for it in the entire network or just within the trunk that i have setup ?

If i use some grandstream voip gateway can i have a guide to setup them ?

Thank you and sorry for my tipos .. english its not my primary language

When one switch calls the other, over either IAX2 or PJSIP, the extension and the extension name are both sent. You can send anything you want actually, but by default both are sent. You can of course use number translation at the trunk level or the route level to adapt as needed, but remember you won’t be able to call it back unless you do the same on both.

Trunk ‘identifiers’ (dial-plan) are specific to the local switch, you can’t share them between switches without additional routing.

I’m not familiar with grandstream gateways or why you’d need them, the internet is you friend on that one.

Right now i have 3 instances of FPBX17(edge) and asterisk 20.0.12 with usecallmanager patch installed . I can make calls inside each instance both ways . I can only make call one way using pjsip trunks .

I will test the iax trunks too .

Can someone post a example of iax2 trunk setting betwen 2 fpbx ?

I have registered the endpoints with 7digits 4342 100-103 and 4341 100-103 . What i want to achieve its inside 4342 to call with 0101 to call 4342101.. but i dont seem to figure out that .. and if i want to call on pbx2 4341100 to dial that … if i use the entire number i can dial inside the pbx …