Associating a Twilio number with a specific Frontline user

107 Views Asked by At

I'm trying to figure out how to associate a specific user with a Twilio number, so that when a call/text comes to that number it only goes to that user's Frontline app/account.

I'm writing the callbacks in Node.js, and I guess that I'm a bit confused to as to how to identify the target number (as the quickstart I'm using is more focused on the customerNumber and relationship with a specific worker).

Thank you.

2

There are 2 best solutions below

1
On

The best and the only option I see the Call Forwarding for that purpose and using Twilio's inbuilt TwiML Bins.

Complete info: https://support.twilio.com/hc/en-us/articles/223179908-Setting-Up-Call-Forwarding

1
On

I believe you should set up Custom Routing for this and, instead of using the customer number (the MessageBinding.Address from the webhook parameters) to do the routing as in the quick start, you can use the number the customer sent the message to, which I think is the MessageBinding.ProxyAddress.

Check out all the parameters that are sent to the onConversationRoute webhook URL. You might also want to test and just log out all the available parameters in order to match to the target number.