03.11.2012   Changes:
RoAlcEnt.tsp: 1.0.3.1227
RoAlcEUI.dll:  1.0.3.397
1 New Debug flag: RedirectRequestReturnInvalidHande
29.10.2012   Changes:
RoAlcEnt.tsp: 1.0.3.1226
RoAlcEUI.dll:  1.0.3.397
1 Reconnect_CSTAABRT: 0 -> 1
CSTASnapshotLinesInterval: 0 -> 360
CSTASnapshotLinesSleep: 0 -> 1000
ClearCallsDeleteInTspDelay: 0 -> 5
ClearCallsDeleteInTsp: 0-> 1
  2 280_ReplaceCallerID, ReplaceCallerIDNumber
  3 Convert to Visual Studio 2010
11.06.2012   Changes:
RoAlcEnt.tsp: 1.0.3.1218
RoAlcEUI.dll:  1.0.3.380
1 Redirect_Block_UntilFirstMakeCall - [default 0-do not block]   
26.07.2011   Changes:
RoAlcEnt.tsp: 1.0.3.1207
RoAlcEUI.dll:  1.0.3.380
1 ClearCallsDeleteInTspDelay - [default 0-without delay]   
04.07.2011   Changes:
RoAlcEnt.tsp: 1.0.3.1185
RoAlcEUI.dll:  1.0.3.380
1 Added try and catch:
   CAddress::FindCall
 
  2 Added logs:
   TSPI_lineAnswer - between pCall->Answer and REQ_RET 
 
29.06.2011   Changes:
RoAlcEnt.tsp: 1.0.3.1184
RoAlcEUI.dll:  1.0.3.380
1 Added logs:
   TSPI_lineAnswer - BadWritePtr, BadReadPtr
 
  2 Removed debug line from CAddress::CloseCall. It causes exception  
21.06.2011   Changes:
RoAlcEnt.tsp: 1.0.3.1176
RoAlcEUI.dll:  1.0.3.380
1 Added logs:
   CAddress::CloseCall
   CSPICall::Answer
   TSPI_lineAnswer
 
  2 Added try and catch:
   CPBXAlcatel::CallAnswer
   CPBXAlcatel::FindRequest
   CSPICall::Answer
 
14.06.2011   Changes:
RoAlcEnt.tsp: 1.0.3.1173
RoAlcEUI.dll:  1.0.3.380
1 Added logs:
   CCall::CstaEvent: EVT_DELIVERED, EVT_ESTABLISHED, EVT_HELD
 
  2 Added try and catch:
   LineCallInfo::CopyInTo
   CPBXAlcatel::CSTADisconnected
   CPBXAlcatel::LinesCloseWatchDog
   CPBXAlcatel::ReconnectLines
   CProvider::SendAsyncResult
   CSPICall::MakeCall
   CSPILine::SendLineEvent
   CThreadTimer::SetTimer 
 
  3 Removed text from log: "Das System kann die angegebene Datei nicht finden."  
26.10.2010 Changes:
RoAlcEnt.tsp: 1.0.3.1149
RoAlcEUI.dll:  1.0.3.380
1 changed Reconnect_CSTAABRT.
Before: CSTADisconnected();
       g_pPBXProvider->m_fCSTAConnected = false;
Now:g_pPBXProvider->WatchdogTimer_Kill(); //stop timer
       g_pPBXProvider->DisconnectWhenWatchdog(); //call all functions necessary to disconnect
       if (true==g_pPBXProvider->CSTA_Reconnect()) //try reconnect
        g_pPBXProvider->WatchDogReset (); //watchdog reset
       g_pPBXProvider->WatchdogTimer_Set (); //start timer
gd OK 26.10.2010
01.06.2010 Changes:
RoAlcEnt.tsp: 1.0.3.1131
RoAlcEUI.dll:  1.0.3.380
1 CPBXAlcatel::DispatchMessage exception log MsgType: CSTAEVTCMAGIC,CSTASREPMAGIC,CSTAERREMAGIC, ACSEABRTMAGIC
  2 Added try, catch to CSPICall::Accept
  3 Added try, catch to CCall::CstaEvent, CLine::CstaEvent - logs with event type
     
28.05.2010 Changes:
RoAlcEnt.tsp: 1.0.3.1128
RoAlcEUI.dll:  1.0.3.380
1 remove semaphore CAddress::CloseCall - it causes timeout when message from pbx
2 added semaphone to TAPI thread which use CloseCall: TSPI_lineCloseCall, TSPI_lineMakeCall, TSPI_linePickup, TSPI_lineSetupTransfer
     
27.05.2010 Changes:
RoAlcEnt.tsp: 1.0.3.1123
RoAlcEUI.dll:  1.0.3.380
1 CAddress::CloseCall: added try, catch
2 CAddress::CloseCall: added log CAddress::CloseCall WAIT FOR SEMAPHORE TIMEOUT
3 CAddress::CloseCall: when exception - release Semaphore log: CAddress::CloseCall Exception was in SEMAPHORE
4 CSTA error _ReqLineMakeCall commented release Semaphore
5 CPBXAlcatel::DispatchMessage: when exception - release Semaphore log: DispatchMessage Exception was in SEMAPHORE
     
27.05.2010 Changes:
RoAlcEnt.tsp: 1.0.3.1119
RoAlcEUI.dll:  1.0.3.380
1 delete changes: “Watchdog disconnect” disconnect also CstaConnection. Before: "Watchdog disconnect" set flag disconnected=true
2 Added log in WatchDogReset: if (m_WatchDogDisconnectValue > 0)
   Write2LogFileCalls( "WatchDogReset-m_WatchDogDisconnectValue: %d; \n", m_WatchDogDisconnectValue);
3 RegistryGetDWord("AllCstaMsgWatchdogCountReset", 1)
4 added log in CPBXAlcatel::DispatchMessage: DispatchMessage return WAIT FOR SEMAPHORE Dispatch Message TIMEOUT ret = %x\n", ret_val
  5 blocking to delete files - error delete yesterday file
26.05.2010 Changes:
RoAlcEnt.tsp: 1.0.3.1115
RoAlcEUI.dll:  1.0.3.380
1 “Watchdog disconnect” disconnect also CstaConnection. Before: "Watchdog disconnect" set flag disconnected=true
     
26.05.2010 Changes:
RoAlcEnt.tsp: 1.0.3.1106
RoAlcEUI.dll:  1.0.3.380
1 Added log when WatchdogTimer DISCONNECTED (tick timer and m_fCSTAConnected flag value) [necessary log enabled]
       
12.05.2010 Changes:
RoAlcEnt.tsp: 1.0.3.1102
RoAlcEUI.dll:  1.0.3.380
1 Corrected bug from 06.05.2010 - version use wrong Registry Key SpiAlc02 tested OK 12.05.2010
       
06.05.2010 Changes:
Warning: version use wrong Registry Key SpiAclc02 – please do not use this version
RoAlcEnt.tsp: 1.0.3.1100
RoAlcEUI.dll:  1.0.3.377
1 Always log _ReqA_LineOpen CSTA Error: ERI_SUBSCRIBEDRESOURCEAVAILABILITY ESU_OBJECTMONITORLIMITEXCEEDED
even when Calls_Log_Enable=0 - default
tested OK 06.05.2010
2 UI window Before: when lines were loaded from .reg file and in this file lines were not sorted, checked lines weren’t displayed correct and select all wasn’t working – now it is fixed. tested OK 06.05.2010
       
23.02.2010 Changes:
RoAlcEnt.tsp: 1.0.3.1081 1 Unhold corrected - now is ok (Hold and UnHold).
Info: we shouldn't enable Hold in TMS, because TMS automatically put on hold connected call before MakeCall and MakeCall return error. 
tested OK 23.02.2010
RoAlcEUI.dll: 1.0.3.369
       
03.06.2009
RoAlcEnt.tsp: 1.0.3.1045 Changes:
RoAlcEUI.dll: 1.0.3.369 1 [HKLM] \SOFTWARE\Romico\Tapi\SPIAlca.tsp "Calls_Log_Enable"="1" [default =0] tested OK 03.06.2009
2 Copyright © 2009 tested OK 03.06.2009
21.05.2009 New function:
RoAlcEnt.tsp: 1.0.3.1036 1 UI: added ip2, port2 tested OK 21.05.2009
RoAlcEUI.dll: 1.0.3.368 2 tsp:reconnect ip1, next 45s ip2, next ip1… tested OK 21.05.2009
Changes (corrections):
1 change configuration host->ip, no possibilty to change it back (only registry) tested OK 21.05.2009
14.11.2007 New function:
RoAlcEnt.tsp: 1.0.3.1030 1 Delete log files older than 14 days: c:\WINDOWS\system32\RoAlc_2007.11.14.txt when time between 1÷3 tested OK 15.11.2007
30.08.2007 New function:
RoAlcEnt.tsp: 1.0.3.1029
RoAlcEUI.dll: 1.0.3.355
1 Timer check every 45s is it CSTASnapshotLinesIntervall after last CSTASnapshotLinesIntervall
If yes. If CSTA connection ok, take line by line, if line opened and has call SendSnapshotDevice
Sleep(CSTASnapshotLinesSleep) and takes next line

[HKEY_LOCAL_MACHINE\SOFTWARE\Romico\Tapi\SPIAlca.tsp]
"CSTASnapshotLinesInterval"="180" [180s=3min] default 0 – no Snapshot
"CSTASnapshotLinesSleep"="1000" [ms]
“CSTASnapshotLinesPrint” =”1” default 0 – no print
tested OK 30.08.2007
New for Debug (Added to log):
1 CPBXAlcatel::CstaResponse;Line:80001000;;;;;SnapshotDevice roid 38; No calls in CSTA, Calls in tsp: 1 tested OK 30.08.2007
2 CLine::SnapshotDevice;Line:80001000;;;;;SendSnapshotDevice roid 38;  tested OK 30.08.2007
Changes
1 SnapshotCsta (takes line by line and send SnapshotDevice) added Sleep(CSTASnapshotLinesSleep) default 0 tested OK 30.08.2007
13.07.2007 Changes (corrections):
RoAlcEUI.dll: 1.0.3.355 1 Added verify lines: "No information about lines Click Refresh or Verify lines tested OK 13.07.2007
2 Update registry to lines registry folder "SOFTWARE\\Romico\\Tapi\\SPIAlca.tsp\\Lines\\SOFTWARE\\Romico\\Tapi\\SPIAlca.tsp\\Lines"
Before update make backup registry: RoAlc_CopyReg_2007.07.13.reg
tested OK 13.07.2007
11.07.2007 Changes (corrections):
RoAlcEnt.tsp: 1.0.3.1009 1. WatchDog (WatchDogDisconnectCount - how many ticks me make disconnect default [3])
   a. CloseAll lines
   b. Next tick timer (45s) try connect, if success than open lines which were opened previous
tested OK 12.07.2007
2. correction RegistryGetDWord, previous were wrong default vaules 0 for: m_ClearCallsAfterCallInitiated,                   m_ClearCallsReqSendOk tested OK 12.07.2007
3. Dont start again thread CComm::CommThread during Reconnect tested OK 12.07.2007
4. TSPI_lineClose can Close line when no connection to PBX tested OK 12.07.2007
5. Redirect not allowe before MakeCall - it hangs CSTA; log: TSPI_lineRedirect … m_fWasMakeCall == FALSE  tested OK 11.07.2007
22.06.2007 Changes
RoAlcEnt.tsp: 1.0.3.967 1. ClearCallsReqSendOk default = 1
2. ClearCallsAfterCallInitiated default = 1
New for Debug (DebugFlag):
1. LinePrintAllEvents
05.06.2007 New function:
RoAlcEnt.tsp: 1.0.3.963 1. When ClearCall and ClearCallsReqSendOkreg then SendRequestOk
2. Added ClearCallsAfterCallInitiated to Ccall:CstaEvent
04.06.2007 New function:
RoAlcEnt.tsp: 1.0.3.960 1. m_ClearCallsAfterCallInitiated
2. ClearCalls -> ClearAllCalls
New for Debug (DebugFlag):
1. PrintIsCallInSNAPSHOT_DEVICE
01.06.2007 Changes
RoAlcEnt.tsp: 1.0.3.942 1. event to call, on call is request, send request as Successfull to TAPI - moved from End function to begin
New for Debug (DebugFlag):
1. MakeCallRequestReturnFailed_MakeAnswer
New for Debug (Added to log):
1. CLine::CstaEvent ;EVT_CONNECTION_CLEARED Line: 80001001;lci 0; cau 48
23.05.2007 Changes
RoAlcEUI.dll: 1.0.3.330 1. ROMICO Alcatel OmniPCX Enterprise line -> RoEntLine
RoAlcEnt.tsp: 1.0.3.932 2. Changed license: enKeyTAPIAlcatelBase   = 20 -> 60; enKeyTAPIAlcatelErw    = 21 -> 61
m_Drop_MakeCall_Sleep default 100 -> 400
RoAlcEnt.txt -> RoAlcEnt_PBXConnections.txt
m_ClearCalls default 0 -> 1
Registry Romico GmbH -> Romico
DLL_PROCESS_ATTACH Log verion tsp to file
RoAlc_2007_5_18 -> RoAlc_2007_05_18
CLicense::GetValid(): expdate.tm_mon = GetMonth();-> expdate.tm_mon = GetMonth() - 1;
New for Debug (DebugFlag):
PrintVersion
PrintAllCallsAllLines
21.05.2007 1.0.3.919 Clearcalls: delete pCall;  -> this->m_pAddress->CloseCall (pCall);
21.05.2007 1.0.3.912
New function:
1. RequestNoUpdateAfterTimeout
2. m_ClearCallsAfterCleared 
3.ClearCallsSetIdle
4. m_ClearCallsDeleteInTsp 
Changes for Debug:
1. RoAlcEnt_Calls.txt -> RoAlcEnt_2007_05_18.txt
New for Debug (DebugFlag):
1. EVT_SERVICE_INITIATED_as_SER_MAKE_CALL_DontMake 
2. ClearAllCalls 
New for Debug:
1. EvtToString
11.05.2007 Changes (Corrections):
1. registry correction
10.05.2007 1.0.3.910 New for Debug (Added to log):
1. TSPI_lineCloseCall print call details
2. if (m_CallStatus.dwCallState == LINECALLSTATE_IDLE)
if CallsPrintReg ("80001000_CallsPrint"="1")
   this->m_pAddress->m_pLine->CallsPrint()
3. CCall::ToStrin - this->m_pAddress->m_pLine->m_szmcdu,
4. CONNECTION_RINGBACK_DontMake
5. CONNECTION_CLEARED_DISCONNECTED_DontMake
08.05.2007 1.0.3.905 New function:
1. EVT_SERVICE_INITIATED as SER_MAKE_CALL
New for Debug (Added to log):
1. TSPI_lineMakeCall print also hCall
2. MakeCall Linecdu: print callstate
3. g_Tools.Write2LogFile CCall::~CCall()
New for Debug (Added trace):
1. TRACE( " Line::CstaEvent GetCall( caid ) Line: %s, Call %s
2. TRACE( " Line::CstaEvent FindCall_In_State LINECALLSTATE_DIALTONE Line
Changes for Debug (log):
1. CCall::ToString Cler -> Caller
07.05.2007 1.0.3.888 New function:
1. no calls after SER_SNAPSHOT_DEVICE in pbx - clear all calls in line
2. CPBXAlcatel::CstaError: _ReqLineMakeCall - pAddress->m_pLine->SnapshotDevice
Changes (Corrections):
1. CComm::CommThread     if ( pextcstaMsg != NULL )
    { Sleep(0); }
    else    {     Sleep(10); // ( DoEvents ) }
2. RegistryGet, RegistrySet do not use global hkey and semaphore, disable class semaphore
3. CSTADisconnected - correction buf - it was exception previous
New for Debug (DebugFlag):
1. CONNECTION_CLEARED_DontMake
30.04.2007 1.0.3.872 WatchdogTimer DISCONNECTED Dont send monitor stop CPBXAlcatel::ReconnectLine
DoDisconnectWatchDog
commented:  CAutoCS cs( "GetCallInfo" ); CAutoCS cs( "GetCallStatus" ); CAutoCS cs( "Drop" ); //CAutoCS cs( "Accept" ); CAutoCS cs( "Answer" ); /CAutoCS cs("SendUserUserInfo"); CAutoCS cs( "MakeCall" ); CAutoCS cs( "LinePickup" ) CAutoCS cs( "UnPark" ) CAutoCS cs( "CompleteTransfer" ) CAutoCS cs( "Dial" ) CAutoCS cs( "Hold" ) CAutoCS cs( "Redirect" ) CAutoCS cs( "SetupTransfer" ) CAutoCS cs( "SwapHold" ) CAutoCS cs( "UnHold" )
commented CAutoCS cs( "DispatchMessage" )
commented DebugRegSleep10s
__ACTIVATE_AUTOCS CAutoCS
m_hSemaphoreCS gPbxProvider -> Ctools
27.04.2007 1.0.3.843 Cline: CLine::CstaEvent  LineEvent Alerting write to file, EVT_SERVICE_INITIATED
EVT_CONNECTION_CLEARED print also Ccall
added CAutoCS cs( "Registry" ); to UIRegistryGet, UIRegistrySet, UIRegistryGet, UIRegistrySet
 CSPILine::SendLineEvent - m_Tapi_Events_Print
commented write to file:CSPILine::NewCall
commented write to file: CSPIAddress::NewCall
m_Tapi_Events_Print
m_Tapi_Event_Disable
commented PrintAllCallsAllLines, "CstaEvent - EVT_DELIVERED Call
po MakeCallGeneralTimeOut zablokowanie wysylania komunikatow do tapi MakeCallGeneralTimeOut_Tapi_Event_Disable
CCall::ToString wypisanie call handle
23.04.2007 1.0.3.835 Changes (Corrections):
1. Error read registry (block registry when no CloseReg) RegQueryValueEx -> RegistryGet: CPBXAlcatel::CheckLineReg, CheckReg_CSTAConnection_Reset, CheckReg_CSTA_Snapshot, SetDebugReg, DebugReg
2. CTools::RegistryGet, RegistrySet: CAutoCS cs( "Registry" );
Changes:
1. do not check it every 45s Check_LogRegistry Calls_LogFileName
20.04.2007 1.0.3.816 New for Debug (Added to log):
1. Enter, Exit Thread: CComm::CommThread
Changes (Corrections):
1. CThreadTime do not sleep 45s, but sleep 100ms and check if is good time - reason "Exit Thread: in Log
15.04.2007 1.0.3.798 Changes (Corrections):
1. commented WaitForSingleObject( m_hEvent, 5000 ) in LineOpen, LineClose, MakeCall_Dial, ReconnectLine
13.04.2007 1.0.3.793 Changes (Corrections):
1. Disable SendMonitor Start/Stop (Init) [tested ok]
2. CProvider::RequestsPrint added Sleep(1); [tested ok]
New for Debug (Added to log):
1. Write2LogFile with ms [tested ok]
2. Default TickPrint=NoPrint; Request_Timeout_DisableTickPrint->Request_Timeout_TickPrint_Enable [tested ok]
3. TspiLineOpenStart, print error code
New for Debug (DebugFlag):
1. LineCloseReturnFailed
2. LineOpenReturnFailed
Code Ordnung:
1. _OK, _FAILED - Global in stdafx.h, not twice   enum   // return error codes   {   _OK,   // success
      _FAILED,                                                       // opperation failed   };
12.04.2007 1.0.3.776 Changes (Corrections):
1. Zapetlanie sie CProvider::RequestsPrint - pTemp = (CRequest*)m_pRequests->GetNextObject(); ->  pNextRequest = (CRequest*) pTemp->GetNextObject(); RequestsPrintDontMake, 80001000_MakeCallGeneral
New for Debug (Added to log):
1. Write2LogFile(Calls_LogFileName,: TSPI_lineClose
New for Debug (DebugFlag):
1. CstaError_ReqLineMakeCall_DoNothink
2. RequestsPrintDontMake
04.04.2007 1.0.3.769 New for Debug (Added to log):
1. Write2LogFile(Calls_LogFileName,: Started Request_Timeout_Timer, Not Started Request_Timeout_Time
2. 1 != g_pPBXProvider->m_Request_Timeout_DisableTickPrint
Write2LogFile(Calls_LogFileName,: CProvider::RequestsPrint, CProvider::RequestsPrint i: %d Request roid: %d
Changes (Corrections):
1. svchost exception during unload tsp: delete m_pRequestTimeOutTimer
2. Request_Timeout_DisablePrint -> Request_Timeout_DisableTickPrint, Request_Timeout_Disable
03.04.2007 1.0.3.767
New for Debug (Added to log):
1. Write2LogFile(Calls_LogFileName,: CALL EVT_CONNECTION_CLEARED ReleasingDev:
2. LineDebugReg if parameter line is nothing
New for Debug (DebugFlag):
1. MakeCallGeneralTimeOut
2. SnapshotDeviceTimeOut
Changes(Corrections):
1. SnapshotDevice - nie czeka az zwrocony zostanie request zobaczyc gdzie jeszcze jest uzywana ta funkcja
New functions:
1. RequestsPrint and delete old: Request_Timeout_DisablePrint, Request_Timeout, Request_Timeout_Timer
29.03.2007 1.0.3.726 Alcatel-CSTAsdk-v5_3:
1. NEWCALL -> CAU_NEWCALL
2. commented: CSTASTDMMAGIC, CSTAQUITMAGIC
3. apicsta.dll 5.0.111.1
28.03.2007 Trace all comunications to TAPI (now commented)- CSPILine::SendLineEvent - Write2LogFile
Write2LogFile: TSPI_lineCloseCall
20.03.2007 1.0.3.713 CComm::CommThread wypisanie line  - miejsca w ktorym wylecialo Tested Ok: CComm::CommThread_ExceptionNull
TRACE-> g_Tools.Write2LogFile(Calls_LogFileName :MakeCallRequestReturnFailed 
CPBXAlcatel::DispatchMessage added try, catch : WriteIntExceptionToLogFile Tested OK: CSTAEVTCMAGIC_ExceptionNull
CPBXAlcatel::CSTADisconnected( Write2LogFile calls
14.03.2007  g_Tools.Write2LogFile(Calls_LogFileName,"DLL_THREAD_ATTACH\n");  -> TRACE
 g_Tools.Write2LogFile(Calls_LogFileName,"DLL_THREAD_DETACH\n");  -> TRACE
13.03.2007 Write2LogFile(Calls_LogFileName,: DLL_PROCESS_ATTACH, DLL_THREAD_ATTACH, DLL_THREAD_DETACH, DLL_PROCESS_DETACH,  "CTools::CTools()\n"), "CTools::~CTools()\n", TSPI_providerInit, TSPI_providerShutdown
***************************************** 08.03.2007
RoAlcEnt.tsp: 1.0.3.670 New functions: phone.exe test:
1. Odczyt z apicsta.dll jest robiony z przerwa na 100ms. CComm::CommThread: Sleep(100); default 10 not tested 
2. CSTA Response OK roid nie wypisuje jesli nie znalazl requesta w naszej liscie tested OK: CSTA Response Error Request not found on list:  roid: 21   
3. CSTA_SnapshotTime [HKLM\ AlcatelKey] "CSTA_SnapshotTime"="02:55" tested OK: CSTA_SnapshotTime in RoAlcEnt_Calls.txt
Changes(Corrections):
1. Poprawka: drugi reset nie powoduje zawieszenia linii tested OK
Changes for Debug:
1. TSPI_lineDrop return LINEERR_INVALCALLHANDLE, TSPI_lineMakeCall Linecdu added \n
Test (ohter):
1. Podczas SnapShot zostala zlapana odpowiedz z centralki na requesta, ktorego nie bylo w tsp:
CSTA Response Error Request not found on list:  roid: 21   
TODO: Exception in Function: CComm::CommThread dodac w ktorym miejscu wylecialo: nasza funkcja, czy blad dll-a?
***************************************** 06.03.2007
AlcatelKey = SOFTWARE\Romico GmbH\Tapi\SPIAlca.tsp
RoAlcEnt.tsp: 1.0.3.657 New for Debug (special Debug flags):
1. DropCallRequestReturnInvalidCallHandle: *181_DropCallRequestReturnInvalidCallHandle="1" tested OK:"LineDrop AnalyzeRequest Line",enUserDef
2. LineDialReturnOperationFailed="1" [HKLM\AlcatelKey\Debug]   LINEERR_OPERATIONFAILED tested OK: MakeCall, try Dial-Error, MakeCall ok
3. TSPI_lineDrop return LINEERR_INVALCALLHANDLE  LineDropReturnInvalidCallHandle="1" tested OK: TSPI_lineDrop return LINEERR_INVALCALLHANDLE - LineDropReturnInvalidCallHandle 
New for Debug (Added to log):
1. TSPI_lineDial Write2LogFile when not successfully: if ( !( retval == dwRequestID || retval == 0L )) not tested 
2. write "CSTAConnection_Reset START CSTALink:" to files: RoAlcEnt.txt, RoAlcEnt_Calls.txt tested OK: CSTAConnection_Reset START CSTALink: 0
3. SendMonitorStart, SendMonitorStart all write to file not tested 
New for Debug (other):
1. GetLineNameFromCall, TapiErrorToStr not tested 
2. g_pPBXProvider->m_Calls_LogFileName -> Calls_LogFileName przeszukac wszystkie tektsy - zrobione tested OK:
3. char* CCall::ToString( char* _buf ) tested OK:
New for Debug (test try catch functions-ExceptionGenerator):
1. CAddress::CloseCall- ExceptionGenerator(_pCall->m_pAddress->m_pLine); tested OK:
2. CPBXAlcatel::CstaResponse( ExtCstaMsg* _pextcstaMsg ): SER_ANSWER_CALL tested OK:
3. CPBXAlcatel::CstaResponse( ExtCstaMsg* _pextcstaMsg ): SER_MONITOR_START tested OK:
4. WriteExceptionToLogFile_throw Exception null svchost exception
Changes (Corrections):
1. Dodano Try, Catch do:
   - CComm::CommThread(LPVOID pData)
   - CThreadTimer::ThreadFunction
   - wszystkie funkcje tspi_
tested OK: nie stwierdzona bledow
2. m_wNumLines: int -> DWORD not tested 
3. Disable TSPI_lineUnpark - always return return LINEERR_OPERATIONUNAVAIL not tested 
New functions:
1. SnapshotDevice: Wypisanie listy calli, ktore sa w tsp i CSTA podczas CSTA reconnect CSTASnapshotOnLineClose, CSTASnapshotOnDisconnect, CSTASnapshot_Timeout tested OK: CloseCallDontMake, stay calls, CSTA reset
Info: on Lines when no calls in csta possible error after SnapshotDevice: Error: _ReqA_LineClose CSTA Error: ERI_OPERATIONS EOP_INVALIDCROSSREFID
2. CSTAReset make CloseLine CPBXAlcatel::ReconnectLine 
Changes for Debug:
1. Nie zapisywac do pliku: AlcaSPI: LineEvent Called  Write2LogFile-> TRACE tested OK: nie stwierdzono w pliku
TODO:
1. czy ENTE_CRIT_SECT ma try, catch?
2. Odczyt z apicsta.dll jest robiony z przerwa na 100ms. CComm::CommThread: Sleep(100); default 10
3. CCall::ToString zamienic na funkcje, ktora sprawdzi wskaznik
4. CSTA_Frequency
5. Czy nie jest za wczesnie robiony LineClose/LineOpen
Test (ohter)
1. Exception CComm::CommThread Line 46, error in:         
   try
   {
     pextcstaMsg = GetExtCstaMsg(NULL, 10 * 1000, &linkRep, NULL);
     if ( pextcstaMsg != NULL )
     {
      g_pPBXProvider->DispatchMessage( pextcstaMsg );
      ExtCstaMsg_Free( pextcstaMsg);
     }
   }
2. Reset: Najpierw powinien byc LineClose, potem disconnect a pozniej LineOpen
ReconnectLine:  if (pLine->m_nIsOpen)
 {
  pLine->LineClose();
  return LineOpen(pLine->m_wID);
 }
***************************************** 22.02.2007
RoAlcEnt.tsp: 1.0.3.603   New function:
  1. Reset every day at 3:15
RoAlcEnt_Calls.txt - CSTAConnection_Reset START CSTALink:
[HKLM\SOFTWARE\ROMICO GmbH\TAPI\SPIAlca.tsp]
"CSTAConnection_Reset_Time"="3:15"
OK: tested 2 days: 24,25.02.2007
***************************************** 19.02.2007
RoAlcEnt.tsp: 1.0.3.601 Changes (Corrections):
1. Exception svchost when unload tsp destructor SPIAddress check PBXProvider pointer 
2. A lot of requests ReqHookOff - delete create new request after delete old
***************************************** 13.02.2007
Changes:
RoAlcEnt.tsp: 1.0.3.599 1. ERI_STATEINCOMPATIBILIT after _ReqLineMakeCal return LINEERR_OPERATIONUNAVAIL, not as was before LINEERR_OPERATIONFAILED. We can use it in TMS: MakeCall_ReOpen_Disable_When tested: OK
Other noticed during test:
2. MakeCall na numer, ktorego nie ma w centralce np. 80001007 LINEERR_OPERATIONFAILED, mozna by po tym tez nie resetowac linii (CSTA Error: ERI_OPERATIONS EOP_INVALIDCALLEDDEVICE) INFO
***************************************** 08.02.2007
RoAlcEnt.tsp: 1.0.3.586 New functions: test z TeliMan client test z Robot5
1. LineClose delete all calls on line, before after LineClose/LineOpen still was call on line tested: CloseCallDontMake OK
2. MakeCall, Tsp has Dialtone call - before: MakeCall return error, now: drop and MakeCall  registry flag: Drop_MakeCall_Sleep tested: Dialtone, TMS, TMC: MakeCallOrder=M, client has disconnected call tested: OK
3. Dial, Tsp has Dialtone, create temporary call, "DROP csta Dialtone call in Dial, TapiHandle xfffffffa - will not be delete in tapi, call from csta MakeCall is insert into call which we received from tapi tested: Dialtone, MakeCall OK
Changes:
1. Create request for _ReqA_HookOff - necessary for match if error tested: OK
New for Debug:
1.  TRACE( "CALL Destructed %x, call num %i, Line: %s\n", this, m_nCallCounter, m_pAddress->m_pLine->m_szmcdu ); tested: OK
2. Registry flags checking for every 45s: Check_LogRegistry: Log2File_Activate, Reconnect_LogFileName, Calls_LogFileName tested: OK
Changes for Debug:
1. Write2LogFile also call TRACE not necessery 2 lines in code tested: OK
2. c:\\deb_TSP_ -> C:\windows\system32\deb_TSP_; c:\\call_TSP_ -> C:\windows\system32\call_TSP_ tested: OK
3. CloseCallDontMake, MakeCallRequestReturnFailed, MakeCallReturnFailed, MakeCallRequestReturnInvalidHande, MakeCallReturnOKTimeOut, delete old *181="2:", "3:" tested: OK, FAILED MakeCallRequestReturnFailed - No answer call
4. added Write2LogFile: CPBXAlcatel::CstaError:_ReqLineMakeCall, all errors in CPBXAlcatel::CstaError, CPBXAlcatel::CstaResponse, InitializeReg:SendMonitorStart. SendMonitorStop, CPBXAlcatel::LineOpen all return, LineClose, CallDrop, CallAnswer, CPBXAlcatel::MakeCall_Dial all return, CompleteConference, CompleteTransfer, CallHold, CallUnhold, CallRedirect, CallSetupTransfer, CallSwapHold, ReconnectLine, SendAsyncResult when error, CSPIAddress::~CSPIAddress(), TSPI_lineMakeCall all return, TSPI_lineOpen tested: OK
black - added before
5. deleted from Write2LogFile: TSPI_lineGetCallInfo tested: OK
Additionaly to test:
1. Redirect *181->80001001; 80001001 jest przekierowana na 80001000, *181 mysli ze rozmawia z 80001001 FAIL: Robot5 nie ma informacji o przekierowaniu
2. Transfer tested: OK nieprzetestowane Robot5 nie ma funkcji transfer
3. Add/Remove tsp if registry are ok tested: OK
4. Log file for MakeCall problem an LineClose/LineOpen tested: OK
5. Pickup tested: OK TAPI Error in TapiLinePickup: LINEERR_OPERATIONFAILED nieprzetestowane Robot5 nie ma funkcji pickup
6. Robot 5 FAIL: doesn't work with lines * eg. *180
7. TMC: MakeCall *180->80001000, 80001000 not unswer, MakeCall *180->80001001 error INFO nieprzetestowane Robot5 nie moze zadzwonic na *180
8. Rejestry:Drop_MakeCall_Sleep OK tested value 200
9. Proba zrobienia MakeCall, jesli mamy juz rozmowe przychodzaca wersja:1.0.3.599 FAIL: jest blad LINEERR_OPERATIONUNAV
10. Reset Tsp: Wyladowanie tsp, Rejestr - reset polaczenia, reconnect FAIL: plik reconnect (RoAlcEnt.txt) tworzy sie zawsze,
INFO:1. wyladowanie tsp widac w pliku jedynie po LineClose, mozna by zapisac ladowanie, wyladowywanie tsp
2. Przy resecie nie wypisuje sie ze jest reset, nie wypisuje sie ze zostaly wyczysczone call-e na adresie
Other noticed during test:
1. Drop on offering general timeout FAIL: GENERAL_TIMEOUT in TMS
TMC Error  
2. Call 80001000->*180 znajduje na pulpicie, nie pokazywana lista; Call *180->80001000 znajduje na pulpicie, rowniez pokazywana lista  INFO NA
3. *180 jest na szaro, pomimo ze jest zalogowany - prawdopodobnie powoduje to * INFO NA
***************************************** 25.01.2007
RoAlcEnt.tsp: 1.0.3.533 1.Addition int. _ReqA_HookOff : MakeCall –> Answer
2.AutoAnswerMakeCall1 - SER_MAKECALL earlier,  default 1, AutoAnswerMakeCall2 - EVT_INITIATED later default 0-
3. trace details Alcatel requests
4. if (m_CallInfo.dwOrigin != LINECALLORIGIN_OUTBOUND ) could be internal busy is notincoming
5. Log CstaError to file: Call_LogFileName 
6. added Write2LogFile:  all errors in CPBXAlcatel::CstaError, CPBXAlcatel::CstaResponse, InitializeReg:SendMonitorStart. SendMonitorStop, , LineClose, CallDrop, CallAnswer, CompleteConference, CompleteTransfer, CallHold, CallUnhold, CallRedirect, CallSetupTransfer, CallSwapHold, , CSPIAddress::~CSPIAddress(),
***************************************** 10.01.2007
RoAlcEnt.tsp: 1.0.3.531 Logs:
1. delete first \n AlcaSPI in TRACE - all traces from Alcatel.tsp have prefix: AlcaSPI
2. Trace: StartReset, EndReset - inforation if is connection czy udalo sie nawiazac polaczenie z centralka - mReconnect - 45s
3. LineName - problem (SendMonitor Start)
4. CstaError - line name and reason
5. LineOpen return bug

New:
1. Debug Registry blok OpenLine/MakeCall
2. Alc_Ent_CSTAConnection_Reset_Enable.reg
***************************************** 03.01.2007
version: 1.0.3.519
trace always enabled - OutPutDebugString
added new trace
***************************************** 16.11.2006
RoAlcEnt.tsp:1.0.3.491
RoAlcEUI.dll: 1.0.3.311
Enterprise
1. During load dialog do not refresh lines
2. button AddLines: addd new line and check this lines
3. button Verify lines - check checked lines in pbx
4. check/uncheck
5. correction TUISPI_ProviderInstall - it was possible twice add this tsp
6. after CAMPON (Anklopfen) call was droped. example 100 is busy, line 101 call to 100, drop because 100 is busy
7. correction FAILED, QUEUED: BUSY (Anklopfen) BUSY-> RINGBACK
***************************************** 06.11.2006
RoAlcEnt.tsp: 1.0.3.481
RoAlcEUI.dll: 1.0.3.289
Enterprise
update registry
***************************************** 30.10.2006
RoAlcEnt.tsp 1.0.3.472
RoAlcEUI.dll 1.0.3.268
Enterprise
1) After conference call was set on  disconnect instead of connect - TMC drop this call
2) Before idle send disconnetced
3) TRACE: number call on address and line
4) Do not send IDLE twice
5) conference call increase number active calls
6) Line on which was conference after drop over participant- number active calls to less
7) missings AddressId,DeviceID in CallInfo
8) add _SQLLOG_INSERT4
9) ASSERT IsBadWritePtr / sizeof(WCHAR)
10) IsAlcatelLine
11) Star in line name
***************************************** 25.09.2006
RoAlcEnt.tsp 1.0.3.418 25.09.2006
RoAlcEUI.dll 1.0.3.224 25.09.2006
8-digit with log to files
Additional log with calls:
lineGetCallInfo and CSTA_LineEvent log is by default disabled. Enabling by set RegFlag Calls_LogFileName to filename. Default path is <SYSTEM32>.

changed wrong name of RegFlag Log2File_Deactivate->Log2File_Activate
When Log2File_Activate is set to 1, all TRACE output is by wrote to files on drive C:\\
defaults disabled
***************************************** 22.09.2006
 RoAlcEUI.dll: v. 1.0.3.213
 RoAlcEnt.tsp: v. 1.0.3.383  
     internal number lenght extended to 8-digits
     changed variable types:
     int->long;  WORD->DWORD; atoi->atol; itoa->ltoa;
     changed names of some overloaded methodes 
***************************************** 21.09.2006
RoAlc4UI.dll: 1.0.2.123 reconnect
RoAlc420.tsp:1.0.2.179
***************************************** 07.09.2006
     RoAlcEnt.tsp ver 1.0.3.333 07.09.2006
     RoAlcEUI.dll  ver 1.0.3.178 01.09.2006
Correction log reconnect:
   date
   print dots to file during unsuccesfull reconnect

BugFix Drop on Offering Call
   correction during CallDrop on offering, it makes better because call isn't deleted from TMC
   correction isn't fully solution because after click drop in TMC button stay pressed for 5s, bet after it all is ok
***************************************** 04.09.2006
Todo: LastRedirection doesn't work on Xp in Release version
Done: Configuration / Ok do not delete registry Always Last redirection
     RoAlcEnt.tsp ver 1.0.3.298 01.09.2006
     RoAlcEUI.dll ver 1.0.3.178 01.09.2006
date 2006.09.01
     Alcatel Reconnect
Registry flags:
            Reconnect_Disabled
            Reconnect_LogFilename
            Reconnect_Timeout
            Reconnect_ACSEABRT

    critic section in TSPI_line... i CSTADisconnect
    flag in TSPI_line... block all calls from TAPI when no connection with PBX - exceptions:
        TSPI_lineCloseCall
        TSPI_lineGetCallInfo
        TSPI_lineGetCallStatus
        TSPI_lineGetDevCaps
        TSPI_lineGetNumAddressIDs
        TSPI_lineNegotiateExtVersion
        TSPI_lineNegotiateTSPIVersion
    critic section in gTools.TRACE

    WARNING:delete reconnect from MakeCall and OpenLine

    Disable critic section in TSPI_line... - commenta #define __CRIT_SECT_ACTIVE__

    addition flag ( commented ): Reconnect_ByTAPI
    possible Reconnect in lineopen, MakeCall, Park, Unpark, SetForward
***************************************** 31.07.2006
RoAlcEnt.tsp v. 1.0.3.165 31.07.2006
RoAlcEUI.dll  v. 1.0.3.150 21.06.2006
Wolfgang problem in AlphComCenter with ring during Make Call

Correction in tsp Enterprise. Sent to Wolfgang
It is possible to remove ringtone, but this depends on  phone type. The way to do this is to cut time between  MakeCall and SendLineAnswer We have three phone types:
Alcatel 4038 IP Touch  - makecall without ringtone Alcatel 4039 - makecall without ringtone Alcatel Advanced Reflexes - makecall with ringtone, but ringtone is very short.
***************************************** 21.06.2006
Alcatel TSP 1. made for AlphaComCenter - LastRedirection Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Romico GmbH\Tapi\SPIAlca.tsp] "AlwaysLastRed"="1"
RoAlcEnt.tsp v1.0.3.161
RoAlcEUI.dll v.1.0.3.150 2. made for ComPlan - late line opening, it should prevent of losing lines if network is not ready during PC startup
***************************************** 13.06.2006
RoAlcEnt.tsp 1.03.134 added to parse function CSTA EVT_DELIVERED registry flag which makes that Redirection fields are filled always - not depend on CAUSE field in CSTA
It is necessary add fregistry flag:
[HKLM \ SOFTWARE \ Romico GmbH \ Tapi \ SPIAlca.tsp] "AlwaysLastRed"="1"
This things are corrected implemted in next version(141,142), not in this
wersja tsp 1.0.3.141(release)
1.0.3.142(debug)
Corrected CSTA EVT_DELIVERED when not registry flag AlwaysLastRed.
(changed also two places in compare with 1.0.3.134 12.06.2006 )
correction: Switched Redirection  Redirecting during outgoing call
Version debug create log files C: 
***************************************** 28.04.2006
RoAlcEui.dll 1.0.2.148
RoAlcEnt.tsp 1.0.2.126
After tests AlcatelOffice added changes to Enterprise
additionaly corrected conference: added using event EVT_FAILED
***************************************** 
oAlcEui.dll 1.0.2.133
RoAlcEnt.tsp 1.0.2.76 This version TSP Alcatel Enterprise received Wolfgang 23.03.2006  changes in compare to 9.02.2006
Added corrections which were made for OfficePCX and 4200.
correcetion EVT_Cleared - conclusion from tests in Sttutgart
allowed 5 numbers internal numbers
RoAlcEui.dll 1.0.2.131
RoAlcEnt.tsp 1.0.2.76
o version since  9.02
added: internal line number  up to 5 digits
proper handling for busy and disconnected call state.
known bugs: disconnecting from conference in some cases shows wrong state
*****************************************