Hello,
Is your script written in PHP or Perl ? or what?
Secondly, I upgrade your script as needed but before that I have to look into the script.
Do you use asterisk or freepbx?
please check my previous work. I have advanced level of experience in asterisk.
www.freelancer.com/u/aneelmahmod.html
Feel free to write me if you have any question.
Regards,
Aneel