Hello
I am a Voice System Administrator for more than 12 years.
I can help you with this AGI script, but best way to achieve your purpose is to have Kamaiio SIP server and do it with it, anyway I can do it with AGI also.
Please choose me I am out of money right now and I have lots of bills to pay.