Uw opmerkingen

Я решил это вот так:

var sip_Dev = [

{ hwid: "7bd3fe9da0cf9a4c7ea88baa8b324ac", sip: "124", name: "Panel1" },

{ hwid: "ccc8f4a1ab543a4f59abf6aac2cf2dc", sip: "125", name: "Panel2" },

{ hwid: "1220f9c8fe95d0697d5d4c19583", sip: "126", name: "Panel3" },

{ hwid: "8841037ca097ea49fca9eecab52ea7b", sip: "128", name: "Panel4" },

{ hwid: "060a817da34eda49c2a9d2da874ae54", sip: "129", name: "Panel5" },

];

for ( var i = 0; i < sip_Dev.length; i++ ) {

if ( IR.HWID != sip_Dev[i].hwid ) continue;

IR.GetDevice("SIP 1").SetParameters({ ID: sip_Dev[i].sip, CallerID: sip_Dev[i].name });

IR.SetVariable("Tokens.Panel_Name", sip_Dev[i].name );

};