Skip to content

Commit

Permalink
test redial
Browse files Browse the repository at this point in the history
  • Loading branch information
Bettman66 committed Feb 1, 2022
1 parent 9d1d07a commit 9d820bf
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Hardware auf der sich Baresip installieren lässt genutzt werden.
* [ioBroker Forum Adapter Thread](https://forum.iobroker.net/topic/22746/test-adapter-doorio-v0-0-x)

## Changelog
### 2.1.4
* (bettman66) test redial

### 2.1.3
* (bettman66) change setForeignState ack

Expand Down
14 changes: 13 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"common": {
"name": "doorio",
"version": "2.1.3",
"version": "2.1.4",
"news": {
"2.1.4": {
"en": "test redial",
"de": "Wahlwiederholung testen",
"ru": "пробный повторный набор",
"pt": "teste de rediscagem",
"nl": "test opnieuw kiezen",
"fr": "tester la recomposition",
"it": "ricomposizione di prova",
"es": "rellamada de prueba",
"pl": "testowe ponowne wybieranie",
"zh-cn": "重拨测试"
},
"2.1.3": {
"en": "change setForeignState ack",
"de": "change setForeignState ack",
Expand Down
1 change: 1 addition & 0 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function BaresipClient(adapter) {
}

function send2Server(id, state) {
if ((!client) || (!connected) || (!state.val)) return;
adapter.log.debug('stateChange ' + id + ': ' + JSON.stringify(state));
var dp = (id.split('.'));
switch (dp[2]) {
Expand Down
4 changes: 1 addition & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ function startAdapter(options) {
});

adapter.on('stateChange', (id, state) => {
if (state && !state.ack) {
client.onStateChange(id, state);
}
client.onStateChange(id, state);
});
return adapter;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.doorio",
"version": "2.1.3",
"version": "2.1.4",
"description": "doorio",
"author": "bettman66 <[email protected]>",
"contributors": [
Expand Down

0 comments on commit 9d820bf

Please sign in to comment.