Make Phone Ring Through Webserver Using Asterisk

Home » Asterisk Users » Make Phone Ring Through Webserver Using Asterisk
Asterisk Users 3 Comments

What is the easiest way? And how can it be implemented?

I thought to something like:

1. I request a page to the webserver
2. Perl sends to Asterisk a number to dial (Perl and asterisk are
running in the same machine)
3. Asterisk calls the phone

or

1. A Perl sip client registers to remote asterisk server
2. Perl sip client sends to asterisk the number to dial
3. Phone rings

i don’t care if i can hear something, it’s enough that it rings

3 thoughts on - Make Phone Ring Through Webserver Using Asterisk

  • What do you want to happen once the call is made?
    You can choose to fire the call off using the originate command with the Asterisk Manager Interface from a PHP page or some other similar language. No need for Perl on the Asterisk box at all really unless you need it for something else. http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate

    Date: Sat, 16 Nov 2013 16:53:59 +0530
    From: omakhileshchand@gmail.com To: asterisk-users@lists.digium.com Subject: [asterisk-users] Make phone ring through webserver using Asterisk

    What is the easiest way? And how can it be implemented?
    I thought to something like:
    I request a page to the webserverPerl sends to asterisk a number to dial (Perl and asterisk are running in the same machine)
    Asterisk calls the phoneor A Perl sip client registers to remote asterisk serverPerl sip client sends to asterisk the number to dialPhone ringsi don’t care if i can hear something, it’s enough that it rings

  • Just inject a callfile into /var/spool/asterisk/outgoing/ . One end is the extension you want to ring, the other end is a dummy extension in a special context which (optionally) can play music down the line.

    Just do it exactly like an alarm call, but without using `touch` to set a future timestamp on the callfile.