telephonyserverplugins/attestltsy/atcommand/callcontrol/src/atdialvoice.cpp
branchAT_Test_LTSY
changeset 3 70f1e1f5dabe
parent 1 4047d69ee0e4
equal deleted inserted replaced
2:477feb25356d 3:70f1e1f5dabe
   313 		LOGTEXT2(_L8("[Ltsy CallControl] iDialStep = %d"),iDialStep);
   313 		LOGTEXT2(_L8("[Ltsy CallControl] iDialStep = %d"),iDialStep);
   314 		LOGTEXT(_L8("[Ltsy CallControl] The call was connected successfully"));
   314 		LOGTEXT(_L8("[Ltsy CallControl] The call was connected successfully"));
   315 		
   315 		
   316 		// if no KLtsyUnsolicitedCallingAltert string was received before we receive "OK"
   316 		// if no KLtsyUnsolicitedCallingAltert string was received before we receive "OK"
   317 		// it aslo means the call has been connected even though such KLtsyUnsolicitedCallingAltert
   317 		// it aslo means the call has been connected even though such KLtsyUnsolicitedCallingAltert
   318 		// was not received
   318 		// or KLtsyUnsolicitedCallCreated was not received
   319 		if(iDialStep == EATWaitForConnectingComplete)
   319 		if(iDialStep == EATWaitForConnectingComplete || iDialStep == EATWaitForDiallingComplete)
   320 		    {
   320 		    {
   321 		    LOGTEXT(_L8("[Ltsy CallControl] No alert string [+WIND: 2] received before we receive string [ok]"));
   321 		    LOGTEXT(_L8("[Ltsy CallControl] No alert string [+WIND: 2] received before we receive string [ok]"));
       
   322 		    
       
   323 		    if (iCallId == KLtsyErrorCallId)
       
   324 		    	{
       
   325 		    	iCallId = iPhoneGlobals.GetCallInfoManager().FindUnUesedCallId();
       
   326 		    	}
   322 		    
   327 		    
   323 		    HandleConnectingComplete();
   328 		    HandleConnectingComplete();
   324 		    iDialStep = EATWaitForConnectedComplete;
   329 		    iDialStep = EATWaitForConnectedComplete;
   325 		    }
   330 		    }
   326 		
   331 		
   327 		iResult = KErrNone;
   332 		iResult = KErrNone;
   328 		}
   333 		}
   329 	else if (aResponseBuf.Match(KLtsyBusyString) == 0)
   334 	else if (aResponseBuf.Match(KLtsyBusyString) == 0)
   330 		{
   335 		{
       
   336 		LOGTEXT(_L8("[Ltsy CallControl] Busy tone was detected"));
   331 		//iResult = KErrEtelBusyDetected;
   337 		//iResult = KErrEtelBusyDetected;
   332 		iResult = KErrGsmCCUserBusy;
   338 		iResult = KErrGsmCCUserBusy;
   333 		}
   339 		}
   334 	else if (aResponseBuf.Match(KLtsyNoAnswerString) == 0)
   340 	else if (aResponseBuf.Match(KLtsyNoAnswerString) == 0)
   335 		{
   341 		{
       
   342 		LOGTEXT(_L8("[Ltsy CallControl] No answer from remote party"));
   336 		//iResult = KErrEtelNoAnswer;
   343 		//iResult = KErrEtelNoAnswer;
   337 		iResult = KErrGsmCCUserAlertingNoAnswer;
   344 		iResult = KErrGsmCCUserAlertingNoAnswer;
   338 		}
   345 		}
   339 	else if (aResponseBuf.Match(KLtsyNoCarrierString) == 0)
   346 	else if (aResponseBuf.Match(KLtsyNoCarrierString) == 0)
   340 		{
   347 		{
   341 		// that could be the problem of the client, when there were two ongoing call, but a new call is coming up. As
   348 		// that could be the problem of the client, when there were two ongoing call, but a new call is coming up. As
   342 		// GSM only support two ongoing calls
   349 		// GSM only support two ongoing calls
       
   350 		LOGTEXT(_L8("[Ltsy CallControl] No carrier was detected"));
   343 		if(iCallId == KLtsyErrorCallId)
   351 		if(iCallId == KLtsyErrorCallId)
   344 		    {
   352 		    {
   345 		    iResult = KErrEtelNoCarrier;
   353 		    iResult = KErrEtelNoCarrier;
   346 		    return;
   354 		    return;
   347 		    }
   355 		    }
   359 				}
   367 				}
   360 			}
   368 			}
   361 		}
   369 		}
   362 	else if (aResponseBuf.Match(KLtsyErrorString) == 0)
   370 	else if (aResponseBuf.Match(KLtsyErrorString) == 0)
   363 		{
   371 		{
       
   372 		LOGTEXT(_L8("[Ltsy CallControl] There was an error connecting the call"));
   364 		iResult = KErrArgument;
   373 		iResult = KErrArgument;
   365 		}
   374 		}
   366 	else
   375 	else
   367 		{
   376 		{
       
   377 		LOGTEXT(_L8("[Ltsy CallControl] An unknown problem occurred connecting the call"));
   368 		iResult = KErrGeneral;
   378 		iResult = KErrGeneral;
   369 		}
   379 		}
   370 	}
   380 	}
   371 
   381 
   372 // ---------------------------------------------------------------------------
   382 // ---------------------------------------------------------------------------