IP registration

My SWITCH have IP Z.Z.Z.Z and other switch have IP X.X.X.X.
I want connect with trunk PJSIP, and all call start from my switch with IP Z.Z.Z.Z go to switch X.X.X.X.

If it is a switch, you need to send it the number to which it should connect the call.

I have deleted a prior post due to edited information still being visible in it. (Just leaving a post so people understand where it went)