Telephone--短信发送/接收流程

来源:互联网 发布:做外贸需要哪些软件 编辑:程序博客网 时间:2024/04/29 18:35

1.设置默认短信

2. 短信发送

3.短信接收

4.彩信发送

pdu表
列名类型说明_idinteger唯一标识,自增,从1开始thread_idintegerthreads表的iddateinteger时间,以秒来表示(与短信的不同)msg_boxinteger此条彩信属于哪个信箱,all为0,inbox为1,sent为2,draft为3,outbox为4,failed为5readinteger此条彩信是否已读:0-未读,1-已读m_idtextMessage-ID,由彩信服务器分配的消息idsubtext此条彩信主题sub_csinteger此条彩信主题编码方式:UTF-8为106ct_ttext彩信对应的Content-Type是application/vnd.wap.multipart.relatedct_ltextX-Mms-Content-LocationexpintegerX-Mms-Expiry,彩信有效期m_clstextX-Mms-Message-Class,此条彩信的用途:auto,advertisement,personal,informationalm_typeintegerX-Mms-Message-Type,由MMS协议定义的彩信类型,其中send-req为128、notification-ind为130、retrieve-conf为132vintegerX-Mms-MMS-Version,此条彩信对应的MMS协议的版本号,1.0 16,1.1 17,1.2 18,1.3 19m_sizeintegerX-Mms-MessageSizepriintegerX-Mms-Priority,此条彩信的优先级,normal 129,low 128,high 130rrintegerX-Mms-Read-Report,此条彩信的阅读报告,129rpt_aintegerX-Mms-Report-Allowedresp_stintegerX-Mms-Response-Statusstinteger该彩信的下载状态,未启动-128,下载中-129,传输失败-130,保存失败-135tr_idtextX-Mms-Transaction-Id,事务标识retr_stintegerX-Mms-Retrieve-Statusretr_txttextX-Mms-Retrieve-Textretr_txt_csintegerRETRIEVE_TEXT的编码方式read_statusintegerX-Mms-Read-Statusct_clsintegerX-Mms-Content-Classresp_txttextX-Mms-Response-Textd_tmintegerX-Mms-Delivery-Timed_rptintegerX-Mms-Delivery-Report,此条彩信的传输报告,是-128,否-129lockedinteger此条彩信是否已由用户锁定,0-未锁定,1-已锁定seeninteger用于指明该消息是否已被用户看到(非阅读,点开会话列表即可,不用打开会话),仅对收到的消息有用 
part表
列名类型说明_idinteger唯一标识,自增,从1开始midintegerpdu表的idseqinteger标志part的顺序,若ct为application/smil,则为-1,否则为0cttext此PART内容类型,如果是彩信始末:application/smil;如果是文本附件:text/plain;图像附件:jpg:image/jpeg,gif:image/gif;音频附件:audio/mpegnametext该PART的名字chsetinteger该PART的编码方式,UTF-8为106cdtextCONTENT_DISPOSITIONfntext该PART的文件名称cidtextCONTENT_ID,该PART内容的idcltext该PART的文件的位置ctt_sintegerCONTENT_TYPE内容类型在消息中的起始位置,未在代码中设置ctt_ttextCONTENT_TYPE内容类型的类型,未在代码中设置_datatext彩信附件在手机上的地址texttext如果是彩信始末,为彩信的SMIL内容;如果是文本附件,为附件内容;如果是视频、音频附件,此参数为空 
addr表
列名类型说明_idinteger唯一标识,自增,从1开始msg_idintegerpdu表的idcontact_idinteger电话本中联系人的idaddresstext电话号码,如果为insert-address-token且type为151,说明为本机号码typeinteger电话号码的类型,必须为PduHeaders.BCC-129,PduHeaders.CC-130,PduHeaders.FROM-137,PduHeaders.TO-151之一charsetinteger电话号码编码方式

5.彩信接收

6.短彩信回调

7.短信数据表

8.彩信数据表

9.双卡设置

0 0
原创粉丝点击