in reply to Phone call using perl

I'd recommend searching for asterisk (a popular open source SIP server) and AGI (Asterisk Gateway Interface) on CPAN, and maybe SIP too.