In my existing app we use the https://www.twilio.com/labs/twimlets/conference feature :
var strURI = "http://twimlets.com/conference?Name=" + channelId.ToString() + "&Message=Welcome&Music=http://bter.com/radio/radio2.xml";
TwilioClient.Init(_twilioConfiguration.AccountSid, _twilioConfiguration.AuthToken);
var application = await ApplicationResource.CreateAsync(voiceUrl:new Uri(strURI), friendlyName: channelId.ToString());
My app then allows users in their browser to join in a special audio conference bridge to participate in training. It does not involve any phone number.
We have a need to route the stream to the Google Speech to Text API so we can use a custom dictionary.
In the examples I have found, and exercised
twilio phone-numbers:update 14805551212 --voice-url http://b74c35a792ff.ngrok.io
It seems like the phone number is configured in Twilio so that on connecting it opens a web socket stream to the endpoint (a ngrok endpoint proxy is common in the examples) .
In my situation, I wish to programmatically tell the dynamically created conference room to open a voice stream to a specific endpoint (for example http://b74c35a792ff.ngrok.io).
Is there an API call I can make to Twilio or additional settings I can add to the twimlets.com/conference to achieve this?