sip注册协议格式

192.168.110.247            --->            192.168.110.237

不带转发路由
REGISTER sip:192.168.110.237:20101;transport=tcp SIP/2.0
Via: SIP/2.0/TCP 192.168.110.247:50250;rport;branch=z9hG4bKPjda05353a7a96446799361429235bc0e5;alias
Max-Forwards: 70
From: <sip:32100045@192.168.110.237>;tag=6c33309d840849cf89aeffac78fe505e
To: <sip:32100045@192.168.110.237>
Call-ID: 3548dbde40f943d2bdaf41d727049ffc
CSeq: 54023 REGISTER
Supported: outbound, path
Contact: <sip:32100045@192.168.110.247:50250;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-0000-0000-000041d7c640>"
Expires: 30
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length:  0

 

带转发路由
REGISTER sip:192.168.110.237:5070;transport=tcp SIP/2.0
Via: SIP/2.0/TCP 192.168.110.247:60340;rport;branch=z9hG4bKPj77ff2e12d94343cabbdea16734441deb;alias
Route: <sip:192.168.110.230:5060;transport=tcp;lr>
Max-Forwards: 70
From: <sip:101@192.168.110.237>;tag=00e15cfa6bf8488a89cef288a4795d85
To: <sip:101@192.168.110.237>
Call-ID: de1d2568de394a59bc6fcd2f27731060
CSeq: 6317 REGISTER
Supported: outbound, path
Contact: <sip:101@192.168.110.247:60340;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-0000-0000-000041d7c640>"
Expires: 30
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length:  0

 

192.168.110.237            --->            192.168.110.247
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 192.168.110.247:50250;rport=50250;received=192.168.110.247;branch=z9hG4bKPjda05353a7a96446799361429235bc0e5;alias
Call-ID: 3548dbde40f943d2bdaf41d727049ffc
From: <sip:32100045@192.168.110.237>;tag=6c33309d840849cf89aeffac78fe505e
To: <sip:32100045@192.168.110.237>;tag=z9hG4bKPjda05353a7a96446799361429235bc0e5
CSeq: 54023 REGISTER
WWW-Authenticate: Digest  realm="32100045",nonce="0029482318be6784",algorithm=md5
Content-Length:  0

192.168.110.247            --->            192.168.110.237
REGISTER sip:192.168.110.237:20101;transport=tcp SIP/2.0
Via: SIP/2.0/TCP 192.168.110.247:50250;rport;branch=z9hG4bKPj2441c1d494194a18bab63a939084bc5d;alias
Max-Forwards: 70
From: <sip:32100045@192.168.110.237>;tag=6c33309d840849cf89aeffac78fe505e
To: <sip:32100045@192.168.110.237>
Call-ID: 3548dbde40f943d2bdaf41d727049ffc
CSeq: 54024 REGISTER
Supported: outbound, path
Contact: <sip:32100045@192.168.110.247:50250;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-0000-0000-000041d7c640>"
Expires: 30
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="32100045", realm="32100045", nonce="0029482318be6784", uri="sip:192.168.110.237:20101;transport=tcp", response="f6144dbcc10d8995c0ffc1ade5a712f5", algorithm=md5
Content-Length:  0

192.168.110.237            --->            192.168.110.247
SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.168.110.247:50250;rport=50250;received=192.168.110.247;branch=z9hG4bKPj2441c1d494194a18bab63a939084bc5d;alias
Call-ID: 3548dbde40f943d2bdaf41d727049ffc
From: <sip:32100045@192.168.110.237>;tag=6c33309d840849cf89aeffac78fe505e
To: <sip:32100045@192.168.110.237>;tag=z9hG4bKPj2441c1d494194a18bab63a939084bc5d
CSeq: 54024 REGISTER
Content-Length:  0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值