twilio / voice-quickstart-android

Quickstart app for the Voice Android SDK
https://www.twilio.com/docs/api/voice-sdk/android/getting-started
MIT License
184 stars 140 forks source link

Support for Multiple Numbers #585

Closed wmt-raj-mobile closed 6 months ago

wmt-raj-mobile commented 6 months ago

I am currently using this library to build an application that involves receiving calls. However, I have encountered a limitation where I can only use a single number for receiving calls. My application requires the capability to handle calls from multiple numbers.

Use Case: In my scenario, I need the ability to configure the application to receive calls from multiple predefined numbers. This feature would enable developers to create more versatile and inclusive applications that cater to various use cases, such as customer support lines, group communication apps, or any situation where interaction with different numbers is necessary.

afalls-twilio commented 6 months ago

@wmt-raj-mobile quick question, are these numbers you would like to map to one client, twilio numbers or pstn numbers?

wmt-raj-mobile commented 6 months ago

Yes i have 3 twilio numbers i want to receive call on all three at same time. Currently its working foor 1 only

afalls-twilio commented 6 months ago

@wmt-raj-mobile yes, so this can be accomplished by modifying your TwiML code associated with your application sid. This can be done from the Twilio Console. The way it could work would be to check the from parameter and route any call with the numbers you want to one, then have your app response to that one number. For more info on TwiML, look here.

wmt-raj-mobile commented 6 months ago

Can you please elaborate? Do you have more detailed explanation. The Link you have given is not working

wmt-raj-mobile commented 6 months ago

Is there any update?

afalls-twilio commented 6 months ago

@wmt-raj-mobile updated the link, it should work now..

here is another link about twiml that you might find helpful. https://www.youtube.com/watch?v=fb0rKmGGyq8