c# - Browser to phone -


we've been working on browser phone per doc provided twilio in c# razor. have same same our clients using asp.net4.0.

when phone number entered in textbox call gets forwarded number specified in voiceurl of twimlapp rather forwarding number entered in textbox.

below listed of queries haunting us; how create dynamic twiml's pass phone number dial verb? how on write voiceurl of twiml app programmatically? there examples in asp.net 4.0?

twilio evangelist here.

lets take questions 1 @ time.

  • how create dynamic twiml's pass phone number dial verb?

twiml xml, there number of ways dynamically generate xml in .net. provide special library (available on nuget) called twilio.twiml generate twiml return twilio. wrote blog post while ago shows how use it.

if want generate <dial> verb using twiml library, like:

var response = new twilioresponse(); response.dial(phonenumber); string xml = response.tostring(); 
  • how on write voiceurl of twiml app programmatically?

the twilio rest api can used modify twiml application. twilio .net helper library makes easy well:

var client = new twiliorestclient("[your_account_sid]","[your_auth_token]"); client.updateapplication(applicationsid, friendlyname, applicationoptions); 

hope helps.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -