Can a dialplan make extension to call ring-group?

I need to be able to make a call between the prioritized extensions in two different ring groups.
Can I do this by telling the dialplan to have 6001 extension call to ring group1 and 6002 extension call to ring group2? My idea is to then connect the two extensions in a call by channle originate SIP/6001 extension 6002. Is it possible? Please help me!

Ring groups are not a primitive construct. How are yours constructed? The main thing to understand is that the Asterisk Dial application accesses devices not extensions, even if the distinction is often confused by giving the primary device for an extension the same name as the extensions. Local channels can make extensions look like devices.

Also, you should have asked on Asterisk Support if this about bare Asterisk, or if you are using FreePBX.