I'm not familiar with these tools so I can only offer generic advice.
Phase 1 deals with setting up protections and agreements that will protect the phase 2.
If the server and client do not agree on the phase 1 setup then poof.. it won't work. This may be in main mode or agressive mode.. depending on what your software is trying.
Check that on both the client and server these things are set the same:
1. Hash Algorithm
2. Encryption Algorithm
3. Authentication Methods
4. Diffie-Hellman Group
If these do not agree then no-go.
So if you picked 1. md5, 2. 3des, 3. psk, 4. group 2... then it needs to be set that way on both server and client.
I don't know how to do this using your tools, just that for Internet Key Exchange for IPSec VPNs this is what has to be.