Using Asterisk Manager in C

Hello. I need help.

How do I connect to the Asterisk Manager in C? How to config? What commands in C that I have to issue? Do you also have any examples?

Thank you very much.

You can find informations about Asterisk manager interface here: voip-info.org/wiki-Asterisk+manager+API .
Other infos categorized by language: voip-info.org/wiki/view/Aste … r+Examples .
A simple Python sample (you should be able to translate this to C): blog.vrplumber.com/1274 .

Cheers.

Marco Bruni

How do I execute Asterisk commands in C? And how to retrieve the results upon executing a command? Thanks.

Write to the socket connected to Asterisk.

Read from the socket connected to Asterisk.

Cheers.

Marco Bruni

Lastly, can you show me some examples (syntax) on how to do that? Thanks.