zoukankan      html  css  js  c++  java
  • sip 注册流程

    基本注册流程示意图:

    注册流程描述如下:

    1、         SIP代理向SIP服务器发送REGISTER请求;

    2、         SIP服务器向SIP代理发送响应401,并在响应的消息头WWW-Authenticate字段中给出适合SIP代理的认证体制和参数;

    3、         SIP代理重新向SIP服务器发送REGISTER请求,在请求的Authorization字段给出信任书,包含认证信息;

    4、         SIP服务器对请求进行验证,如果检查出SIP代理身份合法,向SIP代理发送成功响应200 OK,如果身份不合法则发送拒绝服务应答。

    注册信令消息示范:

    Register sip:SIP服务器编码@目的域名或者IP地址端口  SIP/2.0

    Via:SIP/2.0/UDP 源域名或者IP地址端口

    From:<sip:SIP设备编码@源域名>;tag=185328220

    To: <sip:SIP设备编码@源域名>

    Call-ID:ms1214-322164-681262131542511620107-0@172.18.16.3

    CSeq:1 Register

    Contact: <sip:SIP设备编码@源IP地址端口>

    Max-Forwords:70

    Expires: 7200

    Content-Length: 0

    SIP/2.0 401 Unauthorized

    To: sip:SIP设备编码@源域名

    Content-Length: 0

    CSeq:1 Register

    Call-ID:ms1214-322164-681262131542511620107-0@172.18.16.3

    From:<sip:SIP设备编码@源域名>;tag=185328220

    Via:SIP/2.0/UDP 源域名或者IP地址端口

    WWW-Authenticate: Digest realm=”64010000”,nonce=”6fe9ba44a76be22a”

    Register sip:SIP服务器编码@目的域名或者IP地址端口  SIP/2.0

    Via:SIP/2.0/UDP 源域名或者IP地址端口

    From:<sip:SIP设备编码@源域名>;tag=185328220

    To: <sip:SIP设备编码@源域名>

    Call-ID:ms1214-322164-681262131542511620107-0@172.18.16.3

    CSeq:2 Register

    Contact: <sip:SIP设备编码@源IP地址端口>

    Authorization: Digest username=”64010000002020000001”,realm=”64010000”, nonce=”6fe9ba44a76be22a”,uri=”sip:64010000002020000001@172.18.16.5:5060”,response=”9625d92d1bddea7a911926e0db054968”,algorithm=”MD5”

    Max-Forwords:70

    Expires: 7200

    Content-Length: 0

    SIP/2.0 200 OK

    To: <sip:SIP设备编码@源域名>;tag=69113a2a

    Contact: sip:SIP设备编码@源IP地址端口

    Content-Length: 0

    CSeq:2 Register

    Call-ID:ms1214-322164-681262131542511620107-0@172.18.16.3

    From:<sip:SIP设备编码@源域名>;tag=185328220

    Via:SIP/2.0/UDP 源域名或者IP地址端口

    Date:2010-11-02T15:01:26.115

    Expires: 7200

  • 相关阅读:
    bzoj 4451 : [Cerc2015]Frightful Formula FFT
    bzoj 3928: [Cerc2014] Outer space invaders
    HDU 5306 线段树
    bzoj 1914: [Usaco2010 OPen]Triangle Counting 数三角形
    bzoj 4519: [Cqoi2016]不同的最小割 最小割树
    bzoj : 4504: K个串 区间修改主席树
    bzoj 4332:JSOI2012 分零食
    bzoj 2595 : [Wc2008]游览计划
    poj 3683 Priest John's Busiest Day
    bzoj 1823: [JSOI2010]满汉全席 && bzoj 2199 : [Usaco2011 Jan]奶牛议会 2-sat
  • 原文地址:https://www.cnblogs.com/dpf-10/p/8915796.html
Copyright © 2011-2022 走看看