telephonyprotocols/pdplayer/src/pdpmcprstates.cpp
changeset 73 70d75957b98f
parent 23 6b1d113cdff3
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
       
    15 #include "OstTraceDefinitions.h"
       
    16 #ifdef OST_TRACE_COMPILER_IN_USE
       
    17 #include "pdpmcprstatesTraces.h"
       
    18 #endif
    15 
    19 
    16 #include <etelqos.h>
    20 #include <etelqos.h>
    17 #include <comms-infras/ss_metaconnprov.h>
    21 #include <comms-infras/ss_metaconnprov.h>
    18 #include <comms-infras/ss_nodeinterfaces.h>
    22 #include <comms-infras/ss_nodeinterfaces.h>
    19 #include <elements/nm_messages_errorrecovery.h>
    23 #include <elements/nm_messages_errorrecovery.h>
    64 void CPdpErrorRecoveryActivity::TProcessErrorRecoveryReq::DoL()
    68 void CPdpErrorRecoveryActivity::TProcessErrorRecoveryReq::DoL()
    65 	{
    69 	{
    66 	TEErrorRecovery::TErrorRecoveryRequest& req = message_cast<TEErrorRecovery::TErrorRecoveryRequest>(iContext.iMessage);
    70 	TEErrorRecovery::TErrorRecoveryRequest& req = message_cast<TEErrorRecovery::TErrorRecoveryRequest>(iContext.iMessage);
    67 	TInt error = req.iErrContext.iStateChange.iError;
    71 	TInt error = req.iErrContext.iStateChange.iError;
    68 
    72 
       
    73 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPERRORRECOVERYACTIVITY_TPROCESSERRORRECOVERYREQ_DOL_1, "Error Recovery Req. Message Id [%d] Error Id [%d]", req.iErrContext.iMessageId.MessageId(), req.iErrContext.iStateChange.iError);
       
    74 
    69 #ifdef SYMBIAN_NETWORKING_CONTENTION_MANAGEMENT
    75 #ifdef SYMBIAN_NETWORKING_CONTENTION_MANAGEMENT
    70 	if (req.iErrContext.iStateChange.iError == KErrUmtsMaxNumOfContextExceededByNetwork ||
    76 	if (req.iErrContext.iStateChange.iError == KErrUmtsMaxNumOfContextExceededByNetwork ||
    71 	    req.iErrContext.iStateChange.iError == KErrUmtsMaxNumOfContextExceededByPhone)
    77 	    req.iErrContext.iStateChange.iError == KErrUmtsMaxNumOfContextExceededByPhone)
    72 		{
    78 		{
    73 		// Get sender's priority
    79 		// Get sender's priority
   116 DEFINE_SMELEMENT(CPdpErrorRecoveryActivity::TProcessContentionResult, NetStateMachine::MStateTransition, PdpMCprStates::TContext)
   122 DEFINE_SMELEMENT(CPdpErrorRecoveryActivity::TProcessContentionResult, NetStateMachine::MStateTransition, PdpMCprStates::TContext)
   117 void CPdpErrorRecoveryActivity::TProcessContentionResult::DoL()
   123 void CPdpErrorRecoveryActivity::TProcessContentionResult::DoL()
   118 	{
   124 	{
   119 	TPDPMessages::TPdpContentionResultMessage* msg = message_cast<TPDPMessages::TPdpContentionResultMessage>(&iContext.iMessage);
   125 	TPDPMessages::TPdpContentionResultMessage* msg = message_cast<TPDPMessages::TPdpContentionResultMessage>(&iContext.iMessage);
   120 	CPdpErrorRecoveryActivity& activity = static_cast<CPdpErrorRecoveryActivity&>(*iContext.iNodeActivity);
   126 	CPdpErrorRecoveryActivity& activity = static_cast<CPdpErrorRecoveryActivity&>(*iContext.iNodeActivity);
       
   127 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPERRORRECOVERYACTIVITY_TPROCESSCONTENTIONRESULT_DOL_1, "Contention Result Code [%d]", msg->iValue);
   121 	if (msg->iValue != 0)
   128 	if (msg->iValue != 0)
   122 		{
   129 		{
   123 		TErrResponse retryResp(TErrResponse::ERetry, 0, activity.iCprMessageId);
   130 		TErrResponse retryResp(TErrResponse::ERetry, 0, activity.iCprMessageId);
   124 		TEErrorRecovery::TErrorRecoveryResponse rawResp	(retryResp);
   131 		TEErrorRecovery::TErrorRecoveryResponse rawResp	(retryResp);
   125 		TCFSafeMessage::TResponseCarrierWest<TEErrorRecovery::TErrorRecoveryResponse> resp(rawResp, activity.iOriginators[0].RecipientId());
   132 		TCFSafeMessage::TResponseCarrierWest<TEErrorRecovery::TErrorRecoveryResponse> resp(rawResp, activity.iOriginators[0].RecipientId());