...
Service plug-in is similar to phone plug-in: but instead of new phone you describe a new service (SipxService) and optionally a new bundle
(SipxServiceBundle). You can have a single plugin adding multiple services (check service.beans.xml and bundle.beans.xml for example defintions).
Defining new service
Example: Openfire Service
1. Under sipXconfig/plugins directory: create a new project called openfire
...
Please check sipXconfig's services.beans.xml/bundle.beans.xml for more information
Packaging
It is a paired down version of sipxconfig.spec that might be a template for packaging sipXconfig plugins.
...
Code Block |
---|
Name: sipxconfig-acme Version: 1.0 Release: 1 # java, no debug rpm nec. %define debug_package %{nil} # disable JAR repacking %define __jar_repack %{nil} Summary: Acme phone support for sipXconfig License: LGPL?? Group: Telcommunications Vendor: Example Corp. Packager: First Last <first.last@example.com> %define sipxpbxconf %{_sysconfdir}/sipxpbx %define sipxconfiglib %{_datadir}/java/sipXecs/sipXconfig Requires: sipxconfig Source: %name-%version.tar.gz BuildRoot: %{_tmppath}/%name-%version-root %description This package adds support for the Acme phones. %prep %setup -q %build %configure make %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %clean rm -rf $RPM_BUILD_ROOT # build should install one or more jars in sipxconfiglib directory... %files %defattr(644,root,root,755) %{sipxconfiglib}/sipxconfig-acme.jar %config(noreplace) %{sipxpbxconf}/acme/* %post %preun |
Service template
The attached template could be considered for developing a new managed service (by replacing all occurrences of "myservice" one could easily set up the needed sipXconfig project structure)
...