RestComm / Restcomm-Connect

The Open Source Cloud Communications Platform
http://www.restcomm.com/
GNU Affero General Public License v3.0
240 stars 214 forks source link

Assign default Voice Echo App to new registered phone numbers #1805

Open ivelin opened 7 years ago

ivelin commented 7 years ago

Users often try to call a new number they just registered. They expect something rewarding to happen. Currently the call hangs up and they think something is wrong.

We should offer a more rewarding default behavior. For examples a simple voice echo app similar to the Skype Echo app. Play a prompt, explain to user that their voice will be recorded and played back, record, play back, explain where the user can go to find out more about Restcomm voice apps.

https://support.skype.com/en/faq/FA265/how-do-i-test-my-sound-is-working-in-skype-make-an-echo-test-call

ivelin commented 7 years ago

I built the app with RVD and exported as zip. Works like charm on my restcomm cloud account. Attached. Voice Echo.zip

ivelin commented 7 years ago
screen shot 2017-02-12 at 1 59 45 pm screen shot 2017-02-12 at 2 01 17 pm

Voice Echo.zip

@deruelle

deruelle commented 7 years ago

@otsakir reassigning it to you. I know we discussed it already I think on slack

otsakir commented 7 years ago

The tricky part here is how shall we apply custom handling for only some of all created IncomingPhoneNumbers so that they are assigned the VoiceEcho application. Doing this for all numbers is wrong. It also seems wrong to have such kind of automation hardcoded inside rcomm core.

This looks like a good fit for a retscomm extension. Create "OnAccountCreate" and "OnDIDCreate" hooks and let the extension .jar apply the customized bahavior.

It is also important which accounts/numbers these demo applications should be activated for. @ivelin , @deruelle any ideas on that ?

For example:

  1. All DIDs for all sub-accounts of account X
  2. First DID for any account
  3. All DIDs of all accounts that their email-address ends with @x-company.com

Crystalizing these rules will help have a cleaner implementation path when the time comes to write the extension.

I've also discussed the extension idea with @gvagenas and agrees it's in the right direction.

deruelle commented 7 years ago

It was more to include those default apps out of the box like the test apps we bundle right now and in dashboard drop down list when you need to choose an application when you provision a new number to have that app as default.

ivelin commented 6 years ago

Update here? Logging into a new RaaS account this morning, I noticed that there are no default apps still.

The SMS default app #1804 is also waiting.