How to program IVR to ring subaccount and hang-up after 40 seconds?

I have a friend with a restaurant. He wants an option on the IVR for to-go orders. When the caller selects that option he wants the system to ring the sub account for ~40 seconds and then hang up. No VM desired. It could also ring and then give a "no one is available" message then hang up. Trying to configure in VoIP.ms but no luck. Any help appreciated. TIA !