Call from a website

Is there a way to allow a customer to click a link on my website and allow asterisk to place a call to them and me at the same time? I’ve seen this done with other software, which I can’t seem to locate at this time.

Thanks!

Not too hard to do.

First make an exten/context which:

  1. announces to the caller that they are connected to your company and you will be on the line shortly.
  2. Dial or Queue’s them to you

Now make a .call file which puts them in this context, and move it into the asterisk outgoing folder.

For security, I’d have whatever script does this perform sanity checking on the number to dial, and/or have it call a shell script with the number as an argument that will create the actual file and move it into the right folder.

Could you give me an example of what script I would need to place on my site to make this happen? I thought it would probably be possible, but I’m still pretty green :unamused:

[quote=“shieldsit”]Is there a way to allow a customer to click a link on my website and allow asterisk to place a call to them and me at the same time? I’ve seen this done with other software, which I can’t seem to locate at this time.

Thanks![/quote]

Yes, there are various approaches to this. You could ask for the persons PSTN number and then connect to their mobile/home phone via the Manager API using PHP (phpagi.sourceforge.net) or something like this. Or if you want the audio channel via the web you could use something like this:

mexuar.com/

I found a script called callme from Nerd Vittles. I think it will do what I want. I just have to configure dyndns for my IP to get it to work. If everything goes as planned (yeah right) I’ll post a follow up with the steps.

Thanks for help!

Wow, the nerd vittles site (nerdvittles.com) has a lot of good info on using * to do all kinds of neat things.

There should be a stickied link to this site somewhere.

Yeah, that’s where I started to learn about * really. They have a bunch of neat scripts for weather and news too!