Check this out

http://www.hellohunter.com/dialer_api.php

And, if you are more technically inclined, this
http://www.sinapticode.com/freeswitch-tips-creating-dialer