C#, C++, VB API to manage Asterisk (through Asterisk Manager API) from a Windows Server?

Posted on 2006-05-03
Last Modified: 2013-12-03
Hi all:

I am looking for C#, C++, VB, ... API that run on Windows that would allow to communicate and manage an Asterisk server from a Windows machine. These API should communicate with the Asterisk server through the Asterisk Manager API.
Do you know any well know and alive open source or commercial project that would provide these APIs?
Question by:benjaminrh
    LVL 36

    Expert Comment

    You dont need any special libraries or tools to access the Astrisk Manager API. You just establish a normal tcp/ip connection to the manager port and send the text commands. See
    LVL 36

    Expert Comment

    by:grblades contains links to a C~ and C++ example among others.
    LVL 19

    Expert Comment

    What grblades says is true, but you will find that the raw API is quite low level. I have used it to create a Windows application (written in Delphi) that monitors call activity on the Asterisk server. It took me an hour to get the socket connection and login working, but approx 90 hours to get it to the point where I am happy with the information it displays and the functionality it offers. That is essentially just a monitoring tool - I don't use it to load the scripts or create the conf files. (Maybe in version 2 one day - oh dream on).

    Depending on what you are trying to do, you might find it easier/cheaper to find a commercial package that provides the entire interface. There are some available, but they often seem to hide the fact that there is an Asterisk server under the bonnet (that's "under the hood" if you're american). In UK there is one called VoIPOffice from Telappliant which I think is Asterisk based.

    If you want to develop a bespoke application, then be prepared to invest some time or consider employing a consultant to do it for you. (My rates are very reasonable!!).
    LVL 5

    Expert Comment


    If you are looking for an already present API that lets you connect to the asterisk server using manager api go for
    The Asterisk-java library at

    Tutorial is availble at

    Documentation of the API is at:
    LVL 4

    Accepted Solution

    If .NET is more your thing check out:

    From their site:

    "A port of Asterisk-Java to C# for Microsoft's .NET Framework 1.1/2.0 and anything else that implements the basic portions of the framework required to use this.

    The Asterisk .NET library consists of a set of classes that allow you to easily build applications that interact with an Asterisk PBX Server.

    Asterisk .NET supports both interfaces that Asterisk provides for this scenario: The FastAGI protocol and the Manager API.

    Asterisk .NET is compatible with Asterisk 1.0 and 1.2.
    The FastAGI implementation supports all commands currently available from Asterisk.

    The Manager API implementation supports receiving events from the Asterisk server (e.g. call progess, registered peers, channel state) and sending actions to Asterisk (e.g. originate call, agent login/logoff, start/stop voice recording)."

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Every year the snow affects people and businesses. According to the Federation of Small Businesses (FSB), in 2009, UK businesses lost an estimated £1.2bn ( because of bad weather. This article was c…
    Hey there Heard about jingle, the add on for XMPP that enables point to point audio between two XMPP clients. No server config necessary. Actually quite a cool feature. However, how good is it if you can not use those voice capabilities to do a P…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now