equal
deleted
inserted
replaced
209 |
209 |
210 // Select Cause and CauseType according to routing result |
210 // Select Cause and CauseType according to routing result |
211 TUint8 causeType( ENone == aTpFailure ? |
211 TUint8 causeType( ENone == aTpFailure ? |
212 SMS_CAUSE_TYPE_COMMON : SMS_CAUSE_TYPE_EXT ); |
212 SMS_CAUSE_TYPE_COMMON : SMS_CAUSE_TYPE_EXT ); |
213 TUint8 smsCause( ENone == aTpFailure ? |
213 TUint8 smsCause( ENone == aTpFailure ? |
214 SMS_OK : SMS_ERR_PP_RESERVED ); |
214 SMS_OK : SMS_EXT_ERR_PROTOCOL_ERROR ); |
215 |
215 |
216 TUint16 dataLen( aUserData.Length() ); |
216 TUint16 dataLen( aUserData.Length() ); |
217 |
217 |
218 // SMS_RECEIVED_MSG_REPORT_REQ- first subblock is needed when: |
218 // SMS_RECEIVED_MSG_REPORT_REQ- first subblock is needed when: |
219 // 1) Delivery of SMS PP failed |
219 // 1) Delivery of SMS PP failed |
235 msgBuffer.Append( smsCause ); |
235 msgBuffer.Append( smsCause ); |
236 msgBuffer.AppendFill( KPadding, 3 ); |
236 msgBuffer.AppendFill( KPadding, 3 ); |
237 msgBuffer.Append( 0 ); // no of sublocks |
237 msgBuffer.Append( 0 ); // no of sublocks |
238 |
238 |
239 // Add SMS_SB_DELIVER_REPORT subblock if any failure is there |
239 // Add SMS_SB_DELIVER_REPORT subblock if any failure is there |
240 if( ENone != aTpFailure ) |
240 if( ENone != aTpFailure || |
|
241 0 < dataLen ) |
241 { |
242 { |
242 TFLOGSTRING("TSY:CSatDataDownload::BuildSimMsgReport \ |
243 TFLOGSTRING("TSY:CSatDataDownload::BuildSimMsgReport \ |
243 Adding SMS_SB_DELIVER_REPORT" ); |
244 Adding SMS_SB_DELIVER_REPORT" ); |
244 OstTrace0( TRACE_NORMAL, DUP1_CSATDATADOWNLOAD_BUILDSIMMSGREPORT, "CSatDataDownload::BuildSimMsgReport Adding SMS_SB_DELIVER_REPORT" ); |
245 OstTrace0( TRACE_NORMAL, DUP1_CSATDATADOWNLOAD_BUILDSIMMSGREPORT, "CSatDataDownload::BuildSimMsgReport Adding SMS_SB_DELIVER_REPORT" ); |
245 |
246 |
251 // SMS-DELIVER-REPORT for RP-ACK and RP-ERROR. |
252 // SMS-DELIVER-REPORT for RP-ACK and RP-ERROR. |
252 |
253 |
253 msgBuffer.Append( 0x00 ); // SMS_MTI_DELIVER_REPORT |
254 msgBuffer.Append( 0x00 ); // SMS_MTI_DELIVER_REPORT |
254 |
255 |
255 msgBuffer.Append( aTpFailure ); // GSM-TP Failure cause |
256 msgBuffer.Append( aTpFailure ); // GSM-TP Failure cause |
256 msgBuffer.AppendFill( KPadding, 2); |
|
257 // Increment number of subblock |
257 // Increment number of subblock |
258 msgBuffer[5]++; |
258 msgBuffer[5]++; |
259 deliverReport.CompleteSubBlock(); |
259 deliverReport.CompleteSubBlock(); |
260 } |
260 } |
261 |
261 |