PduHeader

  • X-Mms-Status Field:彩信状态,对应表字段pdu.st

STATUS_EXPIRED                  = 0x80;

STATUS_RETRIEVED                = 0x81;

STATUS_REJECTED                 = 0x82;

STATUS_DEFERRED                 = 0x83;

STATUS_UNRECOGNIZED             = 0x84;

STATUS_INDETERMINATE            = 0x85;

STATUS_FORWARDED                = 0x86;

STATUS_UNREACHABLE              = 0x87;

 

  • X-Mms-Message-Type field types:信息类型,对应表字段pdu.m_type

MESSAGE_TYPE_SEND_REQ          = 0x80; 发送请求:手机-->mmsc                     SendTransaction.java处理

MESSAGE_TYPE_SEND_CONF         = 0x81; 发送响应:mmsc-->手机

MESSAGE_TYPE_NOTIFICATION_IND  = 0x82;接收通知消息:mmsc-->手机     由NotificationTransaction.java处理

MESSAGE_TYPE_NOTIFYRESP_IND    = 0x83;接收通知消息恢复:手机-->mmsc

MESSAGE_TYPE_RETRIEVE_CONF     = 0x84; 接收彩信正文:mmsc-->手机            PushReceiver.javaRetrieveTransaction.java处理

MESSAGE_TYPE_ACKNOWLEDGE_IND   = 0x85; 发送通知已收到:手机-->mmsc

MESSAGE_TYPE_DELIVERY_IND      = 0x86; 接收送达报告消息:mmsc-->手机 由PushReceiver.java处理

MESSAGE_TYPE_READ_REC_IND      = 0x87; 发送阅读报告:手机-->mmsc     ReadRecTransaction.java处理,没有对应的ack信息,说明阅读报告并不重要

MESSAGE_TYPE_READ_ORIG_IND     = 0x88; 接收阅读报告:mmsc-->手机    由PushReceiver.java处理

 

PushReceiver.java接收三类信息,接收到后直接在pdu表中插入一条记录:

MESSAGE_TYPE_NOTIFICATION_IND      通知信息记录会在彩信正文下载后被删除掉,因此_id会有跳跃

MESSAGE_TYPE_DELIVERY_IND               送达报告记录会和彩信正文记录并存

MESSAGE_TYPE_READ_ORIG_IND             阅读报告会和送达报告记录、彩信正文记录三条并存

 

  • X-Mms-Message-Class field types:信息类别,对应表字段pdu.m_cls

MESSAGE_CLASS_PERSONAL          = 0x80;

MESSAGE_CLASS_ADVERTISEMENT     = 0x81;

MESSAGE_CLASS_INFORMATIONAL     = 0x82;

MESSAGE_CLASS_AUTO              = 0x83;

MESSAGE_CLASS_PERSONAL_STR= "personal";

MESSAGE_CLASS_ADVERTISEMENT_STR= "advertisement";

MESSAGE_CLASS_INFORMATIONAL_STR= "informational";

MESSAGE_CLASS_AUTO_STR= "auto";

 

  • X-Mms-Response-Status field types:应答状态,对应表字段pdu.resp_st

RESPONSE_STATUS_OK                   = 0x80;

RESPONSE_STATUS_ERROR_UNSPECIFIED    = 0x81;

RESPONSE_STATUS_ERROR_SERVICE_DENIED= 0x82;

 

RESPONSE_STATUS_ERROR_MESSAGE_FORMAT_CORRUPT     = 0x83;

RESPONSE_STATUS_ERROR_SENDING_ADDRESS_UNRESOLVED= 0x84;

 

RESPONSE_STATUS_ERROR_MESSAGE_NOT_FOUND    = 0x85;

RESPONSE_STATUS_ERROR_NETWORK_PROBLEM      = 0x86;

RESPONSE_STATUS_ERROR_CONTENT_NOT_ACCEPTED= 0x87;

RESPONSE_STATUS_ERROR_UNSUPPORTED_MESSAGE  = 0x88;

RESPONSE_STATUS_ERROR_TRANSIENT_FAILURE    = 0xC0;

 

RESPONSE_STATUS_ERROR_TRANSIENT_SENDNG_ADDRESS_UNRESOLVED= 0xC1;

RESPONSE_STATUS_ERROR_TRANSIENT_MESSAGE_NOT_FOUND         = 0xC2;

RESPONSE_STATUS_ERROR_TRANSIENT_NETWORK_PROBLEM           = 0xC3;

RESPONSE_STATUS_ERROR_TRANSIENT_PARTIAL_SUCCESS           = 0xC4;

 

RESPONSE_STATUS_ERROR_PERMANENT_FAILURE                             = 0xE0;

RESPONSE_STATUS_ERROR_PERMANENT_SERVICE_DENIED                      = 0xE1;

RESPONSE_STATUS_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT              = 0xE2;

RESPONSE_STATUS_ERROR_PERMANENT_SENDING_ADDRESS_UNRESOLVED          = 0xE3;

RESPONSE_STATUS_ERROR_PERMANENT_MESSAGE_NOT_FOUND                   = 0xE4;

RESPONSE_STATUS_ERROR_PERMANENT_CONTENT_NOT_ACCEPTED                = 0xE5;

RESPONSE_STATUS_ERROR_PERMANENT_REPLY_CHARGING_LIMITATIONS_NOT_MET  = 0xE6;

RESPONSE_STATUS_ERROR_PERMANENT_REPLY_CHARGING_REQUEST_NOT_ACCEPTED= 0xE6;

RESPONSE_STATUS_ERROR_PERMANENT_REPLY_CHARGING_FORWARDING_DENIED    = 0xE8;

RESPONSE_STATUS_ERROR_PERMANENT_REPLY_CHARGING_NOT_SUPPORTED        = 0xE9;

RESPONSE_STATUS_ERROR_PERMANENT_ADDRESS_HIDING_NOT_SUPPORTED        = 0xEA;

RESPONSE_STATUS_ERROR_PERMANENT_LACK_OF_PREPAID                     = 0xEB;

RESPONSE_STATUS_ERROR_PERMANENT_END                                 = 0xFF;

你可能感兴趣的:(android,android)