twilio / OpenVBX

OpenVBX is a web-based open source phone system for business.
http://openvbx.org
Other
702 stars 341 forks source link

Common Dial/Voicemail #206

Open tjlytle opened 12 years ago

tjlytle commented 12 years ago

I've worked on a few plugins that include a 'dial' functionality (for example the directory plugin allows you to search the users, then dial). It would be nice if there was a common core TwiML URL that could be used to dial a user (and then, if the user rejects, go to voiemail).

There isn't on that I'm just missing, is there?

Gipetto commented 12 years ago

You could use the /twiml/dial url like the browserphone does.

Look at controllers/twiml.php in the dial method on line 317. This method will dial 3 ways:

  1. a phone number
  2. a user by client id: (client:{user_id})
  3. a user by email address. This was never fully released but it should work just fine.

2 & 3 will both dial the user as if the user were the target of a dial twimlet. You can "fake" send the 1 digit (which is all we do with client dials) to skip the announcement step.

Its not "official", but it does this sound like what you're after?

tjlytle commented 12 years ago

I had taken a look there, but not too closely. It looks like it needs to be authenticated through the rest auth process (not something I've played with before). I'll see if I can get it to work.