//设置监听 private void setListen(LineInfo line) { LineInfo anther = null; try { anther = Lines[line.ListenNum]; } catch (Exception e) { return; } if (anther != null && anther.State == (ushort)state.CH_CONNECTED) { int ren = InvokeVcDll.LinkOneToAnother(line.Number, anther.Number); log.Debug(line.Number + "监听" + anther.Number + ",返回值:" + ren); ren = InvokeVcDll.LinkOneToAnother(line.Number, (ushort)anther.ConnectToLine); log.Debug(line.Number + "监听" + anther.ConnectToLine + ",返回值:" + ren); } }