twiliovoicetwilio-twimlcaller-id

Twilio number as voicemail - receive forwarding number as callerid


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.


Solution

  • 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".