Plugin to Retreive all extensions?

Hi Everyone,

I am completely new to making plugins and would like to make a plugin that would display all extensions in asterisk in a listing in openfire.

How would I go about writing a plugin to do this, I have the open fire source and my environment is setup to build it with ant (which I have tested to make sure is working)

Thanks for your time

Sorry if this is in the wrong section.