Damian wrote: > Paul Mossman wrote: > > Hi all, > > > > > _http://sipx-wiki.calivia.com/index.php/SipX_ConfigServer_settings.xml > > _ > > > > Is there any way to list multiple settings in an if/unless > value? For > > example, I'm thinking something like the following (which > doesn't work): > > > > <setting name="callsPerLineKey_600" if="polycom600,polycom650" > > copy-of="callsPerLineKey"> > > <profileName>callsPerLineKey</profileName> > > <type> > > <integer min="1" max="24" /> > > </type> > > <value>24</value> > > </setting> > > > > If there is not way to do the above, then I suppose one > would need to > > create a new "supportedFeatures" setting to and then add it > to the two > > set models? > > > > You mean listing 'multiple conditions' not 'multiple > settings' - right? > > It's nearly always better to base a conditional on a feature > than on a specific model or a version number. Especially > since Bogdan and Joe added the capability of specifying > features per model recently (see XCF-2797). > > I can see how in this case feature approach seems like an > overkill. How about adding a capability of calculating values > from the model? > > > <setting name="callsPerLineKey"> > <type> > <integer min="1" max="prop:model.maxLines" /> > </type> > <value>24</value> > </setting>
Makes sense, though I'd use "prop:model.maxCallsPerLineKey". I've raised XCF-2937 to cover the root problem, and cited this discussion. (I don't think the root problem is serious enough to address in 3.10.3...) Thanks. -Paul [EMAIL PROTECTED] _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
