On Wed, Jun 2, 2010 at 2:37 PM, Mossman, Paul (Paul)
<[email protected]> wrote:
> Could I "layer" phone.xml and line.xml files?
>
> That is, could I create a common parent (with phone.xml and line.xml files) 
> that could be applied to models in independent phone plug-ins?  The parent 
> phone.xml/line.xml would then be applied in addition to the plug-in-specific 
> phone.xml/line.xml.
>
> I would then expect that the "parent" model would then have its own entry 
> under the Phone Group list of models.
>
> This would function like the "Firmware version:" setting which is available 
> to all phone plug-ins.  (Some do not make use of it...)  But, that setting is 
> implemented in code (DeviceDescriptor.java, a superclass of the bean 
> id="abstractPhoneModel" instance.)
>
> I'd like to do something phone-specific and data-driven.

Not 100% sure I understand this...

Are you envisioning something like this in the phone group user interface?

Polycom   - shows setting common to all polycom phones
 + Polycom 300 - shows all settings available to the 300 model
 + Polycom 301 - shows all settings available to the 301 model
  ...

Then model the settings could be organized the same way?
 polycom/common-device.xml
 polycom/301-device.xml
 ...

If so, I think the user interface is compelling, but the setting
organization would be difficult to implement because the ordering of
the settings is important. How would you juxtaposition setting in
common with those in model specific files.

Much of how this is done today is thru spring which is slick, but
maybe it's time to graduate to a more specific specification, What if
you created a whole new xml schema that models what the phone
implementation already do thru code and spring. Pull in settings for
the device, lines, firmware etc.  Pulling in those files could be done
using "src" attribute.  Leave the 2 schemes settings and overall phone
manifest independent of each other.

<phone manufacturer="polycom">
   <model id="common" abstract="true" beanid="polycom.phone">
     <device mac-address="true" src="phone.xml">
       <line count="4" src="line.xml">
       </line>
     </device>
     <firmware src="firmware.xml"/>
   </model>
   <model id="301" extends="common">
      <!-- when processed by digester, model will be set to 301 and
            only those settings will be built -->
     <device mac-address="false" src="phone.xml">
       <line count="4" src="line.xml">
       </line>
     </device>
      <-- will get default firmware setup unless specified otherwise -->
   </model>
</phone>
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to