Changes to the phonetsy name from commdb and the make voice dialing not require AT+WIND indications AT_Test_LTSY
authorTom Pritchard <tomp@symbian.org>
Wed, 17 Feb 2010 18:40:26 +0000
branchAT_Test_LTSY
changeset 3 70f1e1f5dabe
parent 2 477feb25356d
child 4 3cf043a18b40
Changes to the phonetsy name from commdb and the make voice dialing not require AT+WIND indications
telephonyserverplugins/attestltsy/atcommand/callcontrol/src/atdialvoice.cpp
telephonyserverplugins/attestltsy/atcommand/generic/src/tsyconfg.cpp
--- a/telephonyserverplugins/attestltsy/atcommand/callcontrol/src/atdialvoice.cpp	Wed Feb 17 17:43:57 2010 +0000
+++ b/telephonyserverplugins/attestltsy/atcommand/callcontrol/src/atdialvoice.cpp	Wed Feb 17 18:40:26 2010 +0000
@@ -315,11 +315,16 @@
 		
 		// if no KLtsyUnsolicitedCallingAltert string was received before we receive "OK"
 		// it aslo means the call has been connected even though such KLtsyUnsolicitedCallingAltert
-		// was not received
-		if(iDialStep == EATWaitForConnectingComplete)
+		// or KLtsyUnsolicitedCallCreated was not received
+		if(iDialStep == EATWaitForConnectingComplete || iDialStep == EATWaitForDiallingComplete)
 		    {
 		    LOGTEXT(_L8("[Ltsy CallControl] No alert string [+WIND: 2] received before we receive string [ok]"));
 		    
+		    if (iCallId == KLtsyErrorCallId)
+		    	{
+		    	iCallId = iPhoneGlobals.GetCallInfoManager().FindUnUesedCallId();
+		    	}
+		    
 		    HandleConnectingComplete();
 		    iDialStep = EATWaitForConnectedComplete;
 		    }
@@ -328,11 +333,13 @@
 		}
 	else if (aResponseBuf.Match(KLtsyBusyString) == 0)
 		{
+		LOGTEXT(_L8("[Ltsy CallControl] Busy tone was detected"));
 		//iResult = KErrEtelBusyDetected;
 		iResult = KErrGsmCCUserBusy;
 		}
 	else if (aResponseBuf.Match(KLtsyNoAnswerString) == 0)
 		{
+		LOGTEXT(_L8("[Ltsy CallControl] No answer from remote party"));
 		//iResult = KErrEtelNoAnswer;
 		iResult = KErrGsmCCUserAlertingNoAnswer;
 		}
@@ -340,6 +347,7 @@
 		{
 		// that could be the problem of the client, when there were two ongoing call, but a new call is coming up. As
 		// GSM only support two ongoing calls
+		LOGTEXT(_L8("[Ltsy CallControl] No carrier was detected"));
 		if(iCallId == KLtsyErrorCallId)
 		    {
 		    iResult = KErrEtelNoCarrier;
@@ -361,10 +369,12 @@
 		}
 	else if (aResponseBuf.Match(KLtsyErrorString) == 0)
 		{
+		LOGTEXT(_L8("[Ltsy CallControl] There was an error connecting the call"));
 		iResult = KErrArgument;
 		}
 	else
 		{
+		LOGTEXT(_L8("[Ltsy CallControl] An unknown problem occurred connecting the call"));
 		iResult = KErrGeneral;
 		}
 	}
--- a/telephonyserverplugins/attestltsy/atcommand/generic/src/tsyconfg.cpp	Wed Feb 17 17:43:57 2010 +0000
+++ b/telephonyserverplugins/attestltsy/atcommand/generic/src/tsyconfg.cpp	Wed Feb 17 18:40:26 2010 +0000
@@ -466,7 +466,7 @@
     CCDModemBearerRecord *modemRecord = static_cast<CCDModemBearerRecord*>(CCDRecordBase::RecordFactoryL(KCDTIdModemBearerRecord));
     CleanupStack::PushL(modemRecord);
     
-    _LIT(KTsyName,"PhoneTsyWithDispatcher");
+    _LIT(KTsyName,"phonetsy"); // Note this is case sensitive and must match the name in commdb
     modemRecord->iTsyName.SetMaxLengthL(KMaxTextLength);
     modemRecord->iTsyName = KTsyName;