How can i connect two PBXs with different public address with sip protocol using freepbx

Have you built routes?

What context are the trunks in?

Post the trunk config and logs.

I think I have built the routes.I followed the instruction on this website: http://www.cadvision.com/blanchas/Asterisk/SIPtrunk.html. The only difference I made to my configuration is the “host” part which i changed to two public ip addresses. These two public IP addresses are bond to two routers. My asterisk pbxs are all located inside the local network and I used the routers to set the the asterisk pbx to be the DMZ host in ecah localnetwork. I have set the trunk context to be “from-trunk&from-internal”.Where can I get the trunk config and logs(I’m using asterisknow )? From the freepbx user interface?