I am using Twilio for inbound calls, where user can call an application through Twilio-Number (brought from Twilio) and will be redirected to admin.
Now, We want Admin to call User using same Twilio-Number. We wabt to call this as <Twilio_Number>#<user_id>
. We want to pass <user_id>
as extension, so that when Admin clicks on the link with tel=<Twilio_Number>#<user_id>
, it will initiate a phone-call to twilio-number.
In our app, we will find user's mobile using his id and redirect call to user's mobile number.
I have referred this doc: https://www.twilio.com/docs/howto/companydirectory
But would need few more details like:
How will Twilio recognize the extension number? And by which name is it provided in call-request parameters?
Currently, we received these parameters in twilio-voice call request
CallSid
, AccountSid
, ApiVersion
, Direction
, To
, Called
, Caller
, From
. In the same request-parameters, how I can get extension digits?
Thanks.