Google Voice

I have been working on calling out with google voice. I have a .sh script that works with outbound calls. It calls my inbound number and then calls the destination. Only problem is I would like to pickup, callout and then hang up having my phone to call back. Any ideas?