Making Twilio calls with TwiML in Delphi -


i'm using twilio call people delphi xe2 application. calls arrive can't seem use personal xml url inform person i'm calling.

here code:

purl := 'https://api.twilio.com/2010-04-01/accounts/' + accountsid+'/calls'; allparams.add('from=' + phonenumberfrom); allparams.add('to=' + ptonumber); allparams.add('url=' + pxmlurl);  idhttp1.post(purl, allparams) 

if use https://demo.twilio.com/welcome/voice/ url works well. full message , everything. if use url server doesn't.
xml looks like:

<?xml version="1.0" encoding="utf-8" ?> <response>  <say>an urgent ticket has been posted in support portal. please see it.</say> </response> 

also i've created twiml httpget in twilio console , if use applicationsid instead of url in application second sentence when answer call.

would have idea going on?

i've found answer.

i had add:

allparams.add('method=get') 

as default method post called isn't allowed on static files on iis.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -