Hey Guys,

I set up something similar for a customer of mine and it's really building
Asterisk support from my client's employees, but I let Asterisk handle it.
When you click on the "call" button next to their phone number in their
intranet, it connects to the manager and issues the following:

Action: Originate
Channel: SIP/$_REQUEST["myexten"]
Exten: $_REQUEST["tendigitnumber"]
Priority: 1
Callerid: Dialer <www.thewebsite.com>
Variable: CDR(accountcode)=$_REQUEST["accountcode"]

The user's phone rings, if they don't answer the call doesn't go through.
Once they do answer, it connects their call just as if their phone dialed
it.  It uses their default dialling context from sip.conf or Realtime to
send out the call.

I used PHP to build the script to connect to manager, since I built it on
their time I can't share it, but there's another approach for you.  Telnet
to the manager and give it a go.

- Ian

Reply via email to