SIP在IMS中的应用1内容介绍注册流程呼叫流程基本补充业务流程2注册流程相关概念为什么要注册用户使用IMPU(SIPURI)通信建立用户当前的IP与其IMPU的对应关系掌握用户当前的位置信息及业务能力注册过程的鉴权与认证保证了网络的安全性归属域和拜访域归属域:就是用户的签约数据所在的运营商。拜访域:就是从归属域之外的其他运营商接入,这个其他运营商统称为拜访域。IMS网络中,用户无论在归属域还是拜访域,其注册流程是相同的3注册不是目的,仅完成安全性和服务呼叫两项工作。归属和拜访网络中的初次注册请求归属网络⑷⑹401S-CSCFHSS⑶S-CSCFassignment⑴Register⑵Register⑺401⑻401P-CSCFI-CSCF归属网络⑷⑹200OKS-CSCFHSS⑶S-CSCFassignment⑴Register⑵Register⑺200OK⑻200OKP-CSCFI-CSCF拜访网络4初始注册流程UEP-CSCFI-CSCFHSSS-CSCFVisitedNetworkHomeNetwork1.REGISTER2.REGISTER3a.UAR4.UAA5.REGISTER17.200OK16.SAA6a.MAR18.200OK19.200OKSLF3b重定向3c.UAR8.4019.40110.40111.REGISTER12.REGISTER15.REGISTER6b.重定向15.SARMMTEL21.REGISTER20.200OK6c.MAR7.MAA13a.UAR14.UAA13b重定向13c.UAR56PCSCF接收到UE的注册消息(1)REGISTERsip:registrar.zte.comSIP/2.0Via:SIP/2.0/UDP154.24.77.32:10009;branch=z9hG4bK96ed347b4f61685db5Call-ID:96ed347b4f61685db5e6ec273e7e0400From:sip:Impu-FIX-46001475731-0087@net.zte.com;tag=96ed347b4f61685db5To:sip:Impu-FIX-46001475731-0087@net.zte.com//需要注册的IMPU(PUI)CSeq:18081REGISTERMax-Forwards:70Contact:sip:154.24.77.32:10009;transport=udp;expires=3600//注册有效期Authorization:Digestusername=Impi-46001475731-0087@net.zte.com,realm=registrar.zte.com,uri=sip:registrar.zte.com,algorithm=MD5Supported:pathContent-Length:0S-CSCFI-CSCFP-CSCFHSS1.RegisterPVI信息P-CSCF发出的注册消息(2)REGISTERsip:registrar.zte.comSIP/2.0Via:SIP/2.0/UDP154.24.10.102:5060;branch=z9hG4bKc67a9n9db7,//P-CSCF的地址SIP/2.0/UDP154.24.77.33:14657;branch=z9hG4bK44618dd96cCall-ID:96ed347b4f61685db5e6ec273e7e0400From:sip:Impu-FIX-46001475731-0087@net.zte.com;tag=96ed347b4f61685db5e6ec273e7e0400To:sip:Impu-FIX-46001475731-0087@net.zte.comCSeq:18081REGISTERMax-Forwards:69Supported:pathContact:sip:154.24.77.32:10009;transport=udp;expires=3600Path:sip:term@pcscf.net5231.zte.com;lr;ssn;Dpt=75e2_86//P-CSCF的主机名P-Visited-Network-ID:“pcscf.net5231.zte.com“//拜访网络标识P-Charging-Vector:icid-value=“78f32f819e10cf148de3d7af70c5142e.3483116445.4.11“//产生的计费标识Authorization:Digestusername=Impi-FIX-46001475731-0087@net.zte.com,realm=registrar.zte.com,uri=sip:registrar.zte.com,algorithm=MD5P-Access-Network-Info:IEEE-802.11;location-info=154.24.77.32Require:pathS-CSCFI-CSCFP-CSCFHSS2.Register3.Register1.Register7I-CSCF发出的注册消息(3)REGISTERsip:scscf.net5231.zte.com;transport=udp;RegState=2SIP/2.0//S-CSCF的地址Via:SIP/2.0/UDP154.24.10.103:5060;branch=z9hG4bKl68tbsdi7clw,//I-CSCF的地址SIP/2.0/UDP154.24.10.102:5060;branch=z9hG4bKc67a9n9db7vc,SIP/2.0/UDP154.24.77.33:14657;branch=z9hG4bK44618dd96c57Call-ID:96ed347b4f61685db5e6ec273e7e0400From:sip:Impu-FIX-46001475731-0087@net.zte.com;tag=96ed347b4f6168To:sip:Impu-FIX-46001475731-0087@net.zte.comCSeq:18081REGISTERAuthorization:Digestusername=Impi-FIX-46001475731-0087@net.zte.com,realm=registrar.zte.com,uri=sip:registrar.zte.com,algorithm=MD5Contact:sip:154.24.77.32:10009;transport=udp;expires=3600Max-Forwards:68Require:pathSupported:pathUser-Agent:Fixed-SipPath:sip:term@pcscf.net5231.zte.com;lr;ssn;Dpt=75e2_86P-Visited-Network-ID:pcscf.net5231.zte.comP-Access-Network-Info:IEEE-802.11;location-info=154.24.77.32P-Charging-Vector:icid-value=78f32f819e10cf148de3d7af70c5142e.3484458669.1.11S-CSCFI-CSCFP-CSCFHSSUE3.Register1.Register2.Register8S-CSCF发出的401鉴权挑战消息(4)SIP/2.0401UnauthorizedVia:SIP/2.0/UDP154.24.10.103:5060;branch=z9hG4bK7n8v9anvl8n7nwsv4ll4c689v;Role=1;Dpt=75e6_16,SIP/2.0/UDP154.24.10.102:5060;branch=z9hG4bK7dbisi7cdvbwvdb8cab7wt899;Role=1;Dpt=75e2_16,SIP/2.0/UDP154.24.77.32:10009;branch=z9hG4bK96ed347b4f61685db5e6ec273e7e0400;rport=10009Call-ID:96ed347b4f61685db5e6ec273e7e0400From:sip:Impu-FIX-46001475731-0087@net.zte.com;tag=96ed347b4f61685db5e6ec273e7e0400To:sip:Impu-FIX-46001475731-0087@net.zte.com;tag=7dw46ds6CSeq:18081REGISTER=net.zte.com,nonce=+CPa2HIGD0dAPSh6AEpeug==,algorithm=MD5,qop=auth“//鉴权相关信息Content-Length:0S-CSCFI-CSCFP-CSCFHSS1.Register2.Register4.4013.RegisterS-CSCF发出的200OK消息SIP/2.0200OKVia:SIP/2.0/UDP154.24.10.103:5060;branch=z9hG4bKi49lidtt9wdcbs6sbil8adcd4;Role=1;Dpt=75e6_16,SIP/2.0/UDP154.24.10.102:5060;branch=z9hG4bKdcw6a4889wba8dl4d964dcww8;Role=1;Dpt=75e2_16,SIP/2.0/UDP154.24.77.33:14657;branch=z9hG4bKe2b45e4668f2e659fb34d1f498a0cecb;rport=14657Call-ID:96ed347b4f61685db5e6ec273e7e0400From:sip:Impu-FIX-46001475731-0087@net.zte.com;tag=b8486c648d3b808a7d6ba735dcb4a1e9To:sip:Impu-FIX-46001475731-0087@net.zte.com;tag=9d9ws6wcCSeq:18082REGISTERService-Route:sip:orig@scscf.net5231.zte.com;lr//S-CSCF地址P-Associated-URI:sip:+86755460014757310087@zte.com;,//隐式注册集tel:+86755460014757310087Contact:sip:154.24.77.33:14657;transport=udp;q=1;expires=7200//用户注册的联系地址Path:sip:term@pcscf.net5231.zte.com;lr;ssn;Dpt=75e2_86Authentication-Info:nextnonce=“N7WoYnSgNP17M81tU2ZmrA==“//下一次鉴权的nonce值Content-Length:0要点:•Service-Route:SCSCF的地址,用于呼叫时主叫PCSCF寻找SCSCF使用•P-Associated-URI:携带隐式注册集列表,表示此次注册上的用户列表•Authentication-Info:nextnonce机制打开时,携带下一次鉴权的随机值nonce•Contact:用户注册上的联系地址列表10P-CSCF发出的200OK消息SIP/2.0200OKVia:SIP/2.0/UDP154.24.7