ableofContents 1.Introduction...................... 1.Introducti on...........................................3 .....................3 2.Scope............................. 2.Scope..... .............................................3 .....................3 3.Scenarios......................... 3.Scenarios. .............................................5 .....................5 4.SIPMechanismsRequired........... 4.SIPMechan ismsRequired................................6 .....................6
Camarillo/Roach/Peterson/Ong Camarillo/Roach/Peters on/Ong[Page1 [Page1] ] ISUPtoSIPMapping ISUPtoSIPMapping August200 August2001 1 4.1."Transparent"TransitofISUPmessages.................6 4.1."Transparent"TransitofISUPmess ages.................6 4.2.UnderstandingofMultipartBodies. 4.2.Understand ingofMultipartBodies......................6 .....................6 4.3.TransmissionofDTMFinformation.. 4.3.Transmissi onofDTMFinformation.......................7 .....................7 4.4.ReliableTransmissionofProvision 4.4.ReliableT ransmissionofProvisionalResponses.........7 alResponses.........7 4.5.ProvisionalMediaStreams......... 4.5.Provisiona lMediaStreams..............................7 .....................7 4.6.Mid-CallTransactionsWhichdonot 4.6.Mid-CallT ransactionsWhichdonotChangeSIPState....7 ChangeSIPState....7 5.Mapping........................... 5.Mapping... .............................................7 .....................7 6.SIPtoISUPmapping............... 6.SIPtoISU Pmapping....................................8 .....................8 6.1.CallFlows........................ 6.1.CallFlows .............................................8 .....................8 6.1.1.En-blocCallSetup(nonauto-answe 6.1.1.En-blocCa llSetup(nonauto-answer)...................8 r)...................8 6.1.2.Auto-answercallsetup............ 6.1.2.Auto-answe rcallsetup.................................10 .....................10 6.1.3.ISUPT7expires................... 6.1.3.ISUPT7ex pires........................................10 .....................10 6.1.4.SIPTimeout....................... 6.1.4.SIPTimeou t............................................11 .....................11 6.1.5.ISUPSetupFailure................ 6.1.5.ISUPSetup Failure.....................................12 .....................12 6.1.6.CausepresentinACMmessage...... 6.1.6.Causepres entinACMmessage...........................13 .....................13 6.1.7.CallcancelledbySIPnode........ 6.1.7.Callcance lledbySIPnode.............................14 .....................14 6.2.StateMachine..................... 6.2.StateMach ine..........................................15 .....................15 6.2.1.INVITEreceived................... 6.2.1.INVITErec eived........................................16 .....................16 6.2.1.1INVITEtoIAMprocedures.......... 6.2.1.1INVITEto IAMprocedures...............................17 .....................17 6.2.2.ISUPT7expires................... 6.2.2.ISUPT7ex pires........................................19 .....................19 6.2.3.CANCELorBYEreceived............ 6.2.3.CANCELor BYEreceived.................................19 .....................19 6.2.4.RELreceived...................... 6.2.4.RELreceiv ed...........................................20 .....................20 6.2.4.1ISDNCauseCodetoSIPStatusCode 6.2.4.1ISDNCause CodetoSIPStatusCodemapping.............20 mapping.............20 6.2.5.EarlyACMreceived................ 6.2.5.EarlyACM received.....................................23 .....................23 6.2.6.ACMreceived...................... 6.2.6.ACMreceiv ed...........................................23 .....................23 6.2.7.CONorANMreceived............... 6.2.7.CONorANM received....................................24 .....................24 6.2.8.TimerT9expires.................. 6.2.8.TimerT9e xpires.......................................24 .....................24 6.2.9.CPGreceived...................... 6.2.9.CPGreceiv ed...........................................24 .....................24 6.2.10.ACKreceived...................... 6.2.10.ACKreceiv ed...........................................25 .....................25 7.ISUPtoSIPmapping............... 7.ISUPtoSI Pmapping....................................25 .....................25 7.1.CallFlows........................ 7.1.CallFlows .............................................25 .....................25 7.1.1.En-bloccallsetup(nonauto-answe 7.1.1.En-blocca llsetup(nonauto-answer)...................25 r)...................25 7.1.2.Auto-answercallsetup............ 7.1.2.Auto-answe rcallsetup.................................27 .....................27 7.1.3.SIPTimeout....................... 7.1.3.SIPTimeou t............................................27 .....................27 7.1.4.ISUPT9Expires................... 7.1.4.ISUPT9Ex pires........................................28 .....................28 7.1.5.SIPErrorResponse................ 7.1.5.SIPError Response.....................................30 .....................30 7.1.6.SIPRedirection................... 7.1.6.SIPRedire ction........................................30 .....................30 7.1.7.CallCancelledbyISUP............ 7.1.7.CallCance lledbyISUP.................................32 .....................32 7.2.StateMachine..................... 7.2.StateMach ine..........................................33 .....................33 7.2.1.InitialAddressMessagereceived.. 7.2.1.InitialAd dressMessagereceived.......................34 .....................34 7.2.1.1IAMtoINVITEprocedures.......... 7.2.1.1IAMtoINV ITEprocedures...............................34 .....................34 7.2.2.100received...................... 7.2.2.100receiv ed...........................................36 .....................36 7.2.3.18xreceived...................... 7.2.3.18xreceiv ed...........................................36 .....................36 7.2.4.200received...................... 7.2.4.200receiv ed...........................................37 .....................37 7.2.5.3xxreceived...................... 7.2.5.3xxreceiv ed...........................................38 .....................38 7.2.6.4xx-6xxreceived................ 7.2.6.4xx-6xx received.....................................38 .....................38
7.2.6.1SIPStatusCodetoISDNCauseCodemapping.............38 7.2.6.1SIPStatusCodetoISDNCauseCode mapping.............38 7.2.7.RELreceived...................... 7.2.7.RELreceiv ed...........................................40 .....................40
Camarillo/Roach/Peterson/Ong Camarillo/Roach/Peters on/Ong[Page2 [Page2] ] ISUPtoSIPMapping ISUPtoSIPMapping August200 August2001 1 7.2.8.ISUPT11Expires.......................................40 7.2.8.ISUPT11Expires.................. .....................40 8.Suspend/Resumeandhold........... 8.Suspend/Re sumeandhold................................41 .....................41 8.1.SUSandRES....................... 8.1.SUSandRE S............................................41 .....................41 8.2.Hold(re-INVITE).................. 8.2.Hold(re-I NVITE).......................................41 .....................41 9.NormalReleaseoftheConnection.. 9.NormalRel easeoftheConnection.......................42 .....................42 9.1.SIPinitiated..................... 9.1.SIPinitia ted..........................................42 .....................42 9.2.ISUPInitiated.................... 9.2.ISUPIniti ated.........................................43 .....................43 9.2.1.Callerhangsup................... 9.2.1.Callerhan gsup........................................43 .....................43 9.2.2.Calleehangsup................... 9.2.2.Calleehan gsup........................................43 .....................43 10.ISUPmaintenancemessages......... 10.ISUPmaint enancemessages..............................43 .....................43 10.1.Resetmessages.................... 10.1.Resetmess ages.........................................44 .....................44 10.2.Blockingmessages................. 10.2.Blockingm essages......................................44 .....................44 10.3.Continuitychecks................. 10.3.Continuity checks......................................44 .....................44 11.ConstructionofTelephonyURIs.... 11.Constructi onofTelephonyURIs.........................45 .....................45 12.OtherISUPflavors................ 12.OtherISUP flavors.....................................48 .....................48 12.1.GuidelinestosendotherISUPmess 12.1.Guidelines tosendotherISUPmessages.................49 ages.................49 13.Acronyms.......................... 13.Acronyms.. .............................................50 .....................50 14.Acknowledgments................... 14.Acknowledg ments........................................51 .....................51 15.RevisionHistory.................. 15.RevisionH istory.......................................51 .....................51 16.References........................ 16.References .............................................51 .....................51 17.SecurityConsiderations........... 17.SecurityC onsiderations................................53 .....................53 18.Authors'Addresses................ 18.Authors'A ddresses.....................................53 .....................53 1.Introduction SIP[1]isanapplicationlayerprotocolforestablishing, terminatingandmodifyingmultimediasessio terminatingandmod ifyingmultimediasessions.Itistypically ns.Itistypically carriedoverIP.Telephonecallsareconsid carriedoverIP.Te lephonecallsareconsideredatypeofmultimedia eredatypeofmultimedia sessionswherejustaudioisexchanged. ISUP[2]isalevel4protocolusedinSS7networks.Ittypically ISUP[2]isalevel4protocolusedinSS7 networks.Ittypically runsoverMTPalthoughitcanalsorunover runsoverMTPaltho ughitcanalsorunoverIP[15].ISUPisusedfo IP[15].ISUPisusedfor r controllingtelephonecallsandformainten controllingtelepho necallsandformaintenanceofthenetwork anceofthenetwork (blockingcircuits,resettingcircuitsetc.). Amoduleperformingthemappingbetweenthesetwoprotocolsis Amoduleperformingthemappingbetweenthe setwoprotocolsis usuallyreferredtoasMediaGatewayContro usuallyreferredto asMediaGatewayController(MGC),althoughthe ller(MGC),althoughthe terms'softswitch'or'callagent'arealso terms'softswitch' or'callagent'arealsosometimesused.AnMGC sometimesused.AnMGC haslogicalinterfacesfacingbothnetworks haslogicalinterfa cesfacingbothnetworks,thenetworkcarrying ,thenetworkcarrying ISUPandthenetworkcarryingSIP.TheMGC ISUPandthenetwor kcarryingSIP.TheMGCalsohassomecapabilitie alsohassomecapabilities s forcontrollingthevoicepath;thereisty forcontrollingthe voicepath;thereistypicallyaMediaGateway picallyaMediaGateway (MG)withE1/T1trunkinginterfaces(voice (MG)withE1/T1tru nkinginterfaces(voicefromPSTN)andwithIP fromPSTN)andwithIP interfaces(VoIP).TheMGCandtheMGcanb interfaces(VoIP). TheMGCandtheMGcanbemergedtogetherinone emergedtogetherinone physicalboxorkeptseparate. TheseMGCsarefrequentlyusedtobridgeSIPandISUPnetworksso TheseMGCsarefrequentlyusedtobridgeSI PandISUPnetworksso thatcallsoriginatinginthePSTNcanreac thatcallsoriginat inginthePSTNcanreachIPtelephoneendpoints hIPtelephoneendpoints
Camarillo/Roach/Peterson/Ong Camarillo/Roach/Peters on/Ong[Page3 [Page3] ] ISUPtoSIPMapping ISUPtoSIPMapping August200 August2001 1 andviceversa.ThisisusefulforcasesinwhichPSTNcallsneedto andviceversa.Thisisusefulforcasesin whichPSTNcallsneedto takeadvantageofservicesinIPworld,in takeadvantageofs ervicesinIPworld,inwhichIPnetworksareuse whichIPnetworksareused d astransitnetworksforPSTN-PSTNcalls,ar astransitnetworks forPSTN-PSTNcalls,architecturesinwhichcall chitecturesinwhichcalls s originateondesktop'softphones'buttermi originateondeskto p'softphones'butterminateatPSTNterminals, nateatPSTNterminals, andmanyothersimilarnext-generationtele andmanyothersimi larnext-generationtelephonearchitectures. phonearchitectures. ThisdocumentdescribeslogicandprocedureswhichanMGCmightuse Thisdocumentdescribeslogicandprocedure swhichanMGCmightuse toimplementthemappingbetweenSIPandIS toimplementthema ppingbetweenSIPandISUPbyillustratingthe UPbyillustratingthe correspondences,atthemessagelevelandp correspondences,at themessagelevelandparameterlevel,between arameterlevel,between theprotcols.Italsodescribestheinterp theprotcols.Ita lsodescribestheinterplaybetweenparallelstat laybetweenparallelstate e machinesforthesetwoprotocolsasarecom machinesforthese twoprotocolsasarecommendationforimplementor mendationforimplementors s tosynchronizeprotocoleventsininterwork tosynchronizeprot ocoleventsininterworkingarchitectures. ingarchitectures. 2.Scope ThisdocumentfocusesonthetranslationofISUPmessagesintoSIP Thisdocumentfocusesonthetranslationof ISUPmessagesintoSIP messages,andthemappingofISUPparameter messages,andthem appingofISUPparametersintoSIPheaders.The sintoSIPheaders.The purposeoftranslationinISUP-SIPinterwor purposeoftranslat ioninISUP-SIPinterworkingistwofold:forISUP kingistwofold:forISUP callsthattraverseaSIPnetwork,translat callsthattraverse aSIPnetwork,translationallowsSIPelements ionallowsSIPelements suchasproxyserverstomakeroutingdecis suchasproxyserve rstomakeroutingdecisionsbasedonISUP ionsbasedonISUP criteriasuchasthecalledpartynumber;t criteriasuchasth ecalledpartynumber;translationalsoprovides ranslationalsoprovides criticalinformationaboutthecalltoSIP criticalinformatio naboutthecalltoSIPendpointsthatcannot endpointsthatcannot understandencapsulatedISUP(orperhapswh understandencapsul atedISUP(orperhapswhichmerelycannot ichmerelycannot understandtheparticularISUPvariantinuse). ThisdocumentonlytakesintoaccountthecallfunctionalityofISUP Thisdocumentonlytakesintoaccountthec allfunctionalityofISUP. . MaintenancemessagesdealingwithPSTNtrun Maintenancemessage sdealingwithPSTNtrunksaretreatedonlyasfa ksaretreatedonlyasfar r astheyaffectthecontrolofanongoingca astheyaffectthe controlofanongoingcall;otherwisethese ll;otherwisethese messageneitherhavenorrequireanyanaloginSIP. MessagesindicatingerrororcongestionsituationsinthePSTN Messagesindicatingerrororcongestionsit uationsinthePSTN (MTP-3)andtherecoverymechanismsusedsu (MTP-3)andtherec overymechanismsusedsuchasUserPartAvailable chasUserPartAvailable andUserPartTestISUPmessagesareoutsid andUserPartTest ISUPmessagesareoutsidethescopeofthis ethescopeofthis document ThereareseveralflavorsofISUP.ITU-TQ.767InternationalISUP[2 ThereareseveralflavorsofISUP.ITU-TQ. 767InternationalISUP[2] ] isusedthroughthisdocument;somediffere isusedthroughthi sdocument;somedifferenceswithANSIISUP[3] nceswithANSIISUP[3] andTTCISUPareoutlined.ISUPQ.767[2]i andTTCISUPareou tlined.ISUPQ.767[2]isusedinthisdocument susedinthisdocument becauseitistheleastcomplexofallthe becauseitisthel eastcomplexofalltheISUPflavors.Duetothe ISUPflavors.Duetothe smallnumberoffieldsthatmapdirectlyfr smallnumberoffie ldsthatmapdirectlyfromISUPtoSIP,the omISUPtoSIP,the signalingdifferencesbetweenQ.767andspe signalingdifferenc esbetweenQ.767andspecificnationalvariantso cificnationalvariantsof f ISUPwillgenerallyhavelittletonoimpac ISUPwillgenerally havelittletonoimpactonthemapping.Note, tonthemapping.Note, however,thattheITU-Thasnotsubstantial however,thattheI TU-Thasnotsubstantiallystandarizedpractices lystandarizedpractices forLocalNumberPortabilitysinceportabil forLocalNumberPo rtabilitysinceportabilitytendstobegrounded itytendstobegrounded innationalnumberingplanpractices,andt innationalnumberi ngplanpractices,andthatconsequentlyLNPmust hatconsequentlyLNPmust bedescribedonavirtuallyper-nationbasis. MappingofSIPheaderstoISUPparametersi MappingofSIPhead erstoISUPparametersinthisdocumentfocuses nthisdocumentfocuses
Camarillo/Roach/Peterson/Ong Camarillo/Roach/Peters on/Ong[Page4 [Page4] ] ISUPtoSIPMapping ISUPtoSIPMapping August200 August2001 1 largelyonthemappingbetweentheparametersfoundintheISUP largelyonthemappingbetweentheparamete rsfoundintheISUP InitialAddressMessage(IAM)andtheheade InitialAddressMes sage(IAM)andtheheadersassociatedwiththeSI rsassociatedwiththeSIP P INVITEmessage;bothofthesemessagesare INVITEmessage;bot hofthesemessagesareusedintheirrespective usedintheirrespective protocolstorequesttheestablishmentofa protocolstoreques ttheestablishmentofacall.OnceanINVITEhas call.OnceanINVITEhas beensentforaparticularsession,suchhe beensentforapar ticularsession,suchheadersastheToandFrom adersastheToandFrom fieldbecomeessentiallyfixed,andnofurt fieldbecomeessent iallyfixed,andnofurthertranslationwillbe hertranslationwillbe requiredduringsubsequentsignaling,which requiredduringsub sequentsignaling,whichisroutedinaccordance isroutedinaccordance withViaandRouteheaders.Hence,theprob withViaandRoute headers.Hence,theproblemofparameter-to-heade lemofparameter-to-header r mappinginSIP-Tisconfinedmoreorlesst mappinginSIP-Tis confinedmoreorlesstotheIAMandtheINVITE. otheIAMandtheINVITE. Someadditionaldetailisgiveninthepopu Someadditionaldet ailisgiveninthepopulationofparametersin lationofparametersin theISUPACMandRELmessagesbasedonSIPstatuscodes. ThisdocumentdescribeswhenthemediapathassociatedwithaSIP Thisdocumentdescribeswhenthemediapath associatedwithaSIP callistobeinitialized,terminated,modi callistobeiniti alized,terminated,modified,etc.,butitdoes fied,etc.,butitdoes notgointodetailssuchashowtheinitial notgointodetails suchashowtheinitializationisperformedor izationisperformedor whichprotocolsareusedforthatpurpose. 3.Scenarios ThereareseveralscenarioswhereISUP-SIPmappingtakesplace.The ThereareseveralscenarioswhereISUP-SIP mappingtakesplace.The waythemessagesaregeneratedisdifferent waythemessagesar egeneratedisdifferentdependingonthe dependingonthe scenario. WhenthereisasingleMGCandthecallisfromaSIPphonetoaPST WhenthereisasingleMGCandthecallis fromaSIPphonetoaPSTN N phone,orviceversa,theMGCgeneratesthe phone,orvicevers a,theMGCgeneratestheISUPmessagesbasedon ISUPmessagesbasedon themethodsdescribedinthisdocument. +-------------++-----++-------------+ |PSTNswitch+-------+MGC+-------+SIPUAC/UAS| +-------------++-----++-------------+ ThescenariowhereacalloriginatesinthePSTN,goesintoaSIP Thescenariowhereacalloriginatesinthe PSTN,goesintoaSIP networkandterminatesinthePSTNagainis networkandtermina tesinthePSTNagainisknownas"SIPbridging". knownas"SIPbridging". SIPbridgingshouldprovideISUPtransparen SIPbridgingshould provideISUPtransparencybetweenthePSTN cybetweenthePSTN switcheshandlingthecall.Thisisachieve switcheshandlingt hecall.Thisisachievedbyencapsulatingthe dbyencapsulatingthe incomingISUPmessagesinthebodyoftheS incomingISUPmessa gesinthebodyoftheSIPmessages(see[4]).I IPmessages(see[4]).In n thiscase,theISUPmessagesgeneratedbyt thiscase,theISUP messagesgeneratedbytheegressMGCaretheone heegressMGCaretheones s presentintheSIPbody(possiblywithsome presentintheSIP body(possiblywithsomemodifications;for modifications;for example,ifthecallednumberinthereques example,ifthecal lednumberintherequestURIisdifferentfrom tURIisdifferentfrom theonepresentintheISUPduetoSIPredi theonepresentin theISUPduetoSIPredirection,theISUPmessage rection,theISUPmessage willneedtobeadjusted). +------++-------------++-----++------------++------+ +------++-------------++-----++-----------++------+ |PSTN+---+IngressMGC+---+SIP+---+Eg |PSTN+---+Ingres sMGC+---+SIP+---+EgressMGC+---+PSTN| ressMGC+---+PSTN| +------++-------------++-----++--+------++------------++-----++------------++------+ ---------++------+ SIPisusedinthemiddleofbothMGCsbecausethevoicepathhasto SIPisusedinthemiddleofbothMGCsbeca usethevoicepathhasto beestablishedthroughtheIPnetworkbetwe beestablishedthro ughtheIPnetworkbetweenbothMGs;this enbothMGs;this
Camarillo/Roach/Peterson/Ong Camarillo/Roach/Peters on/Ong[Page5 [Page5] ]
ISUPtoSIPMapping ISUPtoSIPMapping August200 August2001 1 structurealsoallowsthecalltotakeadvantageofcertainSIP structurealsoallowsthecalltotakeadva ntageofcertainSIP services.ISUPmessagesintheSIPbodiesp services.ISUPmess agesintheSIPbodiesprovidefurtherinformatio rovidefurtherinformation n (suchascausevaluesandoptionalparamete (suchascausevalu esandoptionalparameters)tothepeerMGC. rs)tothepeerMGC. Inbothscenarios,theingressMGCplacestheincomingISUPmessages Inbothscenarios,theingressMGCplacest heincomingISUPmessages intheSIPbodybydefault.Notethatthis intheSIPbodyby default.Notethatthishassecurityimplications hassecurityimplications; ; seesection17.Iftherecipientofthesem seesection17.If therecipientofthesemessages(typicallyaSIP essages(typicallyaSIP UAC/UAS)doesnotunderstandthemanegotia UAC/UAS)doesnotu nderstandthemanegotiationusingtheSIP tionusingtheSIP `Accept'and`Require'headerswilltakepl `Accept'and`Requi re'headerswilltakeplaceandtheywillnotbe aceandtheywillnotbe includedinthenextSIPmessageexchange. TherecanbeaSignalingGateway(SG)betweenthePSTNandtheMGC. TherecanbeaSignalingGateway(SG)betwe enthePSTNandtheMGC. ItencapsulatestheISUPmessagesoverIPi Itencapsulatesthe ISUPmessagesoverIPinamannersuchastheon namannersuchastheone e describedin[15].Themappingdescribedin describedin[15]. Themappingdescribedinthisdocumentisnot thisdocumentisnot affectedbytheunderlyingtransportprotocolofISUP. Notethatoverlapdialingmechanisms(useoftheSubsequentAddress Notethatoverlapdialingmechanisms(useo ftheSubsequentAddress Message,SAM)areoutsidethescopeofthis Message,SAM)areo utsidethescopeofthisdocument.Thisdocument document.Thisdocument assumesthatgatewaysfacingISUPnetworks assumesthatgatewa ysfacingISUPnetworksinwhichoverlapdialing inwhichoverlapdialing isusedwillimplementtimerstoinsuretha isusedwillimplem enttimerstoinsurethatalldigitshavebeen talldigitshavebeen collectedbeforeanINVITEistransmittedtoaSIPnetwork. Insomeinstances,gatewaysmayreceiveincompleteISUPmessages Insomeinstances,gatewaysmayreceiveinc ompleteISUPmessages whichindicatemessagesegmentationdueto whichindicatemess agesegmentationduetoexcessivemessagelength. excessivemessagelength. Commonlythesemessageswillbefollowedby Commonlythesemess ageswillbefollowedbyaSegmentationMessage aSegmentationMessage (SGM)containingtheremainderoftheorigi (SGM)containingth eremainderoftheoriginalISUPmessage.An nalISUPmessage.An incompletemessagemaynotcontainsufficie incompletemessage maynotcontainsufficientparameterstoallowfo ntparameterstoallowfor r apropermappingtoSIP;similarly,encapsu apropermappingto SIP;similarly,encapsulating(seebelow)an lating(seebelow)an incompleteISUPmessagemaybeconfusingto incompleteISUPmes sagemaybeconfusingtoterminatinggateways. terminatinggateways. Consequently,agatewaymustwaituntilac Consequently,agat ewaymustwaituntilacompleteISUPmessageis ompleteISUPmessageis received(whichmayinvolvewaitinguntilo received(whichmay involvewaitinguntiloneormoreSGMsarrive) neormoreSGMsarrive) beforesendinganycorrespondingINVITE. 4.SIPmechanismsRequired ForacorrectmappingbetweenISUPandSIP,someSIPmechanismsabov ForacorrectmappingbetweenISUPandSIP, someSIPmechanismsabove e andbeyondthoseavailableinthebaseSIP andbeyondthoseav ailableinthebaseSIPspecificationareneeded. specificationareneeded. Thesemechanismsarediscussedbelow.Ifth Thesemechanismsar ediscussedbelow.IftheSIPUAC/UASinvolvedin eSIPUAC/UASinvolvedin thecalldoesnotsupportthem,itisstill thecalldoesnots upportthem,itisstillpossibletoproceed,but possibletoproceed,but thebehaviorintheestablishmentoftheca thebehaviorinthe establishmentofthecallmaybeslightly llmaybeslightly differentthanthatexpectedbytheuser(e differentthanthat expectedbytheuser(e.g.otherpartyanswers .g.otherpartyanswers beforereceivingtheringbacktone,useris beforereceivingth eringbacktone,userisnotinformedaboutthe notinformedaboutthe callbeingforwarded,etc.). 4.1."Transparent"TransitofISUPmessages Toprovideuserstheabilitytotakeadvantageofthefullrangeof Toprovideuserstheabilitytotakeadvant ageofthefullrangeof servicesaffordedbytheexistingtelephone servicesaffordedb ytheexistingtelephonenetworkwhenplacing networkwhenplacing
Camarillo/Roach/Peterson/Ong Camarillo/Roach/Peters on/Ong[Page6 [Page6] ]
ISUPtoSIPMappingAugust2001 callsfromPSTNtoPSTNacrossaSIPnetwork,SIPmessageswillneed tocarryISUPpayloadsfromgatewaytogateway.Theformatfor carryingthesemessagesisdefinedin"MIMEmediatypesforISUPand QSIGObjects"[4]. SIPclientsandserverswhichdonotunderstandISUParepermittedto ignorethese(andother)optionalMIMEbodies. 4.2.UnderstandingofMultipartBodies InmostPSTNinterworkingsituations,theSIPbodywillberequired tocarrysessioninformation(SDP)inadditiontoISUPand/orbilling information. PSTNinterworkingnodesshouldunderstandtheMIMEtypeof "multipart/mixed"asdefinedinRFC2046[5].Clientsexpresssupport forthisbyincluding"multipart/mixed"inan"Accept"header. 4.3.TransmissionofDTMFinformation Sincethecodecselectedforvoicetransmissionmaynotbeideally suitedforcarryingDTMFinformation,asymbolicmethodof transmittingthisinformationin-bandisdesirable(sinceout-of-band transmissionalonewouldprovidemanychallengesforsynchronization ofthemediastreamfortonere-insertion).Thistransmissionshould beperformedasdescribedin"RTPPayloadforDTMFDigits,Telephony TonesandTelephonySignals"[6],andisinallrespectsorthogonal tothemappingofISUPandSIP. 4.4.ReliableTransmissionofProvisionalResponses Provisionalresponsesareusedinthetransmissionofvariouscall progressinformation.PSTNinterworkinginparticularreliesonthese messagesforcontrolofthemediachannelandtimingofmessages. PSTNinteroperationnodesshouldimplementtheextensiondefinedin "ReliabilityofProvisionalResponsesinSIP"[8]. 4.5.ProvisionalMediaStreams Toallowthetransmissionofmessagesandtonesbeforeafinal connectionhasbeenestablished,SIPnodeswhichinterworkwiththe PSTNneedtobeabletoestablishtemporarymediaconnectionsduring thisperiod. PSTNinteroperatingnodesshouldsupporttheestablishmentof temporaryprovisionalmediastreamsusingthe183statuscode (describedin[9]).
Camarillo/Roach/Peterson/Ong[Page7]
ISUPtoSIPMappingAugust2001 4.6.Mid-CallTransactionsWhichdonotChangeSIPState WheninterworkingwithPSTN,therearesituationswhenPSTNnodes willneedtosendmessageswhichdonotcorrespondtoanySIP operationstoeachotheracrossaSIPnetwork. ThemethodforperformingthistransitwillbeintheINFOmethod, definedin"TheSIPINFOMethod"[10]. NodeswhichdoserveasPSTNinterworkingpointsshouldaccept"405 MethodNotAllowed"and"501NotImplemented"responsestoINFO requestsasnon-fatal. 5.Mapping ThemappingbetweenISUPandSIPisdescribedusingcallflow diagramsandstatemachines.OnestatemachinehandlescallsfromSIP toISUPandthesecondfromISUPtoSIP.Therearedetails,suchas someretransmissionsandsomestates(waitingforRLC,waitingfor ACKetc.),thatarenotshowninthefiguresinordertomakethem easiertofollow. Theboxesrepresentthedifferentstatesofthegateway,andthe arrowsshowchangesinthestate.Theeventthattriggersthechange inthestateandtheactionstotakeappearonthearrow:event/ sectiondescribingtheactionstotake. Forexample,`INVITE/6.2.1'indicatesthatanINVITErequesthas beenreceivedbythegateway,andtheprocedureuponreceptionis describedinthesection6.2.1ofthisdocument. 6.SIPtoISUPmapping 6.1.CallFlows Thefollowingcallflowsillustratetheorderofmessagesintypical successanderrorcaseswhensettingupacallinitiatedfromtheSIP network."100Trying"acknowledgementstoINVITErequestsarenot displayed,sincetheirpresenceisoptional. Inthesediagrams,allcallsignaling(SIP,ISUP)isgoingtoand fromtheMGC;mediahandling(e.g.audiocut-through,trunkfreeing) isbeingperformedbytheMG,underthecontroloftheMGC.Forthe purposeofsimplicity,theseareshownasasinglenode,labeled "MGC/MG."
Camarillo/Roach/Peterson/Ong[Page8] ISUPtoSIPMappingAugust2001 6.1.1.En-blocCallSetup(nonauto-answer) SIPMGC/MGPSTN 1|---------INVITE---------->|| |<----------100------------|| ||------------IAM---------->|2 ||<=========Audio===========| ||<-----------ACM-----------|3 4|<----------18x------------|| |<=========Audio===========|| 5|----------PRACK---------->|| 6|<----------200------------|| ||<-----------CPG-----------|7 8|<----------18x------------|| 9|----------PRACK---------->|| 10|<----------200------------|| ||<-----------ANM-----------|11 ||<=========Audio==========>| 12|<----------200------------|| |<=========Audio==========>|| 13|-----------ACK----------->|| (1)WhenaSIPuserwishestobeginasessionwithaPSTNuser, theSIPnodeissuesanINVITErequest. (2)UponreceiptofanINVITErequest,thegatewaymapsittoan IAMmessageandsendsittotheISUPnetwork. (3)TheremoteISUPnodeindicatesthattheaddressissufficient tosetupacallbysendingbackanACMmessage. (4)The"calledpartystatus"codeintheACMmessageismapped toaSIPprovisionalresponse(asdescribedin6.2.5and6.2.6). andreturnedtotheSIPnode.This responsemaycontainSDPtoestablishanearlymediastream (asshowninthediagram).IfnoSDPispresent,theaudio willbeestablishedinbothdirectionsafterstep12. (5)TheSIPnodesendsaPRACKmessagetoconfirmreceiptofthe provisionalresponse. (6)ThePRACKisconfirmed. (7)IftheISUPvariantpermits, theremoteISUPnodemayissueavarietyofCPGmessagesto indicate,forexample,thatthecallisbeingforwarded.
Camarillo/Roach/Peterson/Ong[Page9]
ISUPtoSIPMappingAugust2001 (8)UponreceiptofaCPGmessage,thegatewaywillmaptheevent codetoaSIPprovisionalresponse(seesection6.2.9.)and sendittotheSIPnode. (9)TheSIPnodesendsaPRACKmessagetoconfirmreceiptofthe provisionalresponse. (10)ThePRACKisconfirmed (11)OncethePSTNuseranswers,anANMmessagewillbesentto thegateway. (12)UponreceiptoftheANM,thegatewaywillsenda200message totheSIPnode. (13)TheSIPnode,uponreceivinganINVITEfinalresponse(200), willsendanACKtoacknowledgereceipt. 6.1.2.Auto-answercallsetup SIPMGC/MGPSTN 1|---------INVITE---------->|| |<----------100------------|| ||------------IAM---------->|2 ||<=========Audio===========| ||<-----------CON-----------|3 ||<=========Audio==========>| 4|<----------200------------|| |<=========Audio==========>|| 5|-----------ACK----------->|| NotethatthisflowisnotsupportedinANSInetworks. (1)WhenaSIPuserwishestobeginasessionwithaPSTNuser, theSIPnodeissuesanINVITErequest. (2)UponreceiptofanINVITErequest,thegatewaymapsittoan IAMmessageandsendsittotheISUPnetwork. (3)Sincetheremotenodeisconfiguredforautomaticanswering, itwillsendaCONmessageuponreceiptoftheIAM.(For ANSI,thismessagewillbeanANM). (4)UponreceiptoftheCON,thegatewaywillsenda200message totheSIPnode. (5)TheSIPnode,uponreceivinganINVITEfinalresponse(200), willsendanACKtoacknowledgereceipt.
Camarillo/Roach/Peterson/Ong[Page10] ISUPtoSIPMappingAugust2001
6.1.3.ISUPT7expires SIPMGC/MGPSTN 1|---------INVITE---------->|| |<----------100------------|| ||------------IAM---------->|2 ||<=========Audio===========| ||***T7Expires***| |**MGReleasesPSTNTrunk**| 4|<----------504------------|------------REL---------->|3 5|-----------ACK----------->|| (1)WhenaSIPuserwishestobeginasessionwithaPSTNuser, theSIPnodeissuesanINVITErequest. (2)UponreceiptofanINVITErequest,thegatewaymapsittoan IAMmessageandsendsittotheISUPnetwork.TheISUPtimer T7isstartedatthispoint. (3)TheISUPtimerT7expiresbeforereceiptofanACMorCON message,soaRELmessageissenttocancelthecall. (4)AgatewaytimeoutmessageissentbacktotheSIPnode. (5)TheSIPnode,uponreceivinganINVITEfinalresponse(504), willsendanACKtoacknowledgereceipt. 6.1.4.SIPTimeout SIPMGC/MGPSTN 1|---------INVITE---------->|| |<----------100------------|| ||------------IAM---------->|2 ||<=========Audio===========| ||<-----------CON-----------|3 ||<=========Audio==========>| 4|<----------200------------|| |***T1Expires***|| |<----------200------------|| |***T1Expires***|| |<----------200------------|| |***T1Expires***|| |<----------200------------|| |***T1Expires***|| |<----------200------------|| |***T1Expires***|| |<----------200------------|| |***T1Expires***||
Camarillo/Roach/Peterson/Ong[Page11] ISUPtoSIPMappingAugust2001
5|<----------200------------|| |***T1Expires***|| |**MGReleasesPSTNTrunk**| 7|<----------BYE------------|------------REL---------->|6 ||<-----------RLC-----------|8 (1)WhenaSIPuserwishestobeginasessionwithaPSTNuser, theSIPnodeissuesanINVITErequest. (2)UponreceiptofanINVITErequest,thegatewaymapsittoan IAMmessageandsendsittotheISUPnetwork. (3)Sincetheremotenodeisconfiguredforautomaticanswering, itwillsendaCONmessageuponreceiptoftheIAM.InANSIflows, ratherthanaCONanANM(withoutACM)wouldbesent. (4)UponreceiptoftheANM,thegatewaywillsenda200message totheSIPnodeandsetSIPtimerT1. (5)TheresponseisretransmittedeverytimetheSIPtimerT1 expires. (6)Aftersevenretransmissions,thecallistorndownbysending aRELtotheISUPnode,withacausecodeof102(recoveron timerexpiry). (7)ABYEistransmittedtotheSIPnodeinanattempttoclose thecall.Furtherhandlingforthiscleanupisnotshown, sincetheSIPnode'sstateisnoteasilyknowninthis scenario. (8)UponreceiptoftheRELmessage,theremoteISUPnodewill replywithanRLCmessage. 6.1.5.ISUPSetupFailure SIPMGC/MGPSTN 1|---------INVITE---------->|| |<----------100------------|| ||------------IAM---------->|2 ||<-----------REL-----------|3 ||------------RLC---------->|4 5|<----------4xx+-----------|| 6|-----------ACK----------->|| (1)WhenaSIPuserwishestobeginasessionwithaPSTNuser, theSIPnodeissuesanINVITErequest.
Camarillo/Roach/Peterson/Ong[Page12] ISUPtoSIPMappingAugust2001 (2)UponreceiptofanINVITErequest,thegatewaymapsittoan
IAMmessageandsendsittotheISUPnetwork. (3)SincetheremoteISUPnodeisunabletocompletethecall,it willsendaREL. (4)Thegatewayreleasesthecircuitandconfirmsthatitis availableforreusebysendinganRLC. (5)ThegatewaytranslatesthecausecodeintheRELtoaSIP errorresponse(seesection6.2.4.)andsendsittotheSIP node. (6)TheSIPnodesendsanACKtoacknowledgereceiptofthe INVITEfinalresponse. 6.1.6.CausepresentinACMmessage SIPMGC/MGPSTN 1|---------INVITE---------->|| |<----------100------------|| ||------------IAM---------->|2 ||<=========Audio===========| ||<---ACMwithcausecode---|3 4|<------183withSDP-------|| |<=========Audio===========|| 5|----------PRACK---------->|| 6|<----------200------------|| **Interworktimerexpires** 7|<----------4xx+-----------|| ||------------REL---------->|8 ||<-----------RLC-----------|9 10|-----------ACK----------->|| (1)WhenaSIPuserwishestobeginasessionwithaPSTNuser, theSIPnodeissuesanINVITErequest. (2)UponreceiptofanINVITErequest,thegatewaymapsittoan IAMmessageandsendsittotheISUPnetwork. (3)SincetheISUPnodeisunabletocompletethecallandwants togeneratetheerrortone/announcementitself,itsendsan ACMwithacausecode.Thegatewaystartsaninterworktimer. (4)UponreceiptofanACMwithcause(presenceoftheCAI parameter), thegatewaywillgenerate a183messagetowardstheSIPnode;thiscontainsSDPto
Camarillo/Roach/Peterson/Ong[Page13] ISUPtoSIPMappingAugust2001 establishearlymediacut-through. (5)TheSIPnodesendsaPRACKmessagetoconfirmreceiptofthe
provisionalresponse. (6)ThePRACKisconfirmed. (7)AfinalINVITEresponse,basedonthecausecodereceivedin theearlierACMmessage,isgeneratedandsenttotheSIP nodetoterminatethecall.Seesection6.2.4.forthetable whichcontainsthemappingfromcausecodetoSIPresponse. (8)Uponexpirationoftheinterworktimer,aRELissenttowards thePSTNnodetoterminatethecall.NotethattheSIPnode canalsoterminatethecallbysendingaCANCELbeforethe interworktimerexpires.Inthiscase,thesignaling progressesasinsection6.1.7. (9)UponreceiptoftheRELmessage,theremoteISUPnodewill replywithanRLCmessage. (10)TheSIPnodesendsanACKtoacknowledgereceiptofthe INVITEfinalresponse. 6.1.7.CallcancelledbySIPnode SIPMGC/MGPSTN 1|---------INVITE---------->|| |<----------100------------|| ||------------IAM---------->|2 ||<=========Audio===========| ||<-----------ACM-----------|3 4|<----------18x------------|| |<=========Audio===========|| 5|----------PRACK---------->|| 6|<----------200------------|| |**MGReleasesIPResources**| 7|----------CANCEL--------->|| 8|<----------200------------|| |**MGReleasesPSTNTrunk**| ||------------REL---------->|9 10|<----------487------------|| ||<-----------RLC-----------|11 12|-----------ACK----------->|| (1)WhenaSIPuserwishestobeginasessionwithaPSTNuser, theSIPnodeissuesanINVITErequest.
Camarillo/Roach/Peterson/Ong[Page14] ISUPtoSIPMappingAugust2001 (2)UponreceiptofanINVITErequest,thegatewaymapsittoan IAMmessageandsendsittotheISUPnetwork. (3)TheremoteISUPnodeindicatesthattheaddressissufficient tosetupacallbysendingbackanACMmessage.
(4)The"calledpartystatus"codeintheACMmessageismapped toaSIPprovisionalresponse(asdescribedin6.2.5and6.2.6) andreturnedtotheSIPnode.This responsemaycontainSDPtoestablishanearlymediastream. (5)TheSIPnodesendsaPRACKmessagetoconfirmreceiptofthe provisionalresponse. (6)ThePRACKisconfirmed. (7)Tocancelthecallbeforeitisanswered,theSIPnodesends aCANCELrequest. (8)TheCANCELrequestisconfirmedwitha200response. (9)UponreceiptoftheCANCELrequest,thegatewaysendsaREL messagetoterminatetheISUPcall. (10)Thegatewaysendsa"487CallCancelled"messagetotheSIP nodetocompletetheINVITEtransaction. (11)UponreceiptoftheRELmessage,theremoteISUPnodewill replywithanRLCmessage. (12)Uponreceiptofthe487,theSIPnodewillconfirmreception withanACK. 6.2.StateMachine NotethatRELcanbereceivedinanystate;thehandlingisthesame foreachcase(seesection6.2.4.).
Camarillo/Roach/Peterson/Ong[Page15] ISUPtoSIPMappingAugust2001 +---------+ +----------------------->|Idle|<---------------------+ |+----+----+| ||| ||INVITE/6.2.1| |V| |T7/6.2.2+-------------------------+REL/6.2.4|
+<----------------+Trying+------------>+ |+-+--------+------+-------+| |CANCEL/6.2.3||||| +<----------------+|E.ACM/|ACM/|CON/| ||6.2.5|6.2.6|6.2.7| |V||| |T9/6.2.8+--------------+||| +<----------+Notalerting|||| |+-------+------+||| |CANCEL/6.2.3||||| |<--------------+|CPG/||| ||6.2.9||| |VV|| |T9/6.2.8+---------------+|REL/6.2.4| +<----------------+Alerting|-|-------------------->| |<----------------+--+-----+------+|| |CANCEL/6.2.3|^||| |CPG/|||ANM/|| |6.2.9+--+|6.2.7|| |VV| |+-------------------------+REL/9.2| ||WaitingforACK|------------>| |+-------------+-----------+| ||| ||ACK/6.2.10| |V| |BYE/9.1+-------------------------+REL/9.2| +<----------------+Connected+------------>+ +-------------------------+ 6.2.1.INVITEreceived WhenanINVITErequestisreceivedbythegateway,a"100Trying" responsemaybesentbacktotheSIPnetworkindicatingthattheMGC ishandlingthecall. Theresourcesforthemediastreamhavetobereservedatthisstage, sinceanIAMmessagecannotbesentbeforetheresourcereservation takesplace.Typicallytheresourcesconsistofatimeslotinan E1/T1andanRTP/UDPportontheIPside.Resourcesmightalso includeQoSor/andsecurityprovisions.BeforesendingtheIAMthe
Camarillo/Roach/Peterson/Ong[Page16] ISUPtoSIPMappingAugust2001 MGgenerallyconnectsthebackwardmediapath. AftersendingtheIAMthetimerT7isstarted.Thedefaultvalueof T7isbetween20and30seconds.TheMGCgoestothe`Trying'state. 6.2.1.1INVITEtoIAMprocedures ThissectiondetailsthemappingoftheSIPheadersinanINVITE
messagetotheISUPparametersinanIAM. FivemandatoryparametersappearwithintheIAMmessage:theCalled PartyNumber(CPN),theNatureofConnectionIndicator(NCI),the ForwardCallIndicators(FCI),theCallingParty'sCategory(CPC), andfinallyaparameterthatindicatesthedesiredbearer characteristicsofthecall-insomeISUPvariantstheTransmission MediumRequirement(TMR)isrequired,inotherstheUserService Information(USI)(orboth). TherearequiteafewoptionalparametersthatcanappearinanIAM message;Q.763[20]lists29inall.However,eachofthese parametersneednottobetranslatedinordertoachievethegoalsof SIP-ISUPmapping.Asisstatedabove,translationallowsSIPnetwork elementstounderstandthePSTNcontextofthesessioniftheyare notcapableofdecipheringanyencapsulatedISUP.Parametersthatare onlymeaningfultothePSTNwillbecarriedthroughPSTN-SIP-PSTN networksviaencapsulation-translationisnotnecessaryforthese parameters.Oftheaforementioned29optionalparameters,onlythe followingareimmediatelyusefulfortranslation:theCallingParty's Number(CIN,whichiscommonlypresent),TransitNetworkSelection (TNS),CarrierIdentificationParameter(CIP,presentinANSI networks),OriginalCalledNumber(OCN),andtheGenericDigits (knowninsomevariantsastheGenericAddressParameter(GAP)). WhenaSIPINVITEarrivesataPSTNgateway,thegatewayshould attempttomakeuseofanyencapsulatedISUP(see[4])toassistin theformulationofoutboundPSTNsignaling.However,threeconditions cancomplicatethisprocess: oThereisnoISUPencapsulatedintheSIPINVITE-theSIPINVITE originatedatadeviceotherthananISUP-SIPgateway. oThereisencapsulatedISUP,butthegatewaycannotunderstand theISUPvariantandthereforetheISUPmustbediscarded. oThereisencapsulatedISUP,butthereismorerecentsession contextinformationavailableintheSIPheaders,andconsequently theSIPheadersmust'overwrite'theencapsulatedISUP. Inallofthesecasestranslationmustbeperformed.Gatewaysshould usedefaultvaluesformandatoryISUPparametersthatarenotderived
Camarillo/Roach/Peterson/Ong[Page17] ISUPtoSIPMappingAugust2001 fromtranslationorencapsulation(suchastheNCIorTMR parameters).TheFCIparametershouldalsohaveadefault,although its'M'bitmaybeoverwrittenduringtheprocessoftranslation. First,theRequest-URIshouldbeinspected. Ifthereisno'npdi=yes'fieldwithintheRequest-URI,thenthemain telephonenumberinthetelURL(thedigitsimmediatelyfollowing 'tel:')shouldbeconvertedtoISUPformat,followingtheprocedure describedinsection11,andusedtopopulatetheCPNparameter.
InANSInetworks,ifthe'npdi=yes'fieldexistsintheRequest-URI, thentheFCIparameterbitfor'numbertranslated'withintheIAM shouldreflectthatanumberportabilitydiphasbeenperformed. Ifinadditiontothe'npdi=yes'fieldthereisno'rn='field present,thenthemaintelephonenumberinthetelURLshouldbe convertedtoISUPformat(seesection11)andusedtopopulatethe CPNparameter. Ifinadditiontothe'npdi=yes'fieldan'rn='fieldispresent, theninANSInetworksthe'rn='fieldshouldbeconvertedtoISUP formatandusedtopopulatetheCPN.Themaintelephonenumberinthe telURLshouldbeconvertedtoISUPformatandusedtopopulatethe GenericDigitsParameter(orGAPinANSI).Insomenetworksthe numbergiveninthe'rn='fieldshouldbeprependedtothemain telephonenumberandthecombinedresultshouldbeusedtopopulate theCPN. IfmaintelephonenumberintheRequest-URIandthatoftheToheader areatvariance,thentheToheadershouldbeusedtopopulateanOCN parameter.OtherwisetheToheadershouldbeignored. Ifthe'cic='parameterispresentintheRequest-URI,thegateway shouldconsultlocalpolicytomakesurethatitisappropriateto transmitthisCarrierIdentificationCodeintheIAM.Ifthegateway supportsmanyindependenttrunks,itmayneedtochooseaparticular trunkthatpointstothecarrieridentifiedbytheCIC,oratandem throughwhichthatcarrierisreachable.Policiesforsuchtrunks (basedonthepreferencesofthecarrierswithwhichthetrunksare associated)maydictatewhethertheCIPorTNSparametershouldbe used(althoughnotethatinnon-ANSInetworkstheCIPwillneverbe used).Intheabsenceofanypre-arrangedpolicies,theTNSshouldbe usedwhentheCPNparameterisinaninternationalformat(i.e.the NoAfieldoftheCPNindicatesthatthisisaninternationalnumber), andtheCIPshouldbeusedinothercases. IfaSIPcallhasarrivedatagateway,thentheRequest-URIwill
Camarillo/Roach/Peterson/Ong[Page18] ISUPtoSIPMappingAugust2001 mostlikelycontainatelURL(oraSIPURIwithatelURLuser portion).However,ifthecalloriginatedatanativeIPendpoint suchasaSIPphone,theFromfieldmaynotreflectanytelephone number-itmaybeasimpleuser@hostconstruction.TheCINparameter shouldbeomittedfromtheoutboundIAMiftheFromfieldis unusable. NotethatwhentheISUPparametersregardinginterworkingaresetin theForwardCallIndicators(FCI)parameteroftheIAM,this indicatesthatISDNisinterworkingwithanetworkwhichisnot capableofprovidingasmanyservicesasISDNdoes.ISUPwill thereforenotemploycertainfeaturesitotherwisenormallyuses. Thus,`interworkingencountered'mustnotbespecifiedsothatISUP
behavesnormally.SIPisconsideredasanSS7networkandaSIPphone isconsideredasISDNaccesssincetheSIPnetworkissupposedto provideatleastasmanyservicesasISUP. ClaimingtobeanISDNnodemightmakethecalleerequestISDNuser touserservices.Sinceusertouserservices1and2mustbe requestedbythecaller,theydonotrepresentaproblem[13].User touserservice3canberequestedbythecalleealso.Innon-SIP bridgingsituations,theMGCshouldbecapableofrejectingthis servicerequest. 6.2.2.ISUPT7expires SincenoresponsewasreceivedfromthePSTNalltheresourcesinthe MGarereleased.A`504gatewaytimeout'issentbacktotheSIP network.ARELmessagewithcausevalue102(protocolerror,recovery ontimerexpiry)issenttothePSTN.ThePSTNrespondswithRLCand theSIPnetworkrespondswithanACKindicatingthattherelease sequencehasbeencompleted. 6.2.3.CANCELorBYEreceived IfaCANCELorBYErequestisreceived,a`200OK'issenttotheSIP networktoconfirmtheCANCELorBYE;a487isalsosenttoterminate theINVITEtransaction.AlltheresourcesarereleasedandaREL messageissenttothePSTNwithcausevalue16(normalclearing).A RLCfromthePSTNisreceivedindicatingthatthereleasesequenceis complete. Itisimportantthatalltheresourcesarereleasedbeforethe gatewaysendsanyRELmessage. InSIPbridgingsituations,aRELmightarriveintheCANCELorBYE requestbody.ThisRELissenttothePSTN.
Camarillo/Roach/Peterson/Ong[Page19] ISUPtoSIPMappingAugust2001 Thissection(6.2.3.)applieseverytimethataCANCELoraBYEis receivedbeforeafinalSIPresponsehasbeensent. 6.2.4.RELreceived ThissectionapplieseverytimethataRELisreceivedbeforeafinal SIPresponsehasbeensent. TheresourcesarereleasedintheMGandaRLCissenttotheISUP networktoindicatethatthecircuitisavailableforreuse. IftheINVITEoriginatingthistransactioncontainedanISUPmessage initsbody(suchasanIAM),theMGCishandlingaSIPbridging situation.Therefore,theRELmessagejustreceivedshouldbe
includedinthebodyoftheresponse. Notethatthereceiptofcertainmaintenancemessagesinresponseto IAMsuchasBLOorRSC(ortheircircuitgroupmessageequivalents) mayalsoresultintheteardownofcallsinthisphaseofthestate machine.Behaviorformaintenancemessagesisgivenbelowinsection 10. 6.2.4.1ISDNCausecodetoSIPStatusCodemapping AnRELmessagecontainsanISDNCauseCode(see[16])intheCause Indicator(CAI)parameter.MostISUPvariants(includingANSIand ETSI)usethesecausecodestorepresentconditionssurroundingthe terminationofacall. InadditiontotheISDNCauseCode,theCAIparameteralsocontainsa cause'location'thatgivessomesenseofwhichentityinthenetwork wasresponsibleforterminatingthecall(themostimportant distinctionbeingbetweentheuserandthenetwork).Inmostcases, thecauselocationdoesnotaffectthemappingtoaSIPstatuscode; someexceptionsarenotedbelow.Adiagnosticfieldmayalsobe presentforsomeISDNcauses;thisdiagnosticwillcontainadditional datapertainingtotheterminationofthecall. TheuseoftheRELmessageintheSS7networkisverygeneral, whereasSIPhasanumberofspecifictoolsthat,collectively,play thesameroleasREL-namelyBYE,CANCEL,andthestatuscodes.An RELcanbesenttoteardownacallthatisalreadyinprogress (BYE),tocancelapreviouslysentcallsetuprequest(IAM)thathas notyetbeencompleted(CANCEL),ortorejectacallsetuprequest (IAM)thathasjustbeenreceived(correspondingtoaSIPstatus code). Ifacausevalueotherthanwhatislistedbelowisreceived,the
Camarillo/Roach/Peterson/Ong[Page20] ISUPtoSIPMappingAugust2001 defaultresponse`500Serverinternalerror'wouldbeused. NotethatitisnotnecessarilyappropriatetomapsomeISDNcause codestoSIPmessagesbecausethesecausecodesareonlymeaningful totheISUPinterfaceofagateway.Agoodexampleofthisiscause code44"Requestcircuitorchannelnotavailable."44signifiesthat theCircuitIdentificationCode(CIC)forwhichanIAMhadbeensent wasbelievedbythereceivingequipmenttobeinastateincompatible withanewcallrequest-however,theappropriatebehaviorinthis caseisfortheoriginatingswitchtore-sendtheIAMforadifferent CIC,notforthecalltobetorndown.Clearly,thereisnot(nor shouldtherebe)anSIPstatuscodeindicatingthatanewCICshould beselected-thismatterisinternaltotheoriginatinggateway. Hencereceiptofcausecode44shouldnotresultinanySIPstatus codebeingsent;effectively,thecausecodeisuntranslatable.
Normalevent ISUPCausevalueSIPresponse ---------------------------1unallocatednumber404NotFound 2noroutetonetwork404Notfound 3noroutetodestination404Notfound 16normalcallclearing---(*) 17userbusy486Busyhere 18nouserresponding408RequestTimeout 19noanswerfromtheuser480Temporarilyunavailable 20subscriberabsent480Temporarilyunavailable 21callrejected403Forbidden(+) 22numberchanged(w/odiagnostic)410Gone 22numberchanged(w/diagnostic)301MovedPermanently 23redirectiontonewdestination302MovedTemporarily 26non-selecteduserclearing404NotFound(=) 27destinationoutoforder502BadGateway 28addressincomplete484Addressincomplete 29facilityrejected501Notimplemented 31normalunspecified480Temporarilyunavailable (*)ISDNCause16willusuallyresultinaBYEorCANCEL (+)Ifthecauselocationis'user'thanthe6xxcodecouldbegiven ratherthanthe4xxcode(i.e.403becomes603) (=)ANSIprocedure-inANSInetworks,26isoverloadedto signify'misroutedportednumber'.Presumably,anumberportability dipshouldhavebeenperformedbyapriornetwork. ARELwithISDNcause22(numberchanged)mightcontaininformation aboutanewnumberwherethecalleemightbereachableinthe
Camarillo/Roach/Peterson/Ong[Page21] ISUPtoSIPMappingAugust2001 diagnosticfield.IftheMGCisabletoparsethisinformationit mightbeaddedtotheSIPresponse(301)inaContactheader. Resourceunavailable Thiskindofcausevalueindicatesanonpermanentsituation.A `Retry-After'headerhastobeaddedtotheresponse. ISUPCausevalueSIPresponse ---------------------------34nocircuitavailable503Serviceunavailable 38networkoutoforder503Serviceunavailable 41temporaryfailure503Serviceunavailable 42switchingequipmentcongestion503Serviceunavailable 47resourceunavailable503Serviceunavailable Serviceoroptionnotavailable
Thiskindofcausevalueindicatesapermanentsituation ISUPCausevalueSIPresponse ---------------------------55incomingcallsbarredwithinCUG403Forbidden 57bearercapabilitynotauthorized403Forbidden 58bearercapabilitynotpresently503Serviceunavailable available Serviceoroptionnotimplemented ISUPCausevalueSIPresponse ---------------------------65bearercapabilitynotimplemented501Notimplemented 79serviceoroptionnotimplemented501Notimplemented Invalidmessage ISUPCausevalueSIPresponse ---------------------------87usernotmemberofCUG503Serviceunavailable 88incompatibledestination503Serviceunavailable 95invalidmessage503Serviceunavailable Protocolerror
Camarillo/Roach/Peterson/Ong[Page22] ISUPtoSIPMappingAugust2001 ISUPCausevalueSIPresponse ---------------------------102recoveryoftimerexpiry408Requesttimeout 111protocolerror500Serverinternalerror Interworking ISUPCausevalueSIPresponse ---------------------------127interworkingunspecified500Serverinternalerror 6.2.5.EarlyACMreceived Thismessageissentincertainsituationsforresettingthetimers. Inthesecasesthismessageindicatesthatthecallisinprogress butcalleeisnotbeingalerted.Thisoccursforexampleinmobile networks,whereroamingcantakealongtime.TheearlyACMissent beforetheuserisalertedtoresetT7andstartT9.
AnACMisconsideredan`earlyACM'iftheCalledParty'sStatus Indicatorissetto00(noindication). AfterreceivinganearlyACMtheprogressofthecallisindicatedby thenetworksendingCPGs. Whenthereisinterworkingwithsomeoldsystems,itispossibleto receiveanANMimmediatelyafteranearlyACM(withoutCPG).Inthis situationtheSIPuserwillnothearanykindofringbacktonebefore thecalleeanswers.InISDN[11]thisissolvedbyconnectingthe voicepathbackwardsbeforesendingtheIAM. TheMGCsendsa183SessionProgress[9]totheSIPnetworkwitha mediadescriptioninside.InSIPbridgingsituationstheearlyACMis includedintheresponsebody.Thus,theproblemofmissingthering backtoneissolvedandtheearlyACMistransportedtransparently throughtheSIPnetwork. 6.2.6.ACMreceived UponreceptionofanACMtimerT9isstarted.T9typicallylasts between90secondsand3minutes[12].Itallowsthecallertohear announcementsfromthenetworkforthatperiodoftimewithoutbeing chargedfortheconnection.Iflongerannouncementshavetobeplayed thenetworkhastosendanANM.WhentheANMissentthecallbegins beingcharged.
Camarillo/Roach/Peterson/Ong[Page23] ISUPtoSIPMappingAugust2001 Thenearestlocalexchangetothecalleegeneratestheringbacktone andmaysendvoiceannouncements. UsuallyonreceiptofanACMa`180Ringing'issenttotheSIP network.Itshouldgenerallycontainasessiondescriptioninorder toallowSIPUAstopreventclippingofinitialcalleemedia.The ringbacktoneortheproperannouncementswillbegeneratedbythe PSTNexchange,andnotbythecallersSIPUAC/UAS. IftheBackwardsCallIndicator(BCI)parameteroftheACMindicates thatinterworkinghasbeenencountered(generallydesignatingthat theISUPnetworksendingtheACMisinterworkingwithaless sophisticatednetworkwhichcannotsupportcausecodes),thenthere maybein-bandannouncementsofcallstatussuchasanaudiblebusy toneorcallerinterceptmessage.Inthiscaseratherthana180 statuscode,a183SessionProgressmessageshouldbesentinorder toallowpre-ANMmediatoflowinthebackwardsdirection. InSIPbridgingsituations,theACMisincludedinthebodyofthe 180response. 6.2.7.CONorANMreceived
A`200OK'responseissenttotheSIPnetwork.InSIPbridging situations,theISUPmessageisincludedinthebodyofthe200OK response.Thisisalsothepointatwhichatwo-waymediastreamwill beestablished. 6.2.8.TimerT9expires ThisindicatesthattheANMhasnotarrivedintimespecified.This resultsinthecallbeingaborted.Alltheresourcesrelatedtothe mediapatharereleased.A`480temporarilyunavailable'issentto theSIPnetwork.ARELmessagewithcausevalue19(noanswerfrom theuser)issenttotheISUPpart.ThePSTNrespondswithRLCand theSIPnetworkrespondswithanACKindicatingthattherelease sequencehasbeencompleted. 6.2.9.CPGreceived ACPGcanindicateprogress,alertingorin-bandinformation.Ifthe CPGcomesafteranACM,thereisalreadyaone-wayvoicepathopen, sothereisnoneedoftakingfurtheractioninthemediapath. InSIPbridgingsituations,theCPGissentinthebodyofa18x response,determinedfromtheCPGeventcode. ISUPeventcodeSIPresponse
Camarillo/Roach/Peterson/Ong[Page24] ISUPtoSIPMappingAugust2001 ---------------------------1Alerting180Ringing 2Progress183Callprogress 3In-bandinformation183Callprogress 4Callforward;linebusy181Callisbeingforwarded 5Callforward;noreply181Callisbeingforwarded 6Callforward;unconditional181Callisbeingforwarded -(noeventcodepresent)183Callprogress Notethat,iftheCPGdoesnotindicate"Alerting,"thecurrentstate willnotchange. 6.2.10.ACKreceived Atthisstage,thecallisconnectedandtheconversationcantake place. 7.ISUPtoSIPmapping 7.1.CallFlows
Thefollowingcallflowsillustratetheorderofmessagesintypical successanderrorcaseswhensettingupacallinitiatedfromthe PSTNnetwork."100Trying"acknowledgementstoINVITErequestsare notexplained,sincetheirpresenceisoptional. Inthesediagrams,allcallsignaling(SIP,ISUP)isgoingtoand fromtheMGC;mediahandling(e.g.audiocut-through,trunkfreeing) isbeingperformedbytheMG,underthecontroloftheMGC.Forthe purposeofsimplicity,theseareshownasasinglenode,labeled "MGC/MG." 7.1.1.En-bloccallsetup(nonauto-answer) SIPMGC/MGPSTN ||<-----------IAM-----------|1 ||==========Audio==========>| 2|<--------INVITE-----------|| |-----------100----------->|| 3|-----------18x----------->|| |==========Audio==========>|| ||=========================>| ||------------ACM---------->|4 5|<---------PRACK-----------|| 6|-----------200----------->|| 7|-----------18x----------->|| ||------------CPG---------->|8 9|<---------PRACK-----------||
Camarillo/Roach/Peterson/Ong[Page25] ISUPtoSIPMappingAugust2001 10|-----------200----------->|| 11|-----------200----------->|| |<=========Audio==========>|| ||------------ANM---------->|12 ||<=========Audio==========>| 13|<----------ACK------------|| (1)WhenaPSTNuserwishestobeginasessionwithaSIPuser, thePSTNnetworkgeneratesanIAMmessagetowardsthe gateway. (2)UponreceiptoftheIAMmessage,thegatewaygeneratesan INVITEmessage,andsendsittoanappropriateSIPnode. (3)Whenaneventsignifyingthatthecallhassufficient addressinginformationoccurs,theSIPnodewillgeneratea provisionalresponseof180orgreater. (4)Uponreceiptofaprovisionalresponseof180orgreater,the gatewaywillgenerateanACMmessage.Iftheresponseisnot 180,theACMwillcarrya"calledpartystatus"valueof"no
indication." (5)ThegatewaysendsaPRACKmessagetoconfirmreceiptofthe provisionalresponse. (6)ThePRACKisconfirmed (7)TheSIPnodemayusefurtherprovisionalmessagestoindicate callprogress. (8)AfteranACMhasbeensent,allprovisionalresponseswill translateintoISUPCPGmessagesasindicatedin7.2.3. (9)ThegatewaysendsaPRACKmessagetoconfirmreceiptofthe provisionalresponse. (10)ThePRACKisconfirmed (11)WhentheSIPnodeanswersthecall,itwillsenda200OK message. (12)Uponreceiptofthe200OKmessage,thegatewaywillsendan ANMmessagetowardstheISUPnode. (13)ThegatewaywillsendanACKtotheSIPnodetoacknowledge receiptoftheINVITEfinalresponse.
Camarillo/Roach/Peterson/Ong[Page26] ISUPtoSIPMappingAugust2001 7.1.2.Auto-answercallsetup SIPMGC/MGPSTN ||<-----------IAM-----------|1 ||==========Audio==========>| 2|<--------INVITE-----------|| 3|-----------200----------->|| |<=========Audio==========>|| ||------------CON---------->|4 ||<=========Audio==========>| 5|<----------ACK------------|| (1)WhenaPSTNuserwishestobeginasessionwithaSIPuser, thePSTNnetworkgeneratesanIAMmessagetowardsthe gateway. (2)UponreceiptoftheIAMmessage,thegatewaygeneratesan INVITEmessage,andsendsittoanappropriateSIPnodebased oncallednumberanalysis. (3)SincetheSIPnodeissetuptoautomaticallyanswerthe call,itwillsenda200OKmessage.
(4)Uponreceiptofthe200OKmessage,thegatewaywillsenda CONmessagetowardstheISUPnode. (5)ThegatewaywillsendanACKtotheSIPnodetoacknowledge receiptoftheINVITEfinalresponse. 7.1.3.SIPTimeout SIPMGC/MGPSTN ||<-----------IAM-----------|1 ||==========Audio==========>| 2|<--------INVITE-----------|| |***T1Expires***|| 3|<--------INVITE-----------|| |***T1Expires***|| |<--------INVITE-----------|| ||***T11Expires***| ||------------ACM---------->|4 |***T1Expires***|| |<--------INVITE-----------|| |***T1Expires***|| |<--------INVITE-----------|| |***T1Expires***|| |<--------INVITE-----------|| |***T1Expires***||
Camarillo/Roach/Peterson/Ong[Page27] ISUPtoSIPMappingAugust2001 |<--------INVITE-----------|| |***T1Expires***|| |**MGReleasesPSTNTrunk**| ||------------REL---------->|5 6|<--------CANCEL-----------|| ||<-----------RLC-----------|7 (1)WhenaPSTNuserwishestobeginasessionwithaSIPuser, thePSTNnetworkgeneratesanIAMmessagetowardsthe gateway. (2)UponreceiptoftheIAMmessage,thegatewaygeneratesan INVITEmessage,andsendsittoanappropriateSIPnodebased oncallednumberanalysis.TheISUPtimerT11andSIPtimer T1aresetatthistime. (3)TheINVITEmessagewillcontinuetobesenttotheSIPnode eachtimethetimerT1expires.TheSIPstandardspecifies thatINVITEtransmissionwillbeperformed7timesifno responseisreceived. (4)WhenT11expires,anACMmessagewillbesenttotheISUP nodetopreventthecallfrombeingtorndownbytheremotenode's ISUPT7.ThisACMcontainsa`CalledPartyStatus'valueof `noindication.'
(5)OncethemaximumnumberofINVITErequestshasbeensent,the gatewaywillsendaREL(causecode18)totheISUPnodeto terminatethe call. (6)ThegatewayalsosendsaCANCELmessagetotheSIPnodeto terminateanyinitiationattempts. (7)UponreceiptoftheREL,theremoteISUPnodewillsendan RLCtoacknowledge. 7.1.4.ISUPT9Expires SIPMGC/MGPSTN ||<-----------IAM-----------|1 ||==========Audio==========>| 2|<--------INVITE-----------|| |***T1Expires***|| 3|<--------INVITE-----------|| |***T1Expires***|| |<--------INVITE-----------|| ||***T11Expires***|
Camarillo/Roach/Peterson/Ong[Page28] ISUPtoSIPMappingAugust2001 ||------------ACM---------->|4 |***T1Expires***|| |<--------INVITE-----------|| |***T1Expires***|| |<--------INVITE-----------|| |***T1Expires***|| |<--------INVITE-----------|| ||***T9Expires***| |**MGReleasesPSTNTrunk**| ||<-----------REL-----------|5 ||------------RLC---------->|6 7|<--------CANCEL-----------|| (1)WhenaPSTNuserwishestobeginasessionwithaSIPuser, thePSTNnetworkgeneratesanIAMmessagetowardsthe gateway. (2)UponreceiptoftheIAMmessage,thegatewaygeneratesan INVITEmessage,andsendsittoanappropriateSIPnodebased oncallednumberanalysis.TheISUPtimerT11andSIPtimer T1aresetatthistime. (3)TheINVITEmessagewillcontinuetobesenttotheSIPnode eachtimethetimerT1expires.TheSIPstandardspecifies thatINVITEtransmissionwillbeperformed7timesifno responseisreceived.SinceSIPT1startsat1/2secondor moreanddoubleseachtimeitisretransmitted,itwillbeat
leastaminutebeforeSIPtimesouttheINVITErequest;since SIPT1isallowedtobelargerthan500msinitially,itis possiblethat7xSIPT1willbelongerthanISUPT11+ISUP T9. (4)WhenT11expires,anACMmessagewillbesenttotheISUP nodetopreventthefrombeingtorndownbytheremotenode's ISUPT7.ThisACMcontainsa`CalledPartyStatus'valueof `noindication.' (5)WhenISUPT9intheremotePSTNnodeexpires,itwillsenda REL. (6)UponreceiptoftheREL,thegatewaywillsendanRLCto acknowledge. (7)TheRELwilltriggeraCANCELrequest,whichgetssenttothe SIPnode.
Camarillo/Roach/Peterson/Ong[Page29] ISUPtoSIPMappingAugust2001 7.1.5.SIPErrorResponse SIPMGC/MGPSTN ||<-----------IAM-----------|1 ||==========Audio==========>| 2|<--------INVITE-----------|| 3|-----------4xx+---------->|| 4|<----------ACK------------|| |**MGReleasesPSTNTrunk**| ||------------REL---------->|5 ||<-----------RLC-----------|6 (1)WhenaPSTNuserwishestobeginasessionwithaSIPuser, thePSTNnetworkgeneratesanIAMmessagetowardsthe gateway. (2)UponreceiptoftheIAMmessage,thegatewaygeneratesan INVITEmessage,andsendsittoanappropriateSIPnodebased oncallednumberanalysis. (3)TheSIPnodeindicatesanerrorconditionbyreplyingwitha responsewithacodeof400orgreater. (4)ThegatewaysendsanACKmessagetoacknowledgereceiptof theINVITEfinalresponse. (5)AnISUPRELmessageisgeneratedfromtheSIPcode,as specifiedinsection7.2.6.
(6)TheremoteISUPnodeconfirmsreceiptoftheRELmessagewith anRLCmessage. 7.1.6.SIPRedirection SIPnode1MGC/MGPSTN ||<-----------IAM-----------|1 ||==========Audio==========>| 2|<--------INVITE-----------|| 3|-----------3xx+---------->|| ||------------CPG---------->|4 5|<----------ACK------------|| || || SIPnode2|| 6|<--------INVITE-----------|| 7|-----------18x----------->|| |<=========Audio===========|| ||------------ACM---------->|8
Camarillo/Roach/Peterson/Ong[Page30] ISUPtoSIPMappingAugust2001 9|<---------PRACK-----------|| 10|-----------200----------->|| 11|-----------200----------->|| |<=========Audio==========>|| ||------------ANM---------->|12 ||<=========Audio==========>| 13|<----------ACK------------|| (1)WhenaPSTNuserwishestobeginasessionwithaSIPuser, thePSTNnetworkgeneratesanIAMmessagetowardsthe gateway. (2)UponreceiptoftheIAMmessage,thegatewaygeneratesan INVITEmessage,andsendsittoanappropriateSIPnodebased oncallednumberanalysis. (3)TheSIPnodeindicatesthattheresourcewhichtheuseris attemptingtocontactisatadifferentlocationbysendinga 3xxmessage. (4)ThegatewaysendsaCPGwitheventindicationthatthecall isbeingforwardeduponreceiptofthe3xxmessage.Notethat thistranslationshouldbeabletobedisabledby configuration,assomeISUPnodesdonotsupportreceiptof CPGmessagesbeforeACMmessages. (5)ThegatewayacknowledgesreceiptoftheINVITEfinalresponse bysendinganACKmessagetotheSIPnode. (6)Thegatewayre-sendstheINVITEmessagetotheaddress indicatedintheContact:fieldofthe3xxmessage.
(7)Whenaneventsignifyingthatthecallhassufficient addressinginformationoccurs,theSIPnodewillgeneratea provisionalresponseof180orgreater. (8)Uponreceiptofaprovisionalresponseof180orgreater,the gatewaywillgenerateanACMmessagewithaneventcodeas indicatedinsection7.2.3. (9)ThegatewaysendsaPRACKmessagetoconfirmreceiptofthe provisionalresponse. (10)ThePRACKisconfirmed (11)WhentheSIPnodeanswersthecall,itwillsenda200OK message.
Camarillo/Roach/Peterson/Ong[Page31] ISUPtoSIPMappingAugust2001 (12)Uponreceiptofthe200OKmessage,thegatewaywillsendan ANMmessagetowardstheISUPnode. (13)ThegatewaywillsendanACKtotheSIPnodetoacknowledge receiptoftheINVITEfinalresponse. 7.1.7.CallCancelledbyISUP SIPMGC/MGPSTN ||<-----------IAM-----------|1 ||==========Audio==========>| 2|<--------INVITE-----------|| 3|-----------18x----------->|| |==========Audio==========>|| ||------------ACM---------->|4 5|<---------PRACK-----------|| 6|-----------200----------->|| |**MGReleasesPSTNTrunk**| ||<-----------REL-----------|7 ||------------RLC---------->|8 9|<---------CANCEL----------|| |**MGReleasesIPResources**| 10|-----------200----------->|| 11|-----------487----------->|| 12|<----------ACK------------|| (1)WhenaPSTNuserwishestobeginasessionwithaSIPuser, thePSTNnetworkgeneratesanIAMmessagetowardsthe gateway. (2)UponreceiptoftheIAMmessage,thegatewaygeneratesan INVITEmessage,andsendsittoanappropriateSIPnodebased oncallednumberanalysis.
(3)Whenaneventsignifyingthatthecallhassufficient addressinginformationoccurs,theSIPnodewillgeneratea provisionalresponseof180orgreater. (4)Uponreceiptofaprovisionalresponseof180orgreater,the gatewaywillgenerateanACMmessagewithaneventcodeas indicatedinsection7.2.3. (5)ThegatewaysendsaPRACKmessagetoconfirmreceiptofthe provisionalresponse. (6)ThePRACKisconfirmed (7)IfthecallingpartyhangsupbeforetheSIPnodeanswersthe
Camarillo/Roach/Peterson/Ong[Page32] ISUPtoSIPMappingAugust2001 call,aRELmessagewillbegenerated. (8)ThegatewayfreesthePSTNcircuitandindicatesthatitis availableforreusebysendinganRLC. (9)UponreceiptofaRELmessagebeforeanINVITEfinal response,thegatewaywillsendaCANCELtowardstheSIP node. (10)UponreceiptoftheCANCEL,theSIPnodewillsenda200 response. (11)TheremoteSIPnodewillsenda"487CallCancelled"to completetheINVITEtransaction. (12)ThegatewaywillsendanACKtotheSIPnodetoacknowledge receiptoftheINVITEfinalresponse. 7.2.StateMachine NotethatRELmayarriveinanystate.Wheneverthisoccurs,the actionsinsection7.2.7.aretaken.Notallofthesetransitionsare showninthisdiagram.
Camarillo/Roach/Peterson/Ong[Page33] ISUPtoSIPMappingAugust2001 +---------+ +----------------------->|Idle|<---------------------+ |+----+----+| ||| ||IAM/7.2.1| |V| |REL/7.2.7+-------------------------+400+/7.2.6| +<----------------+Trying|------------>| |+-+--------+------+-------+| ||||| ||T11/|18x/|200/| ||7.2.8|7.2.3|7.2.4| |V||| |REL/7.2.7+--------------+||400+/7.2.6| |<----------|Progressing|-|------|-------------------->| |+--+----+------+||| |||||| |200/||18x/||| |7.2.4||7.2.3||| ||VV|| |REL/7.2.7|+---------------+|400+/7.2.6| |<-------------|--|Alerting|-|-------------------->| ||+--------+------+|| ||||| |||200/|| |||7.2.4|| |VVV| |BYE/9.1+-----------------------------+REL/9.2| +<------------+Connected+------------>+ +-----------------------------+ 7.2.1.InitialAddressMessagereceived UponthereceptionofanIAM,resourcesarereservedinthemedia gatewayanditconnectsaudiointhebackwardsdirection(towardsthe caller).
7.2.1.1IAMtoINVITEprocedures WhenanIAMarrivesataPSTN-SIPgateway,aSIPINVITEmessagewill becreatedfortransmissiontotheSIPnetwork.Thissectiondetails theprocessbywhichagatewaypopulatestheINVITEbasedon parametersfoundwithintheIAM. ThesessioncontextinformationdiscoveredbythegatewayintheIAM willbestoredprimarilyintwoURIsintheINVITE,onerepresenting theoriginatorofthesessionandtheotherthedestination.The formerwillalwaysappearintheFromheader(afterithasbeen
Camarillo/Roach/Peterson/Ong[Page34] ISUPtoSIPMappingAugust2001 convertedfromISUPformatbytheproceduredescribedinsection11), andthelatterisalmostalwaysusedforboththeToheaderandthe Request-URI. TheconstructionofdestinationURIbeginswithdeterminingwhich ISUPparametercurrentlycontainsthecalledpartynumber.Usually, thiswillbetheCPNparameter.However,ifthedestinationnumber hasbeenported(see[x])andadiptotherelevantLNPdatabasehas alreadybeenperformed,thenthecalledpartynumberwill,insome ISUPvariantsincludeANSI,infactappearintheGenericDigits ParameterorGAP.Generallyinsuchvariantsthe'numbertranslated' bitoftheFCIparametershouldbeconsultedtodeterminewhetherthe calledpartynumberisintheCPNparameterortheGAPparameter.In othervariants,ifaportabilitydiphasbeenperformedtherouting numbermaybefoundedprependedtothecalledpartynumberintheCPN parameter. Oncethelocationofthecalledpartynumberhasbeendetermined,it shouldbetranslatedintoatelURLthroughthemechanismdescribed above.SomeadditionalfieldsmayneedtobeaddedtothetelURL aftertranslationhasbeencompleted,namely: oIf(inANSInetworks)theFCI'numbertranslated'bitindicated thatanLNPdiphadbeenperformed,or(inothervariants)ifa routingnumberhasbeenprependedtotheCPN,thenan'npdi=yes' fieldmustbeappendedtothetelURL.Iftheroutingnumberisnot presentintheCPN,thenifaGenericDigitsParameter(orGAPin ANSI)ispresentintheIAM,thenthecontentsoftheCPNshouldbe translatedfromISUPformat(asdescribedabove)andcopiedintoan 'rn='fieldwhichmustbeappendedtothetelURL.Notethat LocationRoutingNumbers(LRNs)storedinCPNforcallstoported numbersarenecessarilynationalinscope,andconsequentlythey willnotbeprecededbya'+'inthe'rn='field.Forfurther informationonthesetelURLfieldssee[17]. oIfeithertheCIP(inANSInetworks)orTNSispresent,the carrieridentificationcode(CIC)shouldbeextractedfromthe parameterandanalyzedbythegateway.Ifdoingsoisinkeeping withlocalpolicy(i.e.providedthattheCICdoesnotindicate
thenetworkwhichownsthegatewayorsomesimilarcondition),a 'cic='fieldwiththevalueoftheCICshouldbeappendedtothe telURL.NotethattheCICshouldbeprefixedwiththecountrycode usedorimpliedinthecalledpartynumber,sothatCIC'5062' becomes,intheUnitedStates,'+1-5062'.Forfurtherinformation onthe'cic='telURLfieldsee[17]. Inmostcases,theresultingURIshouldbeusedintheTofieldand Request-URIsentbythegateway.However,iftheOCNparameteris
Camarillo/Roach/Peterson/Ong[Page35] ISUPtoSIPMappingAugust2001 presentintheIAM,theTofieldconstructedfromthetranslationof theOCNparameter,andhencetheRequest-URIandTofieldwillbe different. TheconstructionoftheFromfieldisdependentonthepresenceofa CINparameter.IftheCINisnotpresent,thenthegatewayshould createadummyFromheadercontainingaSIPURIwithoutauser portionwhichcommunicatesonlythehostnameofthegateway(e.g. 'sip:gw.level3.net').IftheCINisavailable,thenitshouldbe translated(inaccordancewiththeproceduredescribedabove)intoa telURLwhichshouldpopulatetheFromfield. 7.2.2.100received A100responsedoesnottriggeranyPSTNinterworkingmessages;it onlyservesthepurposeofsuppressingINVITEretransmissions. 7.2.3.18xreceived IfnoACMhasbeensentyetandnoISUPispresentinthe18xmessage body,andISUPmessageisgeneratedaccordingtothefollowingtable. Notethat,ifanearlyACMissent,thecallentersstate "Progressing"insteadofstate"Alerting." ResponsereceivedMessagesentbytheMGC ---------------------------------------180RingingACM 181CallisbeingforwardedEarlyACMandCPG,event=6 182QueuedACM 183SessionprogressmessageACM IfanACMhasalreadybeensentandnoISUPispresentinthe18x messagebody,anISUPmessageisgeneratedaccordingtothefollowing table. ResponsereceivedMessagesentbytheMGC ---------------------------------------180RingingCPG,event=1(Alerting) 181CallisbeingforwardedCPG,event=6(Forwarding) 182QueuedCPG,event=2(Progress)
183SessionprogressmessageCPG,event=2(Progress) Ifthereceptionofa`180Ringing'responsewithoutmedia description,theMGgeneratestheringbacktonetobeheardbythe caller. IftheMGCreceivesany1xxresponse(except100)withasession descriptionpresentformediasetup,itsetsupthesessionbeing
Camarillo/Roach/Peterson/Ong[Page36] ISUPtoSIPMappingAugust2001 described.Thecallprogressmedia(e.g.ringbacktoneor announcement)isgeneratedbyanentitydownstream(intheSIP networkorbyaPSTNexchangeinSIPbridgingsituations). IfanACMhasnotbeensentyet,oneisgeneratedandsent.The mandatoryparametersoftheACMaredescribedbelow: Messagetype:ACM BackwardIndicators Chargeindicator:10charge Calledparty'sstatusindicator:01subscriberfreeor 00noindication(E.ACM) Calledparty'scategoryindicator:01ordinarysubscriber End-to-endmethodindicator:00noend-to-endmethod Interworkingindicator:0nointerworking End-to-endinformationindicator:0noend-to-endinfo ISDNuserpartindicator:1ISUPalltheway Holdingindicator:0noholding ISDNaccessindicator:1ISDNaccess Echocontroldeviceindicator:Itdependsonthecall SCCPmethodindicator:00noindication InSIPbridgingsituationstheMGCsendstheISUPmessagecontained intheresponsebody. Notethatsending183beforeagatewayhasconfirmationthatthe addressiscomplete(ACM)createsknownproblemsinSIPbridging cases,anditshouldthereforebeavoided. 7.2.4.200received ResponsereceivedMessagesentbytheMGC ---------------------------------------200OKANM,ACK Afterreceivinga200OKresponsetheMGCestablishesatwo-wayvoice pathintheMGanditsendsanANMtothePSTNandanACKtotheSIP network. Ifthe`200OK'responsearrivesbeforetheMGChassenttheACM,a CONissentinsteadoftheANM.
InSIPbridgingsituationstheMGCsendstheANMortheCONinthe responsebody.
Camarillo/Roach/Peterson/Ong[Page37] ISUPtoSIPMappingAugust2001 7.2.5.3xxreceived Whenany3xxresponseisreceived,theMGCshouldtrytocontactthe userusingthe`Contact'headerorheaderspresentintheresponse. These3xxresponsesaretypicallysentbyare-directserver.Thisis asimilardevicetotheHLRinmobilenetworks.Itprovidesanother addresswherethecalleemaybereached. ACPGmessagewithaneventcodeof2(Progress)maybesentto indicatethatthecallisproceeding.NotethatsomeISUPnodesmay notsupportCPGbeforeACM,sothisfeatureshouldbeconfigurable. IfthenewlocationpresentedintheContactheaderofa3xxisbest reachable(accordingtothegateway'sroutingpolicies)viathePSTN, theMGCsendsanewIAMandfromthatmomentonactsasanormalPSTN switch(noSIPinvolved).Ifthenewlocationisbestreachableusing SIP,theMGCsendsanINVITEwithpossiblyanewIAMgeneratedbythe MGCinthemessagebody. Allredirectionsituationshavetobetreatedverycarefullybecause theyinvolvedspecialchargingsituations.InPSTNthecaller typicallypaysthefirstcalllegandthecalleepaysthesecond. 7.2.6.4xx-6xxreceived TheMGCreleasestheresourcesintheMG,sendaRELtothePSTNwith acausevalueandsendanACKtotheSIPnetwork.AnRLCarrives indicatingthatthereleasesequenceiscomplete. 7.2.6.1SIPStatusCodetoISDNCauseCodemapping Bydefault,thecauselocationassociatedwiththeCAIparameter shouldbeencodedsuch6xxcodesaregiventhelocation'user', whereas4xxand5xxcodesaregivena'network'location.Exceptions aremarkedbelow. AnySIPstatuscodesnotlistedbelow(associatedwithSIP extensions,versionsofSIPsubsequenttotheissueofthisdocument, orsimplyomitted)shouldbemappingtocausecode31"Normal, unspecified". JustastherearecertainISDNcausecodesthatareISUP-specificand
havenocorollarySIPaction,sothereareSIPstatuscodesthat shouldnotbetranslatedtoISUP.Examplesareflaggedwith(+) below. ResponsereceivedCausevalueintheREL ---------------------------------------
Camarillo/Roach/Peterson/Ong[Page38] ISUPtoSIPMappingAugust2001 401Unauthorized21Callrejected(*) 402Paymentrequired21Callrejected 403Forbidden21Callrejected 404Notfound1Unallocatednumber 405Methodnotallowed63Serviceoroption unavailable 406Notacceptable79Service/optionnot implemented 407Proxyauthenticationrequired21Callrejected(*) 408Requesttimeout102Recoveryontimerexpiry 409Conflict48Temporaryfailure 410Gone22Numberchanged (w/odiagnostic) 411Lengthrequired127Interworking(+) 413RequestEntitytoolong127Interworking(+) 414Request-URItoolong127Interworking(+) 415Unsupportedmediatype79Service/optionnot implemented(+) 420Badextension127Interworking(+) 480Temporarilyunavailable18Nouserresponding 483Toomanyhoops25Exchange-routingerror 484Addressincomplete28InvalidNumberFormat(+) 485Ambiguous1Unallocatednumber 486Busyhere17Userbusy 488NotAcceptablehere---byWarningheader 500Serverinternalerror41Temporaryfailure 501Notimplemented38Networkoutoforder 502Badgateway38Networkoutoforder 503Serviceunavailable41Temporaryfailure 504Servertime-out102Recoveryontimerexpiry 600Busyeverywhere17Userbusy 603Decline21Callrejected 604Doesnotexistanywhere1Unallocatednumber 606Notacceptable---byWarningheader (*)Insomecases,itmaybepossibleforaSIPgatewaytoprovide credentialstotheSIPUASthatisrejectinganINVITEdueto authorizationfailure.Ifthegatewaycanauthenticateitself,then obviouslyitshoulddosoandproceedwiththecall;onlyifthegateway cannotauthorizeitselfshouldcausecode21besent. (+)Ifatallpossible,aSIPgatewayshouldrespondtotheseprotocol errorsbyremedyingunacceptablebehaviorandattemptingtore-originate thesession.OnlyifthisprovesimpossibleshouldtheSIPgatewayfail theISUPhalfofthecall.
WhentheWarningheaderispresentinaSIP606or488message,there maybespecificISDNcausecodemappingsappropriatetotheWarning
Camarillo/Roach/Peterson/Ong[Page39] ISUPtoSIPMappingAugust2001 code.Thisdocumentassumesthatsending'31Normal,unspecified' willbesufficientforallcurrentlyassignedWarningcodes. 7.2.7.RELreceived TheMGCshouldaborttheestablishmentofthesession.ACANCEL requesthastobeissued.ABYEisnotused,sincenofinalresponse hasarrivedfromtheSIPside.A200OKfortheCANCELarrives,anda 487fortheINVITEarrives. TheMGChastostorestateinformationforacertainperiodoftime, sincea200finalresponsefortheINVITEoriginallysentmight arrive(evenafterthereceptionofthe200OKfortheCANCEL).In thissituation,theMGCsendsanACKandthenaBYE. InSIPbridgingsituations,theRELmessagemaybeincludedinthe CANCELmessagebody.CANCELrequestsareansweredwithafinal response(suchas200OK)bythefirstproxy.Therefore,theMGCdoes notknowiftheCANCELhasarrivedtotheenduser(egressMGCin thisscenario).Hence,ifa200OKresponseforthepreviouslysent INVITEarrivestheMGCsendsanACKandthenaBYEwiththeRELin themessagebody. 7.2.8.ISUPT11Expires InordertopreventtheremoteISUPnode'stimerT7fromexpiring, thegatewaymaychoosetokeepitsownsupervisorytimer;ISUP definesthistimerasT11.T11'sdurationiscarefullychosensothat itwillalwaysbeshorterthantheT7ofanynodetowhichthe gatewayiscommunicating. ToclarifytimerT11'srelevancewithrespecttoSIPinterworking, Q.764[14]explainsitsuseas:"Ifinnormaloperation,adelayin thereceiptofanaddresscompletesignalfromthesucceedingnetwork isexpected,thelastcommonchannelsignalingexchangewill originateandsendanaddresscompletemessage15to20seconds [timer(T11)]afterreceivingthelatestaddressmessage."SinceSIP nodeshavenoobligationtorespondtoanINVITErequestwithin20 seconds,SIPinterworkinginarguablyqualifiesassuchasituation. Ifthegateway'sT11expires,itwillsendanearlyACM(i.e.called partystatussetto"noindication")topreventtheexpirationofthe remotenode'sT7.Seesection7.2.3.forthevalueoftheACM parameters. Ifa"180Ringing"messagearrivessubsequently,itwillbesentina
CPG,asshowninsection7.2.3.
Camarillo/Roach/Peterson/Ong[Page40] ISUPtoSIPMappingAugust2001 See7.1.3.foranexamplecallflowthatincludestheexpirationof T11. 8.Suspend/Resumeandhold 8.1.SUSandRES InISDNnetworks,ausercangenerateaSUS(timerT2,user initiated)inordertounplugtheterminalfromthesocketandplug itinanotherone.ARESissentoncetheterminalhasbeen reconnectedandtheT2timerhasnotexpired. WhenaSUSarrivesfromthePSTN,theMGCshouldsendanINVITEto putthemediastreamonhold.ThereceptionofaREStriggersareINVITEthatresumesthemediastream.FortheSIPUAC/UAStheresult isaninterruptioninthevoicepathuntiltheotherpartypicksup thephoneagain.Puttingthemediaonholdinsuresthatbandwidthis conservedwhennoaudiotrafficneedstobetransmitted. Insomeinstancesitmaybeundesirabletoputthemediaforacall onholdwhenaSUSisreceived.Intheseinstancesare-INVITEshould stillbeusedtocarrytheSUSmessage;however,theSDPwithinthe INVITEshouldrepeatthelastSDPgivenratherthansubstitutingthe 'null'SDPusedtoputcallsonhold(i.e.inwhichthec=lineor portinthem=lineindicates'0'). InSIPbridgingsituations,theSUSandRESmessagescanbe transferredinthebodyoftheINVITE. SIPMGC/MGPSTN ||<-----------SUS-----------|1 2|<--------INVITE-----------|| 3|-----------200----------->|| 4|<----------ACK------------|| ||<-----------RES-----------|5 6|<--------INVITE-----------|| 7|-----------200----------->|| 8|<----------ACK------------|| Thehandlingofanetwork-initiatedSUSimmediatelypriortocall teardownishandledinsection9.2.2. 8.2.Hold(re-INVITE) Afteracallhasbeenconnected,are-INVITEmaybesenttoagateway fromtheSIPsideinordertoplacethecallonhold.Thisre-INVITE
willhaveanSDPindicatingthattheoriginatorofthere-INVITEno longerwishestoreceivemedia.
Camarillo/Roach/Peterson/Ong[Page41] ISUPtoSIPMappingAugust2001 SIPMGC/MGPSTN 1|---------INVITE---------->|| ||------------CPG---------->|2 3|-----------200----------->|| 4|<----------ACK------------|| Whensuchare-INVITEisreceived,thegatewayshouldsendaCall ProgressMessage(CPG)inordertoexpressthatthecallhasbeen placedonhold.TheCPGshouldcontainaGenericNotification Indicator(or,inANSInetworks,aNotificationIndicator)witha valueof'remotehold'. Ifsubsequenttothesendingofthere-INVITEtheSIPsidewishesto taketheremoteendoffhold,andtobeginreceivingmediaagain,it mayrepeattheflowabovewithanINVITEthatcontainsanSDPwitha reachablemediadestination.TheGenericNotificationIndicatorwould inthisinstancehaveavalueof'remoteretrieval'(orinsome variants'remoteholdreleased'). Finally,notethataCPGwithholdindicatorsmaybereceivedbya gatewayfromthePSTN.Intheinterestsofconservingbandwidth,the gatewaymaywishtostopsendingmediauntilthecallisresume, and/orsendare-INVITEtotheSIPlegofthecallrequestingthat theremotesidestopsendingmedia. 9.NormalReleaseoftheConnection EithertheSIPsideortheISUPsidemayreleaseacall,regardless ofwhichsideinitiatedthecall. 9.1.SIPinitiated Foranormalreleaseofthecall(receptionofBYE),theMGC immediatelysendsa200response.Itthenreleasestheresourcesin theMGandsendsanRELwithacausecodeof16(normalcall clearing)tothePSTN.ReleaseofresourcesisconfirmedbythePSTN withaRLC. InSIPbridgingsituations,theRELcontainedintheBYEissentto thePSTN. SIPMGC/MGPSTN 1|-----------BYE----------->|| |**MGReleasesIPResources**| 2|<----------200------------|| |**MGReleasesPSTNTrunk**| ||------------REL---------->|3
||<-----------RLC-----------|4
Camarillo/Roach/Peterson/Ong[Page42] ISUPtoSIPMappingAugust2001 9.2.ISUPInitiated Ifthereleaseoftheconnectionwascausedbythereceptionofa REL,theRELisincludedintheBYEsentbytheMGC. 9.2.1.Callerhangsup Foranormalreleaseofthecall(receptionofRELfromthePSTN), theMGCfirstreleasestheresourcesintheMGandthenconfirmsthat theyarereadyforre-usebysendinganRLC.TheSIPconnectionis releasedbysendingaBYE(whichisconfirmedwitha200). SIPMGC/MGPSTN ||<-----------REL-----------|1 |**MGReleasesPSTNTrunk**| ||------------RLC---------->|2 3|<----------BYE------------|| |**MGReleasesIPResources**| 4|-----------200----------->|| 9.2.2.Calleehangsup InanalogPSTN,ifthecalleehangsupinthemiddleofacall,the localexchangesendsaSUSinsteadofaRELandstartsatimer(T6, SUSisnetworkinitiated).Whenthetimerexpires,theRELissent. SIPMGC/MGPSTN ||<-----------SUS-----------|1 2|<--------INVITE-----------|| 3|-----------200----------->|| 4|<----------ACK------------|| ||***T6Expires***| ||<-----------REL-----------|5 |**MGReleasesPSTNTrunk**| ||------------RLC---------->|6 7|<----------BYE------------|| |**MGReleasesIPResources**| 8|-----------200----------->|| 10.ISUPmaintenancemessages ISUPcontainsasetofmessagesusedformaintenancepurposes.They canbereceivedduringanongoingcall.Therearebasicallytwokinds ofmaintenancemessages(apartfromthecontinuitycheck):message forblockingcircuitsandmessagesforresettingcircuits.
Camarillo/Roach/Peterson/Ong[Page43] ISUPtoSIPMappingAugust2001 10.1.Resetmessages Uponreceptionofaresetmessageforthecircuitbeingused,the callhastobereleased.RSCmessagesareansweredwithRLCafter resettingthecircuitintheMG.GRSmessagesareansweredwithGRA afterresettingallthecircuitsaffectedbythemessage. TheMGCactsasifaRELhadbeenreceivedinordertoreleasethe connectionontheSIPside.Thesessionwillbeterminated.ABYEor aCANCELaresentdependingofthestatusofthecall. 10.2.Blockingmessages Therearetwokindsofblockingmessages:maintenanceorientedor hardwarefailureoriented.Maintenanceorientedblockingmessages indicatesthatthecircuithastobeblockedforsubsequentcalls. Therefore,thesemessagesdonotaffectanyongoingcall. Hardwareorientedblockingmessageshavetobetreatedasreset messages.Thecallisreleased. BLOisalwaysmaintenanceorientedanditisansweredbytheMGCwith BLAwhenthecircuitisblocked.CGBmessageshavea"typeindicator" insidethe"circuitgroupsupervisionmessagetypeindicator".It indicatesiftheCGBismaintenanceorhardwarefailureoriented. CGBsareansweredwithCGBAs. 10.3ContinuityChecks Acontinuitycheckisatestperformedonacircuitthatinvolvesthe reflectionofatonegeneratedattheoriginatingswitchbya loopbackatthedestinationswitch.Twovariantsofthecontinuity checkappearinISUP:theimplicitcontinuitycheckrequestwithinan IAM(inwhichcasethecontinuitychecktakesplacebeforecallsetup begins),andtheexplicitcontinuitychecksignaledbyaContinuity CheckRequest(CCR)message. WhenaCCRisreceivedbyaPSTN-SIPgateway,thegatewayshouldnot sendanySIPmessages;thescopeofthecontinuitycheckappliesonly tothePSTNtrunks,nottoanyIPmediapaths. WhenanIAMwiththeContinuityCheckIndicatorflagsetwithinthe NatureofConnectionIndicators(NCI)parameterisreceived,the gatewayshouldprocessthecontinuitycheckbeforesendinganINVITE message;ifthecontinuitycheckfails(aCOTwithContinuity Indicatorof'failed'isreceived),thenanINVITEshouldnotbe
sent.
Camarillo/Roach/Peterson/Ong[Page44] ISUPtoSIPMappingAugust2001 11.ConstructionofTelephonyURIs SIPproxyserversmayrouteSIPmessagesonanysignalingcriteria desiredbynetworkadministrators,butgenerallytheRequest-URIis theforemostroutingcriterion.TheToandFromheadersarealso frequentlyofinterestinmakingroutingdecisions.SIP-ISUPmapping assumesthatproxyserversareinterestedinatleastthesethree fieldsofSIPmessages,allofwhichcontainURIs. SIP-ISUPmappingfrequentlyrequirestherepresentationoftelephone numbersintheseURIs.Insomeinstancesthesenumberswillbe presentedfirstinISUPmessages,andSS7-SIPgatewayswillneedto translatetheISUPformatsofthesenumbersintoSIPURIs.Inother casesthereversetransformationwillberequired. ThemostcommonformatusedinSIPfortherepresentationof telephonenumbersisthetelURL,definedin[18].ThetelURLmay constitutetheentiretyofaURIfieldinaSIPmessage,oritmay appearastheuserportionofaSIPURI.Forexample,aTofield mightappearas: To:tel:+17208881000 Or To:sip:
[email protected] WhetherornotaparticulargatewayorendpointshouldformulateURIs inthetelorSIPformatisamatteroflocaladministrativepolicyifthepresenceofahostportionwouldaidthesurroundingnetwork inroutingcalls,theSIPformatshouldbeused.Agatewayshould accepteithertelorSIPURIsfromitspeers. The'+'signprecedingthenumberintheseexamplesindicatesthat thedigitswhichfollowconstituteafully-qualifiedE.164[19] number;essentially,thismeansthatacountrycodeisprovided beforeanynational-specificareacodes,exchange/citycodes,or addresscodes.Theabsenceofa'+'signcouldmeanthatthenumber isnationallysignificant,orperhapsthataprivatedialingplanis inuse.Whenthe'+'signisnotpresent,butatelephonenumberis representedbytheuserportionoftheURI,theSIPURIshould containtheoptional';user=phone'parameter;e.g. To:sip:
[email protected];user=phone However,itishighlyrecommendedthatonlyinternationally significantE.164numbersbepassedbetweenSIP-Tgateways, especiallywhensuchgatewaysareindifferentregionsordifferent
Camarillo/Roach/Peterson/Ong[Page45] ISUPtoSIPMappingAugust2001 administrativedomains.InmanyifnotmostSIP-Tnetworks,gateways arenotresponsibleforend-to-endroutingofSIPcalls;practically speaking,gatewayshavenowayofknowingifthecallwillterminate inalocalorremoteadministrativedomainand/orregion,andhence gatewaysshouldalwaysassumethatcallsrequireaninternational numberingplan.ThereisnoguaranteethatrecipientsofSIP signalingwillbecapableofunderstandingnationaldialingplans usedbytheoriginatorsofcalls-iftheoriginatinggatewaydoes notinternationalizethesignaling,thecontextinwhichthedigits weredialedcannotbeextrapolatedbyfar-endnetworkelements. InISUPsignaling,atelephonenumberappearsinacommonformatthat isusedinseveralparameters,includingtheCalledParty'sNumber (CPN)andCallingParty'sNumber(CIN);whenitrepresentsacalling partynumberitsportssomeadditionalinformation(detailedbelow). Forthepurposesofthisdocument,wewillrefertothisformatas 'ISUPformat'-iftheadditionalcallingpartyinformationis present,theformatshallbereferredtoas'ISUP-callingformat'. TheformatconsistsofabytecalledtheNatureofAddress(NoA) indicator,followedbyanotherbytewhichcontainstheNumberingPlan Indicator(NPI),bothofwhichareprefixedtoavariable-length seriesofbytesthatcontainsthedigitsofthetelephonenumberin binarycodeddecimal(BCD)format.Inthecallingpartynumbercase, theNPI'sbytealsocontainsbitfieldswhichrepresentthecaller's presentationpreferencesandthestatusofanycallscreeningchecks performedupuntilthispointinthecall. HGFEDCBAHGFEDCBA +-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+ ||NoA|||NoA| +-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+ ||NPI|spare|||NPI|PrI|ScI| +-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+ |dig...|dig1||dig...|dig1| |...||...| |dign|dig...||dign|dig...| +-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+ ISUPformatISUPcallingformat Figure1.ISUPnumberingformats TheNPIfieldisgenerallysettothevalue'ISDN(Telephony) numberingplan(RecommendationE.164)',butthisdoesnotmeanthat thedigitswhichfollownecessarilycontainacountrycode;theNoA fielddictateswhetherthetelephonenumberisinanationalor internationalformat.Whentherepresentednumberisnotdesignated
Camarillo/Roach/Peterson/Ong[Page46] ISUPtoSIPMappingAugust2001 tobeinaninternationalformat,theNoAgenerallyprovides informationspecifictothenationaldialingplan-basedonthis informationonecanusuallydeterminehowtoconvertthenumberin questionintoaninternationalformat.NotethatiftheNPIcontains avalueotherthan'ISDNnumberingplan',thenthetelURLmaynotbe suitableforcarryingtheaddressdigits,andthehandlingforsuch callsisoutsidethescopeofthisdocument. Basedontheabove,conversionfromISUPformattoatelURLisas follows.First,providedthattheNPIfieldindicatesthatthe telephonenumberformatusesE.164,theNoAshouldbeconsulted.If theNoAindicatesthatthenumberisaninternationalnumber,then thetelephonenumberdigitsshouldbeappendedunmodifiedtoa 'tel:+'string.IftheNoAhasthevalue'national(significant) number',thenacountrycodemustbeprefixedtothetelephonenumber digitsbeforetheyarecommittedtoatelURL;ifthegateway performingthisconversioninterconnectswithswitcheshomedto severaldifferentcountrycodes,presumablytheappropriatecountry codeshouldbechosenbasedontheoriginatingswitch.IftheNoAhas thevalue'subscribernumber',bothacountrycodeandanyother numberingcomponentsnecessaryforthenumberingplaninquestion (suchasareacodesorcitycodes)mayneedtobeaddedinorderfor thenumbertobeinternationallysignificant-however,such proceduresvarygreatlyfromcountrytocountry,andhencethey cannotbespecifiedindetailhere.OnlyifacountryornetworkspecificvalueisusedfortheNoAshouldatelURLnotincludea'+' sign;inthesecases,gatewaysshouldsimplycopytheprovideddigits intothetelURLandappenda'user=phone'parameterifaSIPURI formatisused.Anynon-standardorproprietarymechanismsusedto communicatefurthercontextforthecallinISUPareoutsidethe scopethisdocument. Ifanationally-specificparameterispresentthatallowsforthe transmissionofthecallingparty'sname(suchastheGenericName ParameterinANSI),thengenerally,ifpresentationisnot restricted,thisinformationshouldbeusetopopulatethedisplaynameportionoftheFromfield. IfISUPcallingformatisusedratherthanISUPformat,thentwo additionalpiecesofinformationmustbetakenintoaccount: presentationindicatorsandscreeningindicators.Ifthepresentation indicatorsaresetto'presentationrestricted',thenaspecialURI shouldbecreatedbythegatewaywhichcommunicatestothefarend thatthecaller'sidentityhasbeenelided.ThisURIshouldbeaSIP URIwiththehostnameofthegatewaybutwithadisplaynameof 'Anonymous'usernameof'restricted',e.g.:
Camarillo/Roach/Peterson/Ong[Page47]
ISUPtoSIPMappingAugust2001 From:Anonymous
Asfurthergeneral-purposeprivacymechanismsaredevelopedforthe SIPprotocol,theymayalsobeusedtoprotecttheidentityofa caller. Ifpresentationissetto'addressunavailable',thengatewaysshould treattheIAMasiftheCINparameterwasomitted.Screening indicatorsshouldnotbetranslated,astheyareonlymeaningfulendto-end. ConversionfromtelURLstoISUPformatissimpler.IftheURIisin internationalformat,thenthegatewayshouldconsulttheleading countrycodeoftheURI.Ifthecountrycodeislocaltothegateway (thegatewayhasoneormoretrunksthatpointtoswitcheswhichare homedtothecountrycodeinquestion),thegatewayshouldsetthe NoAtoreflect'national(significant)number'andstripthecountry codefromtheURIbeforepopulatingthedigitsfield.Ifthecountry codeisnotlocaltothegateway,thegatewayshouldsettheNoAto 'internationalnumber'andretainthecountrycode.Ineithercase theNPIshouldbesetto'ISDNnumberingplan'. IftheURIisnotininternationalformat,thegatewayshouldattempt totreatthetelephonenumberwithintheURIasifitwere appropriatetoitsnationalornetwork-specificdialingplan;if doingsogivesrisetointernalgatewayerrors,thenthiscondition ismostlikelybesthandledwithappropriateSIPstatuscodes(e.g. 484). WhenconvertingfromatelURLtoISUPcallingformat,theprocedure isidenticaltothatdescribedintheprecedingparagraphs,but additionally,thepresentationindicatorshouldbesetto 'presentationallowed'andthescreeningindicatorto'network provided',unlesssomeserviceproviderpolicyoruserprofile specificallydisallowspresentation. 12.OtherISUPflavors OtherflavorsofISUPdifferentthanQ.767[2]havemoreparameters andmorefeatures.Someoftheparametershavemorepossiblevalues andprovidemoreinformationaboutthestatusofthecall. TheCircuitQueryMessage(CQM)andCircuitQueryResponse(CQR)are usedinmanyISUPvariants.ThesemessageshavenoanaloginSIP, althoughreceiptofaCQRmaycausestatereconciliationifthe originatinganddestinationswitcheshavebecomedesynchronized;as statesarereconciledsomecallsmaybedropped,whichmaycauseSIP orISUPmessagestobesent.
Camarillo/Roach/Peterson/Ong[Page48] ISUPtoSIPMappingAugust2001
However,differencesinthemessageflowsaremoreimportant.InANSI ISUP[3],thereisnoCONmessage;anANMissentinstead(withno ACM).Incallforwardingsituations,CPGscanbesentbeforetheACM issent.SAMsareneverused;`enbloc'signalingisalwaysused.The ANSIExitMessage(EXM)shouldnotresultinanySIPsignalingin gateways.ANSIalsousestheCircuitReservationMessage(CRM)and CircuitReservationAcknowledgment(CRA)aspartofitsinterworking procedures-althoughaSIPgatewayshouldnoteverreceivethese messages,ifitdoesreceivesuchamessagethereisnoappropriate SIPactiontobetaken(therecommendedbehaviorissendingaRELin responsetotheCRM). AlthoughreceiptofaConfusion(CFN)messageisanindicationofa protocolerror,noSIPmessageshouldbesentonreceiptofaCFNtheCFNshouldbehandledinternallybythegateway(usuallyby retransmissionofthepackettowhichtheCFNresponded).Onlyif thisfailsrepeatedlyshouldthiscauseaSIPerrorconditionto arise. InTTCISUPCPGscanbesentbeforetheACMissent.Messagessuchas CHGcanbesentbetweenACMandANM.`Enbloc'signalingisalways usedandthereisnoT9timer. 12.1.GuidelinestosendotherISUPmessages SomeISUPflavorssendmoremessagesthantheonesdescribedinthis document.Itisgoodtofollowsomeguidelinestotransportthese ISUPmessagesinsideSIPbodies. FromthecallertothecalleeISUPmessagesshouldbeencapsulated (see[4])insideINFOmessages,eveniftheINVITEtransactionis stillnotfinished.NotethatSIPdoesnotensurethatINFOrequests aredeliveredinorder.Therefore,anegressgatewaymightprocess firstanINFOrequestthatwassentafteranotherINFOrequest.This issue,however,doesnotrepresentanimportantproblemsinceitis notlikelytohappenanditseffectsarenegligibleinmostofthe situations.TheInformation(INF)messageandInformationResponse (INR)areexamplesofmessagesthatshouldbeencapsulatedwithinan INFO. NotethatifanINRisreceivedbeforecallestablishmentiscomplete (i.e.ANMisreceived)itshouldbeencapsulatedinaanINFO,rather thananyprovisional1xxresponse.SimilarlyanINFisreceivedon theoriginatingside(probablyinreponsetoanINR)beforea200has beenreceivedshouldbecarriedwithinanINFO.Inorderforthis mechanismtofunctionproperlyintheforwarddirection,any necessaryContactorTo-tagmusthaveappearedinaprevious provisionalresponseorthemessagemightnotbecorrectlyroutedto
Camarillo/Roach/Peterson/Ong[Page49] ISUPtoSIPMappingAugust2001 itsdestination.AssuchallSIP-Tgatewaysshouldsendprovisional
responseswithaContactheaderandanynecessarytagsinorderto enableproperroutingofnewrequestsissuedbeforeafinalresponse hasbeenreceived. ISUPmessagesfromthecalleetothecallershouldbesentinside provisionalresponses.SIPensuresthatprovisionalresponses transmittedreliablyaredeliveredinorder.WhentheINVITE transactionisfinishedINFOrequestsshouldbeusedalsointhis direction. 13.Acronyms ACKAcknowledgment ACMAddressCompleteMessage ANMAnswerMessage ANSIAmericanNationalStandardsInstitute BLABlockingACKmessage BLOBlockingMessage CGBCircuitGroupBlockingMessage CGBACircuitGroupBlockingACKMessage CHGChargingInformationMessage CONConnectMessage CPGCallProgressMessage CUGClosedUserGroup GRACircuitGroupResetACKMessage GRSCircuitGroupResetMessage HLRHomeLocationRegister IAMInitialAddressMessage IETFInternetEngineeringTaskForce IPInternetProtocol ISDNIntegratedServicesDigitalNetwork ISUPISDNUserPart ITU-TInternationalTelecommunicationUnion TelecommunicationStandardizationSector MGMediaGateway MGCMediaGatewayController MTPMessageTransferPart RELReleaseMessage RESResumeMessage RLCReleaseCompleteMessage RTPReal-timeTransportProtocol SCCPSignalingConnectionControlPart SGSignalingGateway SIPSessionInitiationProtocol SS7SignalingSystemNo.7 SUSSuspendMessage TTCTelecommunicationTechnologyCommittee
Camarillo/Roach/Peterson/Ong[Page50] ISUPtoSIPMappingAugust2001 UACUserAgentClient UASUserAgentServer UDPUserDatagramProtocol
VoIPVoiceoverIP 14.Acknowledgments TheauthorswouldliketothankOlliHynonen,TomasMecklin,Bill Kavadas,JonathanRosenberg,HenningSchulzrinne,TakuyaSawada, MiguelA.Garcia,IgorSlepchin,DouglasC.Sicker,SamHoffpauir, Jean-FrancoisMule,ChristerHolmberg,DougHurtig,TahirGun,and JanVanGeelfortheirhelpandfeedbackonthisdocument. 15.RevisionHistory Changesfromdraft-ietf-sip-isup-00: -Mergeddraft-jfp-sip-isup-header-00intothisdraft -Removedoverlapsignalingcomponent(now draft-ietf-sip-overlap-00) -Adjustedcausecodetostatuscodemappings Changesfromdraft-ietf-sip-isup-01: -Addedproceduresforplacingcallsonhold -GeneralizedlanguageandproceduresforLNP,removingANSIbias -Fixedusageof'user=phone' -AddedhandlingforSegmentationMessageinISUP -UpdatedSUS/REShandlingtouseINFOconsistently(ratherthan 183) Changesfromdraft-ietf-sip-isup-02: -FixedsomemoreANSI-specificreferences(GNI,screening) -Fixedtimerexpirycausecodevalues(6.2.2) -Removedsomebis04incompatibilities(6.2.10) -Addedmotivationaltexttoabstractandintroduction
Camarillo/Roach/Peterson/Ong[Page51] ISUPtoSIPMappingAugust2001 16.References [1]M.Handley,H.Schulzrinne,E.Schooler,J.Rosenberg,"SIP:
SessionInitiationProtocol",RFC2543,IETF;March1999. [2]"ApplicationoftheISDNuserpartofCCITTsignalingsystem No.7forinternationalISDNinterconnections"ITU-TQ.767 recommendation,February1991. [3]"SignalingSystemNo.7;ISDNUserPart"T1.113-1995ANSI. January1995. [4]EZimmerer,J.Peterson,A.Vemuri,L.Ong,F.Audet,M. Watson,M.Zonoun,"MIMEmediatypesforISUPandQSIG Objects",InternetDraft, IETF;April2001.Workinprogress. [5]N.Freed,N.Borenstein,"MultipurposeInternetMail Extensions(MIME)PartTwo:MediaTypes",RFC2046,IETF; November1996. [6]H.Schulzrinne,S.Petrack,"RTPPayloadforDTMFDigits, TelephonyTonesandTelephonySignals",RFC2833,IETF;May 2000. [8]J.Rosenberg,H.Schulzrinne,"ReliabilityofProvisional ResponsesinSIP",InternetDraft, IETF;March2001.Workinprogress. [9]M.Handley,H.Schulzrinne,E.Schooler,J.Rosenberg,"SIP: SessionInitiationProtocol",InternetDraft ,IETF;August2001.Workin progress. Formerreferenceplaceholderfor183work: S.Donovan,M.Cannon,H.Schulzrinne,J.Rosenberg,A.Roach, "SIP183SessionProgressMessage",InternetDraft,IETF October1999.(expiredI-D) [10]StevenR.Donovan,"TheSIPINFOMethod",RFC2976,IETF; February2000. [11]"SignalingSystemNo.7;ISDNUserPartSignaling procedures",ITU-TQ.764recommendation,September1997. [12]Abnormalconditions-SpecialreleaseITU-TQ.118 recommendation,September1997.
Camarillo/Roach/Peterson/Ong[Page52] ISUPtoSIPMappingAugust2001 [13]"SpecificationsofSignalingSystemNo.7-ISDN supplementaryservices"ITU-TQ.737recommendation,June 1997. [14]"SpecificationsofSignalingSystemNo.7-ISDNUserPart SignalingProcedures"ITU-TQ.764recommendation,March
1993. [15]R.Stewartetal,"StreamControlTransmissionProtocol". RFC2960,IETF;October2000. [16]"UsageofcauselocationintheDigitalSubscriberSignaling SystemNo.1andtheSignalingSystemNo.7ISDNUserPart"ITU-T Q.850Recommendation,May1998 [17]J.Yu,"Extensionstothe'tel'and'fax'URLstoSupportNumber PortabilityandFreephoneService",Internet-Draft ,IETF,Feb2001.(Workinprogress) [18]A.Vaha-Sipila,"URLsforTelephoneCalls",RFC2806,IETF,April 2000. [19]"Theinternationalpublictelecommunicationnumberplan",ITU-T E.164Recommendation,May1997 [20]"FormatsandcodesoftheISDNUserPartofSignalingSystemNo. 7",ITU-TQ.763recommendation,March1993. 17.SecurityConsiderations ThetransitofISUPinSIPbodiesmayprovidemayopportunitiesfor abuseandfraud.Inparticular,SIPusersmaybeabletointerpret "private"(i.e.caller-id-blocked)numbersbyexaminingtheISUP. Similarly,ifcareisnottaken,SIPclientswouldbeabletosend ISUPmessagesintotheSS7networkwithinvalidcallingline identificationandspoofedbillingnumbers. Forthesereasons,itisabsolutelynecessarythatanyISUPsent throughanIPnetworkbestronglyencryptedandauthenticated.The keysusedforencryptionshouldnotbestatic,topreventreplay attacks.Achallenge-responsemodelisrecommended.Asanextralayer ofsecurity,itisrecommendedthatISUPbesentandreceivedonlyto andfromnodesthatareknowntohaveanestablishedtrust relationshipwiththegateway.
Camarillo/Roach/Peterson/Ong[Page53] ISUPtoSIPMappingAugust2001 18.Authors'Addresses GonzaloCamarillo Ericsson AdvancedSignallingResearchLab FIN-02420Jorvas Finland
Phone:+35892993371 Fax:+35892993052 Email:[email protected] AdamRoach EricssonInc. MailstopL-04 851InternationalPkwy. Richardson,TX75081 USA Phone:+1972-583-7594 Fax:+1972-669-0154 E-Mail:[email protected] JonPeterson NeuStar,Inc 1800SutterStreet,Suite570 Concord,CA94520 USA Phone:+19253638700 E-Mail:[email protected] LyndonOng Ciena 10480RidgeviewCourt Cupertino,CA95014 E-Mail:[email protected] FullCopyrightStatement Copyright(c)TheInternetSociety(2001).AllRightsReserved. Thisdocumentandtranslationsofitmaybecopiedandfurnishedto others,andderivativeworksthatcommentonorotherwiseexplainitor assistinitsimplementationmaybeprepared,copied,publishedand distributed,inwholeorinpart,withoutrestrictionofanykind, providedthattheabovecopyrightnoticeandthisparagraphareincluded onallsuchcopiesandderivativeworks.However,thisdocumentitself maynotbemodifiedinanyway,suchasbyremovingthecopyrightnotice orreferencestotheInternetSocietyorotherInternetorganizations, exceptasneededforthepurposeofdevelopingInternetstandardsin
Camarillo/Roach/Peterson/Ong[Page54] ISUPtoSIPMappingAugust2001 whichcasetheproceduresforcopyrightsdefinedintheInternet Standardsprocessmustbefollowed,orasrequiredtotranslateitinto languagesotherthanEnglish. Thelimitedpermissionsgrantedaboveareperpetualandwillnotbe revokedbytheInternetSocietyoritssuccessorsorassigns. Thisdocumentandtheinformationcontainedhereinisprovidedonan"AS IS"basisandTHEINTERNETSOCIETYANDTHEINTERNETENGINEERINGTASK FORCEDISCLAIMSALLWARRANTIES,EXPRESSORIMPLIED,INCLUDINGBUTNOT