wvp-gb28181-project/jain-sip-ri/Readme.md

18 lines
721 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

根据GB28181-2016标准:
联网系统内的IP网络接入设备应支持SIP信令的统一校时,接入设备应在注册时接受来自SIP服
务器通过消息头Date域携带的授时。
而Data域返回的时间格式为
Data: 2020-10-24T12:34:56.789
由于jain-sip-ri内的日期格式采用英式格式使得DateHeader的输出变成
Date: Sat, 24 Oct 2020 12:34:56 GMT
同时时区也强制变成格林尼治时间。
为此对jain-sip-ri依赖包进行了修改改为符合国标的格式增加毫秒的输出时区改为系统默认。
# 使用方法:
将“1.3.0-92”文件夹复制到“C:\Users\用户名\.m2\repository\javax\sip\jain-sip-ri”文件夹中重新编译运行。