Вы находитесь на странице: 1из 5

5/10/2016

ShareTechnote

IMS/SIPSMSoverIMSHome:www.sharetechnote.com

OverallsequenceofSMSoverIMSisverysimple.Justsendamessageandwaitfordeliveryreport(thisdelivery
reportisoptional).Butwhenyouaregoingintodetailsespeciallyfortroubleshooting,therearealotofsmallthings
youhavetothinkof.Icameacrossmanytroubleshootingcase,butIhaven'tfoundanygeneralrulesthatwouldclear
outallofyourproblems.(ItmaybebecauseIMSserviceisstillinearlyphaseasofnow(Oct2013),specification
(RFC,3GPP)isnotsoclearandtheinterpretationofthosespecificationbytheIMSstackdevelopersseemstovarya
lot.)
Somyapproachonthistopicistointroducevariouscasesasmuchaspossiblesothatyoucanabsorbethegeneric
pattern.

MOSMSExample1
MTSMSExample1

SIPSpecificationonSMS

<CapabilityindcationinREGISTER>

IR922.2.1SIPRegistrationProceduressays:
IfaUEsupportSMSoverIP,itshouldincludeatagtoindicatethecapablityofSMSoverIPasstatedin24.3415.3.2.2
asbelow.

OnsendingaREGISTERrequest,theSMoverIPreceivershallindicateitscapabilitytoreceivetraditionalshort
messagesoverIMSnetworkbyincludinga"+g.3gpp.smsip"parameterintotheContactheaderaccordingtoRFC3840

InRFC3840,5.ComputingCapabilities
inordertoidentifythemasfeatureparameters(asopposedtoparametersforanotherSIPextension),theyare
encodedwithaleading"+"signintheContactheaderfield

Example:
REGISTERsip:test.3gpp.comSIP/2.0
Expires:600000
Authorization:Digest....
CSeq:1REGISTER
MaxForwards:70
Route:<sip:[2001:0:0:2::2]:5060lr>
f:<sip:310410123456789@test.3gpp.com>tag=1148585218
i:229717043
k:pathsecagree
l:0
m:<sip:310410123456789@[2001:0:0:2::1]:5060>+g.3gpp.icsiref="urn%3Aurn7%3A3gpp
service.ims.icsi.mmtel"+g.3gpp.smsip+sip.instance="<urn:gsma:imei:358582050017651>"

t:<sip:310410123456789@test.3gpp.com>
v:SIP/2.0/TCP[2001:0:0:2::1]:5060branch=z9hG4bK1447958797smgtransport=TCP

MOSMSExample1

Direction

Message

UA>NW

Request:MESSAGE<URI>|(RP)RPDATA(MStoNetwork)

UA<NW

200OK

UA<NW

Request:MESSAGE<URI>|(RP)RPACK(NetworktoMS)

UA>NW

202Accepted

http://www.sharetechnote.com/html/IMS_SIP_SMSoverIMS.html

1/5

5/10/2016

UA>NW

202Accepted

ShareTechnote

Request:MESSAGEtel:19037029920phonecontext=TestIMS.com|(RP)RPDATA(MStoNetwork)
MESSAGEtel:19037029920phonecontext=TestIMS.comSIP/2.0
f:"Test"<sip:+11234567890@test.3gpp.com>tag=834037901
t:<tel:19037029920phonecontext=TestIMS.com>
CSeq:834037887MESSAGE
i:834037887_2367153256@2001:0:0:1::1
v:SIP/2.0/UDP[2001:0:0:1::1]:5060branch=z9hG4bK253093091
MaxForwards:70
Route:<sip:[2001:0:0:1::2]:5060lr>
c:application/vnd.3gpp.sms
Allow:MESSAGE
RequestDisposition:nofork
UserAgent:TestUserAgent
l:28

v:SIP/2.0/UDP[2001:0:0:1::1]:5060branch=z9hG4bK253093091
Route:<sip:[2001:0:0:1::2]:5060lr>
c:application/vnd.3gpp.sms
Allow:MESSAGE
RequestDisposition:nofork
UserAgent:TestUserAgent

MessageBody
GSMAI/FRPRPDATA(MStoNetwork)
RPMessageReference
RPMessageReference:0x05(5)
RPOriginationAddress
Length:0
RPDestinationAddress(19037029920)
0.......=TPRP:TPReplyPathparameterisnotsetinthisSMSSUBMIT/DELIVER
.0......=TPUDHI:TheTPUDfieldcontainsonlytheshortmessage
..0.....=TPSRR:Astatusreportisnotrequested
...10...=TPVPF:TPVPfieldpresentrelativeformat(2)
.....0..=TPRD:InstructSCtoacceptduplicates
......01=TPMTI:SMSSUBMIT(1)
TPMR:88
TPDestinationAddress(555)
Length:3addressdigits
1.......:Noextension
.000....:Typeofnumber:(0)Unknown
....0001:Numberingplan:(1)ISDN/telephone(E.164/E.163)
TPDADigits:555
TPPID:0
00......:definesformattingforsubsequentbits
..0.....:notelematicinterworking,butSMEtoSMEprotocol
...00000:theSMALprotocolbeingusedbetweentheSMEandtheMS(0)
TPDCS:0
00......=CodingGroupBits:GeneralDataCodingindication(0)
Specialcase,GSM7bitdefaultalphabet
TPValidityPeriod:24hours0minutes
TPUserDataLength:(12)dependsonDataCodingScheme
TPUserData
SMStext:MOSMSTest

Request:MESSAGEsip:+11234567890@test.3gpp.com|(RP)RPACK(NetworktoMS)
MESSAGEsip:+11234567890@test.3gpp.comSIP/2.0
Via:SIP/2.0/UDP[2001:0:0:1::2]:5060branch=z9hG4bKb6999e582ee8a42f22e8aafe5f68f47brport
Via:SIP/2.0/UDP[2001:0:0:1::2]:60393branch=z9hG4bK00476613
MaxForwards:69
From:<sip:1111@test.3gpp.com>tag=00476613
To:<sip:+11234567890@test.3gpp.com>
http://www.sharetechnote.com/html/IMS_SIP_SMSoverIMS.html

2/5

5/10/2016

ShareTechnote

CallID:20131016151124@[2001:0:0:1::2]:60393
CSeq:1MESSAGE
RequestDisposition:fork,parallel
AcceptContact:*+g.3gpp.smsiprequireexplicit
ContentType:application/vnd.3gpp.sms
InReplyTo:834037887_2367153256@2001:0:0:1::1
PCalledPartyID:<sip:+11234567890@test.3gpp.com>
ContentLength:13
RecordRoute:<sip:[2001:0:0:1::2]lr>

MessageBody
GSMAI/FRPRPACK(NetworktoMS)
RPMessageReference
RPMessageReference:0x05(5)
RPUserData
ElementID:0x41
Length:9
TPDU(notdisplayed)
GSMSMSTPDU(GSM03.40)SMSSUBMITREPORT
.0......=TPUDHI:TheTPUDfieldcontainsonlytheshortmessage
......01=TPMTI:SMSSUBMITREPORT(1)
TPParameterIndicator
0.......:Noextension
.0000...:Reserved
.....0..:TPUDLnotpresent
......0.:TPDCSnotpresent
.......0:TPPIDnotpresent
TPServiceCentreTimeStamp
Year33,Month13,Day03
Hour13,Minutes63,Seconds13
Timezone:GMT+13hours15minutes

MTSMSExample1

Direction

Message

UA<NW

Request:MESSAGE<URI>|(RP)RPDATA(NetworktoMS)

UA>NW

200OK

UA>NW

Request:MESSAGE<URI>|(RP)RPACK(MStoNetwork)

UA<NW

202Accepted

Request:MESSAGEsip:+11234567890@test.3gpp.com|(RP)RPDATA(NetworktoMS)
MESSAGEsip:+11234567890@test.3gpp.comSIP/2.0
Via:SIP/2.0/UDP[2001:0:0:1::2]:5060branch=z9hG4bKad54683f54403f46ff8d8b553521e588rport
Via:SIP/2.0/UDP[2001:0:0:1::2]:60393branch=z9hG4bK0047D4EC
MaxForwards:69
From:<sip:1111@test.3gpp.com>tag=0047D4EC
To:<sip:+11234567890@test.3gpp.com>
CallID:20131016151152@[2001:0:0:1::2]:60393
CSeq:1MESSAGE
RequestDisposition:nofork
AcceptContact:*+g.3gpp.smsiprequireexplicit
ContentType:application/vnd.3gpp.sms
ContentTransferEncoding:binary
PCalledPartyID:<sip:+11234567890@test.3gpp.com>
ContentLength:41
RecordRoute:<sip:[2001:0:0:1::2]lr>

MessageBody
GSMAI/FRPRPDATA(NetworktoMS)
RPMessageReference
RPOriginationAddress(999999)
Length:4
http://www.sharetechnote.com/html/IMS_SIP_SMSoverIMS.html

3/5

5/10/2016

ShareTechnote

1.......=Extension:NoExtension
.000....=Typeofnumber:unknown(0x00)
....0001=Numberingplanidentification:ISDN/TelephonyNumbering(RecITUTE.164)(0x01)
BCDDigits:999999
RPDestinationAddress
RPUserData

GSMSMSTPDU(GSM03.40)SMSDELIVER
0.......=TPRP:TPReplyPathparameterisnotsetinthisSMSSUBMIT/DELIVER
.0......=TPUDHI:TheTPUDfieldcontainsonlytheshortmessage
..0.....=TPSRI:AstatusreportshallnotbereturnedtotheSME
.....1..=TPMMS:NomoremessagesarewaitingfortheMSinthisSC
......00=TPMTI:SMSDELIVER(0)
TPOriginatingAddress(1234567890)
Length:10addressdigits
1.......:Noextension
.000....:Typeofnumber:(0)Unknown
....0001:Numberingplan:(1)ISDN/telephone(E.164/E.163)
TPOADigits:1234567890
TPPID:0
00......:definesformattingforsubsequentbits
..0.....:notelematicinterworking,butSMEtoSMEprotocol
...00000:theSMALprotocolbeingusedbetweentheSMEandtheMS(0)
TPDCS:0
00......=CodingGroupBits:GeneralDataCodingindication(0)
Specialcase,GSM7bitdefaultalphabet
TPServiceCentreTimeStamp
Year13,Month10,Day16
Hour15,Minutes11,Seconds29
Timezone:GMT+5hours0minutes
TPUserData
SMStext:thisisamtsmstestmessage

Request:MESSAGEsip:1111@test.3gpp.comphonecontext=TestIMS.com|(RP)RPACK(MStoNetwork)
MESSAGEsip:1111@test.3gpp.comphonecontext=TestIMS.comSIP/2.0
f:"Test"<sip:+11234567890@test.3gpp.com>tag=834066458
t:<sip:1111@test.3gpp.comphonecontext=TestIMS.com>
CSeq:834066445MESSAGE
i:834066446_2367161720@2001:0:0:1::1
v:SIP/2.0/UDP[2001:0:0:1::1]:5060branch=z9hG4bK502862226
MaxForwards:70
Route:<sip:[2001:0:0:1::2]:5060lr>
c:application/vnd.3gpp.sms
Allow:MESSAGE
RequestDisposition:nofork
UserAgent:TestUserAgent
l:6

MessageBody
GSMAI/FRPRPACK(MStoNetwork)
RPMessageReference
RPMessageReference:0x00(0)
RPUserData
ElementID:0x41
Length:2
TPDU(notdisplayed)
GSMSMSTPDU(GSM03.40)SMSDELIVERREPORT
.0......=TPUDHI:TheTPUDfieldcontainsonlytheshortmessage
.....0..=TPMMS:MoremessagesarewaitingfortheMSinthisSC
......00=TPMTI:SMSDELIVERREPORT(0)
TPParameterIndicator
0.......:Noextension
.0000...:Reserved
.....0..:TPUDLnotpresent
http://www.sharetechnote.com/html/IMS_SIP_SMSoverIMS.html

4/5

5/10/2016

ShareTechnote

......0.:TPDCSnotpresent
.......0:TPPIDnotpresent

http://www.sharetechnote.com/html/IMS_SIP_SMSoverIMS.html

5/5