MSCBSC 移动通信论坛
搜索
登录注册
网络优化工程师招聘专栏 4G/LTE通信工程师最新职位列表 通信实习生/应届生招聘职位

  • 阅读:1515
  • 回复:0
IMS和SIP消息中用户及通知信息
Mr Kang
原始天尊
鎵嬫満鍙风爜宸查獙璇


 发短消息    关注Ta 

C友·铁杆勋章   公益·慈善勋章   C友·贡献勋章   纪念勋章·七周年   财富勋章·万元户   专家·高级勋章   财富勋章·财运连连   财富勋章·小财主   C友·登录达人   财富勋章·富甲一方   纪念勋章·八周年   纪念勋章·九周年   纪念勋章·十周年   纪念勋章·十二周年   C友·技术大神  
积分 104936
帖子 8554
威望 1734871 个
礼品券 11319 个
专家指数 23981
注册 2007-3-13
专业方向 
回答问题数 0
回答被采纳数 0
回答采纳率 0%
 
发表于 2020-09-25 09:06:10  只看楼主 

          IMS和SIP系统中用户信息(SUSCRIBE)相当于无线网络协议中的“测量控制”和“信息请求”;要求其他网元报告状态事件; 

         通知(NOTIFY)与无线网络中的”测量报告“或”信息反馈“相当;它们都是根据用户的请求进行报告的;--具体定义参见” RFC3265 Session Initiation Protocol (SIP)-Specific Event Notification) “;

 

1.用户信息和通知流程

  

2.用户(SUSCRIBE)信息 内容

 

Event

Description

Reference

regRequest for IMS/SIP Registration Status(注册状态检查)RFC 3680
presenceRequest for presence information (commonly used in RCS)RFC 3856
winfoRequest for Watcher information (commonly used in RCS)RFC 3857
xcap-diffRequest for Xcap-Diff information (commonly used in RCS)RFC 3875

 

3. 通知(NOTIFY)内容


        当出现错误代码(如 481, 400, 500)或在CSCF中发生问题时,通过发送通知”NOTIFY“告知具体问题原因;详细内容参见”RFC3265 3.2.4. Subscriber NOTIFY Behavior" ;

 

    Subscription-State

Description

activeIt means the subscription is accepted (in most case, authorized as well)
pending

It means the subscription has been received by the notifier, but there is insufficient policy information to grant or deny the subscription yet

terminatedIt means the subscription is terminated and this can specify as a reason code as follows

deactivated

This mean that the subscription ended (terminated) but the subscriber (UE) SHOULD retry with a new subscription immediately.


probation
This mean that the subscription ended (terminated) but the client SHOULD retry at some time later.

rejected
This mean that the subscription ended (terminated) due to change in authorization policy. The client SHOULD NOT retry.

timeout
This mean that the subscription ended (terminated) because it is not refreshed before it expired. The client MAY retry immediately.

giveup

This mean that the subscription ended (terminated) because the notifier could not obtain authorization in time


noresource

This mean that the subscription ended (terminated) because the resource being monitored is no longer available.

 

 

3.报文举例


     Step 1 : SUBSCRIBE -----------------------------------

         SUBSCRIBE sip:+[email]11234567890@test.3gpp.com[/email] SIP/2.0

         Via: SIP/2.0/UDP 10.133.202.46:50997;branch=z9hG4bK2968d27245f17c7bcae38c31991bfdaa

         Max-Forwards: 70

         Contact: <sip:+[email]11234567890@10.133.202.46[/email]:50997>;+sip.instance="<urn:gsma:imei:00440113-904785-0>"

         To: <sip:+[email]11234567890@test.3gpp.com[/email]>

         From: <sip:+[email]11234567890@test.3gpp.com[/email]>;tag=210a54

         Call-ID: [email]d57a0b04-[email]785ba328-[email]13a4d876@10.133.202.46[/email][/email][/email]

         CSeq: 14534 SUBSCRIBE

         Expires: 600000

         User-Agent: IM-client/OMA1.0 DUT-IMS

         Event: reg

         Accept: application/reginfo+xml

         P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp="0010100010000000"

         P-Preferred-Identity: <sip:+[email]11234567890@test.3gpp.com[/email]>

         Content-Length: 0

 

Step 2 : 200 OK -----------------------------------

         SIP/2.0 200 OK

         Via: SIP/2.0/UDP 10.133.202.46:50997;branch=z9hG4bK2968d27245f17c7bcae38c31991bfdaa

         From: <sip:+[email]11234567890@test.3gpp.com[/email]>;tag=210a54

         To: <sip:+[email]11234567890@test.3gpp.com[/email]>;tag=987654321

         Call-ID: [email]d57a0b04-[email]785ba328-[email]13a4d876@10.133.202.46[/email][/email][/email]

         CSeq: 14534 SUBSCRIBE

         Expires: 600000

         Contact: <sip:10.133.202.47:5060>

         Record-Route: <sip:10.133.202.47;lr>

         Content-Length: 0

 

Step 3 : NOTIFY -----------------------------------

         NOTIFY sip:+[email]11234567890@test.3gpp.com[/email] SIP/2.0

         Via: SIP/2.0/UDP 10.133.202.47:5060;branch=z9hG4bK-d1e4c4961ca9d523ae76b67e088589cd

         Call-ID: [email]d57a0b04-[email]785ba328-[email]13a4d876@10.133.202.46[/email][/email][/email]

         From: <sip:+[email]11234567890@test.3gpp.com[/email]>;tag=987654321

         To: <sip:+[email]11234567890@test.3gpp.com[/email]>;tag=210a54

         Subscription-State: active;expires=600000

         Event: reg

         CSeq: 14534 NOTIFY

         Contact: <sip:10.133.202.47:5060>

         Max-Forwards: 70

         Content-Type: application/reginfo+xml

         Content-Length: 340

     

         <?xml version="1.0" encoding="UTF-8"?>

         <reginfo xmlns="urn:ietf:params:xml:ns:reginfo" version="0" state="full">

         <registration aor="sip:+[email]11234567890@test.3gpp.com[/email]" id="12345" state="active">

         <contact id="100" state="active" event="registered" expires="600000">

         <uri>sip:+[email]11234567890@10.133.202.46[/email]:50997</uri>

         </contact>

         </registration>

         </reginfo>

 

Step 4 : 200 OK -----------------------------------

         SIP/2.0 200 OK

         Via: SIP/2.0/UDP 10.133.202.47:5060;branch=z9hG4bK-d1e4c4961ca9d523ae76b67e088589cd

         Max-Forwards: 70

         Contact: <sip:+[email]11234567890@10.133.202.46[/email]:50997>;+sip.instance="<urn:gsma:imei:00440113-904785-0>"

         To: <sip:+[email]11234567890@test.3gpp.com[/email]>;tag=210a54

         From: <sip:+[email]11234567890@test.3gpp.com[/email]>;tag=987654321

         Call-ID: [email]d57a0b04-[email]785ba328-[email]13a4d876@10.133.202.46[/email][/email][/email]

         CSeq: 14534 NOTIFY

         Allow: NOTIFY,SUBSCRIBE

         Content-Length: 0


原文来自:http://www.sharetechnote.com/

整理:kangguoying20200925

"5G(NR)网络中MIB消息及案例”已在微信公众号"跟着老康学5G"中推出,敬请关注!

扫码关注5G通信官方公众号,免费领取以下5G精品资料
  • 1、回复“YD5GAI”免费领取《中国移动:5G网络AI应用典型场景技术解决方案白皮书
  • 2、回复“5G6G”免费领取《5G_6G毫米波测试技术白皮书-2022_03-21
  • 3、回复“YD6G”免费领取《中国移动:6G至简无线接入网白皮书
  • 4、回复“LTBPS”免费领取《《中国联通5G终端白皮书》
  • 5、回复“ZGDX”免费领取《中国电信5G NTN技术白皮书
  • 6、回复“TXSB”免费领取《通信设备安装工程施工工艺图解
  • 7、回复“YDSL”免费领取《中国移动算力并网白皮书
  • 8、回复“5GX3”免费领取《 R16 23501-g60 5G的系统架构1
  • 对本帖内容的看法? 我要点评

     
    [充值威望,立即自动到帐] [VIP贵宾权限+威望套餐] 另有大量优惠赠送活动,请光临充值中心
    充值拥有大量的威望和最高的下载权限,下载站内资料无忧

    快速回复主题    
    标题
    内容
     上传资料请点左侧【添加附件】

    当前时区 GMT+8, 现在时间是 2025-04-19 07:20:53
    渝ICP备11001752号  Copyright @ 2006-2016 mscbsc.com  本站统一服务邮箱:mscbsc@163.com

    Processed in 0.453716 second(s), 13 queries , Gzip enabled
    TOP
    清除 Cookies - 联系我们 - 移动通信网 - 移动通信论坛 - 通信招聘网 - Archiver