[asterisk-dev] Setting up a development environment for Asterisk

Andrew Latham lathama at gmail.com
Tue Jan 11 08:41:08 CST 2011


On Tue, Jan 11, 2011 at 11:35 AM, Nick Khamis <symack at gmail.com> wrote:
> Thank you Kevin and Chris for your responses,
> I saw that a C perspective is needed for modules to, for example,
> be aware of where to locate the headers in the ``include'' module.
> As you mentioned Chris, I really think developers that are unfamiliar with
> the asterisk source code can greatly benefit from some of the things
> offered by and IDE such as auto complete etc...
> I will be happy to share my findings on here.
>
> Thanks Again,
>
> Nick.
>
>
> On Tue, Jan 11, 2011 at 9:10 AM, Chris Tooley <chris at tooley.com> wrote:
>>
>> On Tue, Jan 11, 2011 at 8:03 AM, Kevin P. Fleming <kpfleming at digium.com>
>> wrote:
>> > On 01/11/2011 07:55 AM, Nick Khamis wrote:
>> >
>> >> Thank you for your response, vim, emacs... That kind of stuff puts hair
>> >> on your
>> >> chest ;). I checked out the code using subclipse, maybe I will try to
>> >> strip it down
>> >> to the core classes, compile and run it within eclipse, and then keep
>> >> appending
>> >> code, basically building an eclipse project. Any help would be
>> >> appreciated. Are
>> >> there any documentation architectural/package/class diagrams etc.., I
>> >> know
>> >> it's a large project, and I have had to do this many time before.
>> >
>> > Asterisk is primarily written in C, so there aren't any 'core classes'
>> > in
>> > the sense that an IDE would understand. There are some conceptual
>> > diagrams
>> > of how modules work together and how channel drivers work, but there is
>> > not
>> > a great deal of architectural documentation, unfortunately.
>>
>> Asterisk will build and run inside Eclipse (or used to) but I haven't
>> done it in several years. As Kevin says, since it's C there's not a
>> class hierarchy like you would get with a Java project, but the C
>> perspective can be set up to find all of the definitions. Once it's
>> all set up and configured, it's actually pretty handy for development,
>> but running it in the debugger is pretty challenging as the highly
>> multi-threaded nature of Asterisk doesn't lend itself well to
>> Eclipse's debugger interface.
>> >
>> > --
>> > Kevin P. Fleming
>> > Digium, Inc. | Director of Software Technologies
>> > 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
>> > skype: kpfleming | jabber: kfleming at digium.com
>> > Check us out at www.digium.com & www.asterisk.org
>>
>> Chris Tooley
>> mobile: 615-525-8067
>> Instant Messenger
>> MSN: ctooley at ntrc.net
>> AIM: mrchristooley
>> Yahoo: mrchristooley
>> Google Talk: ctooley at gmail.com


Nick

Please add your comments here
https://wiki.asterisk.org/wiki/display/AST/Development to help us
update the documentation in a central manner.


~~~ Andrew "lathama" Latham lathama at gmail.com ~~~



More information about the asterisk-dev mailing list