Asterisk communication another server


What instruction can I use for my IVR Elastix can make a question to a database that is on another server, or need to make Elastix the question of a possible instruction and then be able to decipher the answer.

Someone can help?


Try the Asterisk dialplan function CURL. You can use it to post data to external web services and then retrieve information later as well.

Or, you could look into writing an AGI script and making your remote database connection there.



Thanks for the help.

I need my Asterisk to communicate with a web service, in other words, Asterisk asks a question to the Web Service and Web Service returns the answer.

Is it possible?


Yup, that’s what CURL is designed to do. :smile:


I’ll try doing it with CURL.

Then post the result…