Asterisk communicating with Web Service

Hello,

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?

Thanks.

Hello everyone,

I have seen how Asterisk could connect to the web service. I have created a Webservice via PHP. And thought about using the command exten => _X., 1, AGI (agi: / / 192.168.2.1:1048 / Testing | $ {EXTEN} | {VAR2}), but have some questions for example if I have in my file php as a “variable” named “Lights” I want to put “0”, in other words, do a SET.

Through the above command can do everything at once? Or do I have to first connect me to the Web Service through the command above and then do the SET?

Can anyone give a help?

And what better way to do this? Do you have any suggestion / example?

Thanks

yes. you can do anything you want if you use an AGI script.