[OGo-Developer] extending ogo with bundles
Sebastian Reitenbach
developer@opengroupware.org
Tue, 24 Apr 2007 07:06:28 +0200
developer@opengroupware.org wrote:
> On Apr 23, 2007, at 21:07, Sebastian Reitenbach wrote:
> > Is it possible for me to add a bundle, that adds a checkbox to
> > create a
> > virtual team telephone conference room into the Asterisk database,
> > when a
> > team is created by a member of the team creators group so that he
> > can create
> > these on the fly if they are needed?
>
> Quite a complex sentence ;-)
>
> You want that a "team conference room" object is created when a team
> gets created? (and a flag is set).
>
> What is a "team conference room" object? Is it a section in the
> Asterisk configuration which you need to write into a file?
Right now, I use app_conference for virtual telephone conference rooms in
Asterisk. The dial plan in /etc/asterisk/extensions.conf has to be prepared
for a new team. I am not yet perfectly sure if it is possible to prepare
that file so far, that it is not necessary to touch this file again on team
creation, removal...
The conference configuration itself is stored completely in the asterisk DB,
and all could be done through the Asterisk Management Interface. I do not
want to touch any Asterisk Configuration Files directly, because right now
it is possible with the Asterisk UI to have the Asterisk running on some
other host than the OGo is running, but when I start touching files, then
this is not possible anymore.
>
> > I also want to "automagically" have the
> > team conference rooms added to the "Appointment Resources", in a
> > special
> > group.
>
> What do you mean by "special group"? As there are special teams, like the
news editors, team creators, there could be a "special" resource group, like
asterisk_conference_rooms, containing all virtual team conference rooms.
>
> > Is that possible just by adding another wobundle, as I have done for
> > the MWI in the AsteriskUI?
>
> Probably not, no.
too bad.
>
> 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?
> 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.
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?
>
> Another option would be to create the 'team conference room' on
> demand - if the user tries to enter it, but it doesn't exist yet. You
> could autocreate it then.
This might or might not work, but if someone just calls the conference rooms
before creation... Also password PIN's to the conference rooms have to be
set, this would have to be done automatically too.