[OGo-Developer] extending ogo with bundles

Sebastian Reitenbach developer@opengroupware.org
Tue, 24 Apr 2007 11:51:57 +0200


Hi,
developer@opengroupware.org wrote: 
> On Apr 24, 2007, at 07:06, Sebastian Reitenbach wrote:
> > The conference configuration itself is stored completely in the  
> > asterisk DB
> 
> Whats the Asterisk DB? Is it stored in an RDBMS?
no, its more or less a flat file, for Asterisk internal use, where you can 
store key, value pairs in it. At least, I can manipulate the contents via 
the Asteriks Management Interface. When these keys and values are used in 
the dialplan, e.g. to setup conferences and other fancy stuff, then these 
keys and values are used on the fly, without the need to reload the 
asterisk. No SQL 

> 
> >> Well you could enhance the team editor page component to embed
> >> additional sub-components based on an NGBundeManager search (on the
> >> bundle-info.plist's). Thats what I would do if it was a frequent
> >> requirement to enhance the team editor.
> > I have no clue how to do this, do you have any examples where I  
> > could take a
> > look in the source to figure out how this would work?
> 
> I suppose the way the mail viewer works would be closest. But I guess  
> its too difficult.
> 
> >> If not, I would probably just add the option to the team editor.
> >> Thats the UI part. Then you would still need to trigger the
> >> additional backend operation.
> > Ah, OK, so enhancing the team editor so that it can detect whether the
> > AsteriskUI bundle is available, and if so, it just add the pieces  
> > to allow
> > handling of team conference rooms.
> 
> Yes.
> 
> > Is there some Classes/methods available that could be used to  
> > detect whether
> > a given bundle is available on runtime? Or should I define a  
> > Default like
> > this EnableAsteriskConferenceRoomHandlingInTeamsUI?
> 
> There should be some places left where this is done (checks for the  
> mailer?), search for 'has' and 'bundlemanager'.
thanks, that are the hints I need I think.

> 
> Be careful not to link the teams application against Asterisk  
> specific bundles. If you need to access code in optional parts, you  
> need to resort to 'NSClassFromString' to lookup classes.
> 
ah, ok, thanks for the information.

kind regards
Sebastian