英文:
Twilio number as voicemail - receive forwarding number as callerid
问题
我正在构建一个应用程序,用户将拨打我们客户的个人电话号码。他的语音信箱设置为我们的一个Twilio号码之一。
是否有办法找出是哪个客户将呼叫转发给我们?
我正在使用一个TwiML应用程序,使用我们的API作为Webhook。
我成功地接收到呼叫,并将呼叫者的电话号码显示为 'from' 和 'caller',我们的 'twilio' 号码显示为 'to'。
由于这是一次呼叫转发,我期望 'caller' 应该是客户的号码,'from' 应该是呼叫者,'to' 应该是我们的Twilio号码,或者至少 'caller' 和 'from' 都应该是客户,而不是原始呼叫者的号码。然而,'from' 和 'caller' 都始终是原始呼叫者的号码。
英文:
I am building an application where a user will call our clients personal phonenumber. His voicemail is set one of our Twilio numbers.
Is there a way to find out which client forwarded the call to us?
I am using a TwiML app with our API as webhook.
I successfully receive the calls and see the phonenumber of the caller as 'from' and 'caller' and our 'twilio' number as 'to'.
Since it is a forwarded call I would expect the 'caller' should be the clients number, 'from' the caller and 'to' our twilio number, or at least both 'caller' and 'from' should be the client rather than the original caller. However, both 'from' and 'caller' are always the number of the original caller.
答案1
得分: 0
一个选择是为每个客户分配一个电话号码。这样,每个客户将把电话呼叫转发到一个独特的电话号码,只有他们使用。如果你有10个客户,你将拥有10个Twilio电话号码。这些分配的号码将使用与您的Twilio应用程序和API相同的Webhook。这在这个“如何构建呼叫跟踪解决方案”中有描述。1
英文:
One option is to provision a phone number for each client. That way each client will forward calls into a unique phone number that only they use. If you have 10 clients you will have 10 Twilio phone numbers. Each of those provisioned numbers will use your same TwiML app w/ API as webhook. This is described in this "How to Build a Call Tracking Solution".
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论