adaptationlayer/tsy/simatktsy_dll/src/sateventdownload.cpp
changeset 8 6295dc2169f3
parent 5 8ccc39f9d787
child 9 8486d82aef45
equal deleted inserted replaced
7:fa67e03b87df 8:6295dc2169f3
   756                             // Set address type (TON/NPI) in correct form
   756                             // Set address type (TON/NPI) in correct form
   757                             BCDAddress.Append( aIsiMessage.Get8bit( 
   757                             BCDAddress.Append( aIsiMessage.Get8bit( 
   758                                 sbStartOffset +
   758                                 sbStartOffset +
   759                                 CALL_MODEM_SB_ORIGIN_CS_ADDRESS_OFFSET_ADDR )
   759                                 CALL_MODEM_SB_ORIGIN_CS_ADDRESS_OFFSET_ADDR )
   760                                 | KMSBMask );
   760                                 | KMSBMask );
   761                             // Append BCD address. Skip call type and mode
   761                             // Append BCD address. Skip TON/NPI
   762                             // ( 2 first bytes, not required in envelope )
       
   763                             BCDAddress.Append( aIsiMessage.GetData(
   762                             BCDAddress.Append( aIsiMessage.GetData(
   764                                 sbStartOffset +
   763                                 sbStartOffset +
   765                                 CALL_MODEM_SB_ORIGIN_CS_ADDRESS_OFFSET_ADDR + 2,
   764                                 CALL_MODEM_SB_ORIGIN_CS_ADDRESS_OFFSET_ADDR + 1,
   766                                 addressLength - 2 ) );
   765                                 addressLength - 1 ) );
   767                             }
   766                             }
   768                         // Extract subaddress
   767                         // Extract subaddress
   769                         retValue = aIsiMessage.FindSubBlockOffsetById(
   768                         retValue = aIsiMessage.FindSubBlockOffsetById(
   770                             ISI_HEADER_SIZE + SIZE_CALL_MODEM_MESSAGE_IND,
   769                             ISI_HEADER_SIZE + SIZE_CALL_MODEM_MESSAGE_IND,
   771                             CALL_MODEM_SB_ORIGIN_SUBADDRESS,
   770                             CALL_MODEM_SB_ORIGIN_SUBADDRESS,