How to pass extension automatically to a Twilio number when called from a regular phone?

心已入冬 提交于 2019-12-25 07:39:07

问题


We have a payed Twilio account. For example, for the Netherlands, we have a unique number, which users can call from their phone. This is all ok.

Now, we would like to extend our services, and add/attach many extensions to that single (Twilio) phone number. For every extension, we want to assign (forward to) a real phone number of our agents (also important for statistical and payment reasons). So as an example:

Client browses our page on a mobile phone, he wants to get information about a service, tap on an agent name, and a regular call takes place. Once received the call, Twilio recognizes the extension number, and automatically connects that agent (call his phone number).

The logic should be done with TwiML/PHP combo. The actual problem is this: how to pass the extension into/with the regular call? Already tried to make a tel: link with hash (#) and (,) and others, to include the extension, to no avail. Once the link is tapped, only the phone number is passed (at least on Android). Is this even possible?

Also, very important, the extension should be transparent to the clients, as in they should not have any interaction after tapping on the agent (so not choosing - entering digits, from a predefined menu - since there will be tens, maybe hundreds of extensions (so agents), it wouldn't be a practical solution anyway).

With the "Click-to-call" example I've managed to solve that problem, but it's app/browser based, and we need to support regular calls as well.

Any direction/hint is very welcome.


回答1:


I believe in your case, you would either need to do inbound caller id detection and route the call as needed or have individual numbers that just forward on as needed.

If it were possible for user intervention then I would suggest an IVR, but I understand that is not what you are trying to accomplish.



来源:https://stackoverflow.com/questions/37812814/how-to-pass-extension-automatically-to-a-twilio-number-when-called-from-a-regula

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!