How to setup trunks between two freepbx

I try to setup trunks between two freepbx systems. In Peer details settings, I need to fill in username and password. The general content is like this:
username=System1
secret=password
host=192.168.1.105
type=friend
context=from-internal
qualify=yes
qualifyfreqok=25000
transfer=no
trunk=yes
forceencryption=yes
encryption=yes
auth=md5

I am new on system to system trunk connection. I am just wondering how to create username and password for trunk connections? For instance, I have system1 and system2 pbx systems. On system1, how can I create username and password for system2 trunk connection?

Thanks a lot.

Have you seen the wiki page for trunks, specifically part 4, Connecting two FreePBX systems:
http://wiki.freepbx.org/display/FPG/Trunk+Sample+Configurations

2 Likes