No response - No device - Maybe fix
Problem is in index.js. I know, some bugs is still there, but it works :-)

edit index.js and find line with: if(that.ConfigUtil.isHostGateway(gatewaySid) && cmd != 'virtual_iam') {

and insert this code before that line:

var gateway = that.GatewayUtil.getBySid(gatewaySid);
            if(!gateway) {
                // add gateway
                gateway = {
                    sid: gatewaySid,
                    passwd: that.ConfigUtil.getGatewayPasswordByGatewaySid(gatewaySid),
                    ip: jsonObj['ip'], // rinfo.address,
                    port: jsonObj['port'], // rinfo.port,
                    proto_version: jsonObj['proto_version'],
                    model: jsonObj['model']
                }
                gateway = that.GatewayUtil.addOrUpdate(gatewaySid, gateway);
            }


Maybe help, maybe not :-)

