That doesn't help at all.
I'm trying to add the features to different hardware models and I've looked into the plugin for Polycom phones, it doesn't look like that does anything beyond defining the settings in the beans.xml and using the if condition in the phone.xml.
Am 13.09.2010 14:21, schrieb Mircea Carasel:


On Mon, Sep 13, 2010 at 11:34 AM, David Becker <[email protected] <mailto:[email protected]>> wrote:

     Am 10.09.2010 14:34, schrieb Douglas Hubler:
    > On Fri, Sep 10, 2010 at 5:42 AM, David Becker
    > <[email protected] <mailto:[email protected]>>
     wrote:
    >>   Somehow my groups that have if= attributes won't disappear no
    matter what,
    >> as if the attribute wasn't set. Does anyone know what I'm doing
    wrong? I
    >> just can't find an error there and the log doesn't say anything
    either
    > I think you need to call addSupportedFeature(String) in the
    > DeviceVersion so it's available in the settings as a conditional.
    >
    > Nortel phone is a recent example of multiple firmware version
    support
    >   sipXconfig/plugins/nortel
    > _______________________________________________
    > sipx-dev mailing list
    > [email protected] <mailto:[email protected]>
    > List Archive: http://list.sipfoundry.org/archive/sipx-dev/
    That didn't work out, even if I assume adding the feature would
    make the
    if condition true an unless doesn't react either.

There is an example here:
NortelPhone.java:

private static final String REL_3_2_OR_LATER = "3.2orLater";

    @Override
    public void setDeviceVersion(DeviceVersion version) {
        super.setDeviceVersion(version);
        DeviceVersion myVersion = getDeviceVersion();

        if (myVersion == NortelPhoneModel.FIRM_3_2) {
            myVersion.addSupportedFeature(REL_3_2_OR_LATER);
        }
    }

and

NortelPhoneModel.java:

    public static final String VENDOR = "nortelPhone";
public static final DeviceVersion FIRM_2_2 = new DeviceVersion(VENDOR, "2.2"); public static final DeviceVersion FIRM_3_2 = new DeviceVersion(VENDOR, "3.2");

    public NortelPhoneModel() {
        super();
        setVersions(getDeviceVersions());
    }

    public static DeviceVersion[] getDeviceVersions() {
        return new DeviceVersion[] {
            FIRM_2_2, FIRM_3_2
        };
    }

These should be enough....

Mircea

    _______________________________________________
    sipx-dev mailing list
    [email protected] <mailto:[email protected]>
    List Archive: http://list.sipfoundry.org/archive/sipx-dev/



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

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

Reply via email to