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>

I am not against adding some kind of expression support to 'if' and
'unless' statements either. I would be in favor of a more explicit notation
though (any, all, or, and etc. rather than comma separated lists).
D.

_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to