How interconect 2 PBX with asterisk?

Hello.
How conect 2 asterisk via SIP?

What i have to put in one and what i have to put in the other pbx to intercontect it?

If you want to connect two asterisk systems together why not look at IAX ?