MM7協議分析-1概述

           彩信協議接口包括MM1~MM10共10個接口協議,涉及到不同實體之間的交互。當然對於應用開發,一般只需要關注MM7協議,即MMSC和SP之間交互協議。

接口名稱

連接實體

說明

MM1

MMSCWAP GW

3GPPOMA有很明確的定義,infoX MMSC是查考了兩種協議來實現的,可以兼容支持,其中閱讀報告就是很好的例子。

MM2

Relay Server

3GPP等國際規範沒有明確定義,各個廠家都是私有協議。infoX MMSCMM2接口擴充爲軟件總線的接口和功能。

MM3

MMSCE-mail Server

基於SMTP的接口。3GPP等國際規範有明確定義,對於E-mail Server來講,MMSC就是一個郵件服務器。

MM4

MMSCMMSC

用於MMSC之間的互連,大多數廠家都遵循歸屬地服務的原則,在不同網絡和不同運營商互連上,建議使用MMSIG實現,MMSCIG左右兩邊都是MM4接口。

MM5

MMSCHLR

3GPP等國際規範沒有明確定義,僅僅提到:

1、用於MMSC獲取終端用戶狀態;2、如果使用SMS承載通知消息,可以不使用MM5接口。

MM6

MMSCDB

3GPP等國際規範沒有明確定義,各個廠家都是私有協議。

MM7

MMSCSP

3GPP等國際規範有明確定義,用於實現MMSCSP之間的交互。

MM8

MMSCOSS

3GPP等國際規範沒有明確定義,僅僅給出了一些CDR的建議和傳輸協議--FTP

Enum接口

MMSCEnum Server

3GPP等國際規範沒有明確定義,各個廠家都是私有協議。

DSMP接口

MMSCDSMP

這個接口有好多版本,從功能上主要有兩類:

1、鑑權

2、鑑權計費(Sunday項目)

           MM7協議通過HTTP協議承載,採用SOAP協議封裝傳送。
                   MM7請求應在一個HTTP POST請求中傳輸,MM7響應應在一個HTTP響應消息中傳輸。
                   MM7的消息控制信息在SOAP中封裝。
                   MM7的消息內容在MIME格式中封裝。

           MM7消息主要使用如下4種消息:
                  MM7_submit 用於下行MT消息
                  MM7_deliver 用於上行MO消息
                  MM7_delivery_report 用於上行MT消息對應的遞送報告
                  MM7_read_reply  用於上行MT消息對應的讀報告

         MM7請求示例:

POST / HTTP/1.1
Host:127.0.0.1:9077
Content-Type:multipart/related; boundary="--NextPart_0_2817_24856";type="text/xml";start="</tnn-200102/mm7-vasp>"
Content-Transfer-Encoding:8bit
Authorization:Basic bW1zOm1tcw==
SOAPAction:""
MM7APIVersion:V1.5.3_20040621
Connection: Keep-Alive
Content-Length:6985
Mime-Version:1.0

this is a multi-part message in MIME format

----NextPart_0_2817_24856
Content-Type:text/xml;charset="UTF-8"
Content-Transfer-Encoding:8bit
Content-ID:</tnn-200102/mm7-vasp>

<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0" env:mustUnderstand="1">SUNTEK1-00259E534DD67D41F5125</mm7:TransactionID></env:Header><env:Body><SubmitReq xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0"><MM7Version>6.3.0</MM7Version><SenderIdentification><VASPID>100009</VASPID><VASID>8809</VASID><SenderAddress>100020</SenderAddress></SenderIdentification><Recipients><To><Number>15627400428</Number></To></Recipients><ServiceCode>209</ServiceCode><DeliveryReport>true</DeliveryReport><Subject>this is a test mms</Subject><ChargedParty>ThirdParty</ChargedParty><ChargedPartyID>15627400428</ChargedPartyID></SubmitReq></env:Body></env:Envelope>
----NextPart_0_2817_24856
Content-Type:multipart/mixed;boundary="SubPart_7452684322002_77645"
Content-ID:conentId
Content-Transfer-Encoding:8bit

--SubPart_7452684322002_77645
Content-Type:image/gif
Content-Transfer-Encoding:8bit
Content-ID:dog-pic

GIF89a===========================
         MM7響應示例:

HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Type: text/xml;charset=GB2312
Content-Length: 535

<?xml version="1.0"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0">SUNTEK1-00259E534DD67D41F5125</mm7:TransactionID></env:Header><env:Body><SubmitRsp xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0"><MM7Version>6.3.0</MM7Version><Status><StatusCode>1000</StatusCode></Status><MessageID>061503554008542090000</MessageID></SubmitRsp></env:Body></env:Envelope>




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章