Max_Kooler has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks, I'm new here, and in Perl too (I learned the basics about a year ago). Now I need some help in a job I have to do, and I hope you can help me. I have to write a software in Perl that can connect to an Asterisk server and make a call to a given phone number. So far, I've searched in google and cpan to find a package or an example and I've found some codes but I just can't make a phone even ring. If you can help me with some examples or links I'll thank you forever.

Replies are listed 'Best First'.
Re: Softphone with Perl
by Corion (Patriarch) on Aug 23, 2010 at 16:58 UTC

    Have you seen Net::SIP? It comes with example code. What part of these examples do you have problems with?

      So far I'm trying with 'Net::SIP::Endpoint', but I'm not very sure what to do with it for this is the first time I work with Asterisk or anything related white telephones.
      And no, I'm not so mean to generate those hellish phone-spam LOL, actually this is meant to be an automatic IVR-Menu tester.

        At least for "call and listen" and "call and send", there are two examples in the Net::SIP distribution.

Re: Softphone with Perl
by TomDLux (Vicar) on Aug 23, 2010 at 17:34 UTC

    I hope you're not going to make irritating computer-generated phone calls.

    As Occam said: Entia non sunt multiplicanda praeter necessitatem.

      No chance! The secret "anti irritating computer generated phone call" routines in the Perl core wil kick in and will, after wiping your hard disk, send your e-mail address to a thousand spam lists and you will forever live in spam-hell. ;-)

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        I only wish it were true

        As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Re: Softphone with Perl
by BrimBorium (Friar) on Aug 23, 2010 at 20:47 UTC