/// <summary> /// Open the line. /// </summary> /// <returns>Indicator showing if the open was successful, 0 otherwise.</returns> public override int Open() { int res = -1; if (this.openReferenceCount == 0) { res = this.tapiCti.CtiTapi.Open(DevID); if (res >= 0) { Calls = CallsClassProvider.Instance(); //new CallsClass( cti, this ); Calls.Init(this.tapiCti, this); } } this.openReferenceCount++; return(res); }