{"id":66055,"date":"2026-01-26T07:33:20","date_gmt":"2026-01-25T23:33:20","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/66055.html"},"modified":"2026-01-26T07:33:20","modified_gmt":"2026-01-25T23:33:20","slug":"gb28181-sip%e4%bf%a1%e4%bb%a4%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%9e%e6%88%98%ef%bc%9aspringboot%e4%b8%8b%e6%b5%b7%e5%ba%b7-%e5%a4%a7%e5%8d%8e%e6%91%84%e5%83%8f%e5%a4%b4%e6%b3%a8%e5%86%8c%e4%b8%8e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/66055.html","title":{"rendered":"GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u5b9e\u6218\uff1aSpringBoot\u4e0b\u6d77\u5eb7\/\u5927\u534e\u6444\u50cf\u5934\u6ce8\u518c\u4e0e\u5fc3\u8df3\u4fdd\u6d3b\u673a\u5236"},"content":{"rendered":"<h3>1. GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u57fa\u7840\u8ba4\u77e5<\/h3>\n<p>\u7b2c\u4e00\u6b21\u63a5\u89e6GB28181\u534f\u8bae\u65f6&#xff0c;\u6211\u88ab\u5b83\u590d\u6742\u7684\u4fe1\u4ee4\u4ea4\u4e92\u6d41\u7a0b\u7ed5\u5f97\u5934\u6655\u3002\u76f4\u5230\u7528SpringBoot\u5b9e\u9645\u642d\u5efa\u4e86SIP\u670d\u52a1\u5668&#xff0c;\u624d\u53d1\u73b0\u8fd9\u5957\u5b89\u9632\u884c\u4e1a\u6807\u51c6\u534f\u8bae\u7684\u6838\u5fc3\u903b\u8f91\u5176\u5b9e\u5f88\u6e05\u6670\u3002\u7b80\u5355\u6765\u8bf4&#xff0c;GB28181\u5c31\u50cf\u76d1\u63a7\u8bbe\u5907\u754c\u7684&#034;\u666e\u901a\u8bdd&#034;&#xff0c;\u89c4\u5b9a\u4e86\u6444\u50cf\u5934\u3001NVR\u8fd9\u4e9b\u8bbe\u5907\u5982\u4f55\u901a\u8fc7SIP\u534f\u8bae\u4e0e\u670d\u52a1\u5668\u5bf9\u8bdd\u3002<\/p>\n<p>\u6d77\u5eb7\u5a01\u89c6\u548c\u5927\u534e\u7684\u6444\u50cf\u5934\u5728\u6ce8\u518c\u65f6\u6709\u4e2a\u6709\u8da3\u7684\u533a\u522b&#xff1a;\u6d77\u5eb7\u7684\u8bbe\u5907\u4f1a\u5728XML\u6807\u7b7e\u91cc\u7559\u7a7a\u683c&#xff0c;\u6bd4\u5982&lt;CmdType&gt; &#xff0c;\u800c\u5927\u534e\u7684\u6807\u7b7e\u5219\u662f\u7d27\u51d1\u7684&lt;CmdType&gt;\u3002\u8fd9\u79cd\u7ec6\u8282\u5dee\u5f02\u5728\u5b9e\u9645\u5bf9\u63a5\u65f6\u53ef\u80fd\u8ba9\u4f60\u8c03\u8bd5\u534a\u5929&#xff0c;\u6240\u4ee5\u5904\u7406\u4fe1\u4ee4\u65f6\u8bb0\u5f97\u5148\u505atrim()\u64cd\u4f5c\u3002\u6211\u7528Netty\u642d\u5efa\u7684UDP\u670d\u52a1\u6700\u521d\u5c31\u56e0\u4e3a\u8fd9\u4e2a\u7a7a\u683c\u95ee\u9898&#xff0c;\u603b\u662f\u89e3\u6790\u4e0d\u5230\u6b63\u786e\u7684\u6307\u4ee4\u7c7b\u578b\u3002<\/p>\n<h3>2. \u6444\u50cf\u5934\u6ce8\u518c\u5168\u6d41\u7a0b\u89e3\u6790<\/h3>\n<h4>2.1 \u53cc\u9636\u6bb5\u6ce8\u518c\u673a\u5236<\/h4>\n<p>GB28181\u7684\u6ce8\u518c\u6d41\u7a0b\u8bbe\u8ba1\u5f97\u5f88\u4e25\u8c28&#xff0c;\u91c7\u7528\u4e24\u6b21\u63e1\u624b\u7684\u8ba4\u8bc1\u673a\u5236\u3002\u5f53\u6444\u50cf\u5934\u7b2c\u4e00\u6b21\u53d1\u9001REGISTER\u8bf7\u6c42\u65f6&#xff0c;\u670d\u52a1\u5668\u4f1a\u8fd4\u56de401\u54cd\u5e94&#xff0c;\u8fd9\u4e2a\u54cd\u5e94\u91cc\u5305\u542b\u4e00\u4e2a\u53ebnonce\u7684\u968f\u673a\u5b57\u7b26\u4e32\u3002\u4f60\u53ef\u4ee5\u628a\u5b83\u7406\u89e3\u6210\u9910\u5385\u7684\u53d6\u9910\u53f7\u2014\u2014\u670d\u52a1\u5458\u5148\u7ed9\u4f60\u4e2a\u53f7\u7801&#xff08;401\u54cd\u5e94&#xff09;&#xff0c;\u4f60\u4e0b\u6b21\u5fc5\u987b\u51fa\u793a\u8fd9\u4e2a\u53f7\u7801\u624d\u80fd\u62ff\u5230\u98df\u7269&#xff08;200\u6210\u529f\u54cd\u5e94&#xff09;\u3002<\/p>\n<p>\u6211\u9047\u5230\u8fc7\u6700\u5934\u75bc\u7684\u95ee\u9898\u662f\u516c\u7f51IP\u53d8\u5316\u5bfc\u81f4\u7684\u6ce8\u518c\u5931\u6548\u3002\u6709\u6b21\u5ba2\u6237\u73b0\u573a\u7684\u8def\u7531\u5668\u91cd\u542f\u540e&#xff0c;\u6444\u50cf\u5934\u7684\u65b0IP\u6ca1\u6709\u88ab\u53ca\u65f6\u66f4\u65b0\u5230\u670d\u52a1\u5668&#xff0c;\u5bfc\u81f4\u6574\u4e2a\u76d1\u63a7\u7cfb\u7edf\u762b\u75ea\u3002\u540e\u6765\u6211\u5728DeviceInfo\u5bf9\u8c61\u91cc\u589e\u52a0\u4e86lastActiveTime\u5b57\u6bb5&#xff0c;\u5b9a\u671f\u6e05\u7406\u8d85\u8fc730\u5206\u949f\u672a\u66f4\u65b0\u7684\u8bbe\u5907&#xff0c;\u8fd9\u624d\u89e3\u51b3\u4e86\u95ee\u9898\u3002<\/p>\n<h4>2.2 \u5173\u952e\u4ee3\u7801\u5b9e\u73b0<\/h4>\n<p>\u5904\u7406\u6ce8\u518c\u8bf7\u6c42\u7684\u6838\u5fc3\u4ee3\u7801\u5176\u5b9e\u5c31\u4e09\u90e8\u5206&#xff1a;<\/p>\n<p>\/\/ \u7b2c\u4e00\u6b21\u6ce8\u518c\u54cd\u5e94\u6a21\u677f<br \/>\nprivate static final String str_401 &#061; &#034;SIP\/2.0 401 Unauthorized\\\\r\\\\n&#034;<br \/>\n    &#043; &#034;CSeq: 1 REGISTER\\\\r\\\\n&#034;<br \/>\n    &#043; &#034;WWW-Authenticate: Digest realm&#061;\\\\&#034;3402000000\\\\&#034;,nonce&#061;\\\\&#034;{nonce}\\\\&#034;\\\\r\\\\n&#034;<br \/>\n    &#043; &#034;Content-Length: 0\\\\r\\\\n\\\\r\\\\n&#034;;<\/p>\n<p>\/\/ \u7b2c\u4e8c\u6b21\u6210\u529f\u54cd\u5e94\u6a21\u677f<br \/>\nprivate static final String str_200 &#061; &#034;SIP\/2.0 200 OK\\\\r\\\\n&#034;<br \/>\n    &#043; &#034;Expires: 3600\\\\r\\\\n&#034;<br \/>\n    &#043; &#034;Date: {Date}\\\\r\\\\n&#034;<br \/>\n    &#043; &#034;Content-Length: 0\\\\r\\\\n\\\\r\\\\n&#034;;<\/p>\n<p>\/\/ \u5bc6\u7801\u9a8c\u8bc1\u7b97\u6cd5<br \/>\nString ha1 &#061; DigestUtils.md5Hex(username &#043; &#034;:&#034; &#043; realm &#043; &#034;:&#034; &#043; password);<br \/>\nString ha2 &#061; DigestUtils.md5Hex(&#034;REGISTER:&#034; &#043; uri);<br \/>\nString response &#061; DigestUtils.md5Hex(ha1 &#043; &#034;:&#034; &#043; nonce &#043; &#034;:&#034; &#043; ha2);<\/p>\n<p>\u5b9e\u9645\u9879\u76ee\u4e2d\u6211\u53d1\u73b0&#xff0c;\u6d77\u5eb7\u6444\u50cf\u5934\u5bf9Date\u5b57\u6bb5\u683c\u5f0f\u7279\u522b\u6311\u5254&#xff0c;\u5fc5\u987b\u4e25\u683c\u9075\u5faaRFC1123\u683c\u5f0f\u3002\u6709\u6b21\u8c03\u8bd5\u65f6\u56e0\u4e3a\u65f6\u533a\u8bbe\u7f6e\u9519\u8bef&#xff0c;\u6444\u50cf\u5934\u6b7b\u6d3b\u4e0d\u8ba4\u6ce8\u518c\u54cd\u5e94&#xff0c;\u540e\u6765\u7528\u8fd9\u4e2a\u65b9\u6cd5\u624d\u89e3\u51b3&#xff1a;<\/p>\n<p>private static String getGMT() {<br \/>\n    SimpleDateFormat sdf &#061; new SimpleDateFormat(<br \/>\n        &#034;EEE, dd MMM yyyy HH:mm:ss &#039;GMT&#039;&#034;,<br \/>\n        Locale.US);<br \/>\n    sdf.setTimeZone(TimeZone.getTimeZone(&#034;GMT&#034;));<br \/>\n    return sdf.format(new Date());<br \/>\n}<\/p>\n<h3>3. \u5fc3\u8df3\u4fdd\u6d3b\u673a\u5236\u8bbe\u8ba1<\/h3>\n<h4>3.1 \u4fdd\u6d3b\u7b56\u7565\u9009\u62e9<\/h4>\n<p>\u6444\u50cf\u5934\u9ed8\u8ba4\u6bcf60\u79d2\u53d1\u4e00\u6b21\u5fc3\u8df3&#xff0c;\u4f46\u8fd9\u4e2a\u95f4\u9694\u5728\u79fb\u52a8\u7f51\u7edc\u73af\u5883\u4e0b\u53ef\u80fd\u592a\u77ed\u3002\u6211\u57284G\u6444\u50cf\u5934\u9879\u76ee\u91cc\u505a\u8fc7\u6d4b\u8bd5&#xff1a;\u5c06\u5fc3\u8df3\u8d85\u65f6\u8bbe\u4e3a180\u79d2&#xff0c;\u91cd\u8bd5\u6b21\u6570\u8bbe\u4e3a2\u6b21&#xff0c;\u8fd9\u6837\u65e2\u80fd\u51cf\u5c11\u6d41\u91cf\u6d88\u8017&#xff0c;\u53c8\u4e0d\u4f1a\u56e0\u7f51\u7edc\u6296\u52a8\u8bef\u5224\u79bb\u7ebf\u3002\u5173\u952e\u914d\u7f6e\u53c2\u6570\u5982\u4e0b&#xff1a;<\/p>\n<table>\n<tr>\u53c2\u6570\u63a8\u8350\u503c\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u5fc3\u8df3\u95f4\u9694<\/td>\n<td>60-300\u79d2<\/td>\n<td>\u516c\u7f51\u5efa\u8bae120\u79d2\u4ee5\u4e0a<\/td>\n<\/tr>\n<tr>\n<td>\u8d85\u65f6\u9608\u503c<\/td>\n<td>3\u500d\u95f4\u9694<\/td>\n<td>\u9700\u8003\u8651\u7f51\u7edc\u5ef6\u8fdf<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u5927\u91cd\u8bd5<\/td>\n<td>2\u6b21<\/td>\n<td>\u907f\u514d\u5355\u6b21\u4e22\u5305\u5bfc\u81f4\u8bef\u5224<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.2 \u72b6\u6001\u7ef4\u62a4\u6280\u5de7<\/h4>\n<p>\u7528Redis\u5b58\u8bbe\u5907\u72b6\u6001\u65f6&#xff0c;\u5efa\u8bae\u91c7\u7528Hash\u7ed3\u6784\u5b58\u50a8&#xff0c;\u6bd4String\u7c7b\u578b\u8282\u770140%\u5185\u5b58\u3002\u8fd9\u662f\u6211\u7684\u6570\u636e\u7ed3\u6784\u8bbe\u8ba1&#xff1a;<\/p>\n<p>\/\/ Redis Key\u8bbe\u8ba1<br \/>\nString DEVICE_KEY &#061; &#034;gb:device:&#034; &#043; deviceId;<\/p>\n<p>\/\/ Hash\u5b57\u6bb5<br \/>\nMap&lt;String, String&gt; fields &#061; new HashMap&lt;&gt;();<br \/>\nfields.put(&#034;ip&#034;, device.getIp());<br \/>\nfields.put(&#034;lastActive&#034;, String.valueOf(System.currentTimeMillis()));<br \/>\nfields.put(&#034;status&#034;, device.isOnline() ? &#034;1&#034; : &#034;0&#034;);<\/p>\n<p>\/\/ \u4f7f\u7528Pipeline\u6279\u91cf\u66f4\u65b0<br \/>\ntry(Jedis jedis &#061; pool.getResource()) {<br \/>\n    Pipeline p &#061; jedis.pipelined();<br \/>\n    p.hmset(DEVICE_KEY, fields);<br \/>\n    p.expire(DEVICE_KEY, 86400);<br \/>\n    p.sync();<br \/>\n}<\/p>\n<p>\u9047\u5230\u8fc7Redis\u96c6\u7fa4\u5207\u6362\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u7684\u60c5\u51b5&#xff0c;\u540e\u6765\u589e\u52a0\u4e86\u672c\u5730\u5185\u5b58\u7f13\u5b58\u4f5c\u4e3a\u964d\u7ea7\u65b9\u6848\u3002\u5f53Redis\u4e0d\u53ef\u7528\u65f6&#xff0c;\u81ea\u52a8\u5207\u6362\u81f3ConcurrentHashMap\u5b58\u50a8\u6700\u65b0\u72b6\u6001&#xff0c;\u7b49Redis\u6062\u590d\u540e\u518d\u540c\u6b65\u6570\u636e\u3002<\/p>\n<h3>4. \u516c\u7f51\u73af\u5883\u5b9e\u6218\u7ecf\u9a8c<\/h3>\n<h4>4.1 NAT\u7a7f\u900f\u89e3\u51b3\u65b9\u6848<\/h4>\n<p>\u5728\u5e2e\u67d0\u8fde\u9501\u8d85\u5e02\u90e8\u7f72\u65f6&#xff0c;\u4ed6\u4eec\u7684\u6444\u50cf\u5934\u90fd\u5728\u5404\u95e8\u5e97NAT\u540e&#xff0c;\u6211\u4eec\u6d4b\u8bd5\u4e86\u4e09\u79cd\u65b9\u6848&#xff1a;<\/p>\n<li>ALG\u65b9\u6848&#xff1a;\u5728\u8def\u7531\u5668\u5f00\u542fSIP ALG\u529f\u80fd&#xff0c;\u53d1\u73b0\u4f1a\u7be1\u6539Via\u5934\u5bfc\u81f4\u6ce8\u518c\u5931\u8d25<\/li>\n<li>STUN\u65b9\u6848&#xff1a;\u6210\u672c\u4f4e\u4f46\u9700\u8981\u6444\u50cf\u5934\u652f\u6301&#xff0c;\u5927\u534e\u90e8\u5206\u578b\u53f7\u4e0d\u517c\u5bb9<\/li>\n<li>\u7aef\u53e3\u6620\u5c04&#xff1a;\u6700\u7ec8\u91c7\u7528\u7684\u65b9\u6848&#xff0c;\u5728\u8def\u7531\u5668\u56fa\u5b9a5060\u548c\u89c6\u9891\u7aef\u53e3<\/li>\n<p>\u7279\u522b\u8981\u6ce8\u610fContact\u5934\u7684\u5904\u7406&#xff0c;\u5f88\u591aNAT\u8bbe\u5907\u4f1a\u4fee\u6539\u8fd9\u4e2a\u503c\u3002\u6211\u901a\u5e38\u8fd9\u6837\u4fee\u6b63&#xff1a;<\/p>\n<p>String contact &#061; map.get(&#034;Contact&#034;);<br \/>\nif(contact.contains(&#034;&#064;\u79c1\u6709IP&#034;)) {<br \/>\n    contact &#061; contact.replace(&#034;\u79c1\u6709IP&#034;, &#034;\u516c\u7f51IP&#034;);<br \/>\n}<\/p>\n<h4>4.2 \u6027\u80fd\u4f18\u5316\u6280\u5de7<\/h4>\n<p>\u7528JMeter\u538b\u6d4b\u53d1\u73b0&#xff0c;\u539f\u751f\u5b57\u7b26\u4e32\u89e3\u6790\u57281000&#043;\u8bbe\u5907\u65f6CPU\u4f1a\u98d9\u523090%\u3002\u540e\u6765\u6539\u7528\u9884\u7f16\u8bd1\u6b63\u5219\u8868\u8fbe\u5f0f&#xff0c;\u6027\u80fd\u63d0\u53473\u500d&#xff1a;<\/p>\n<p>\/\/ \u4f18\u5316\u524d\u7684\u5b57\u7b26\u4e32\u5207\u5272<br \/>\nString deviceId &#061; line.split(&#034;:&#034;)[1].split(&#034;&#064;&#034;)[0];<\/p>\n<p>\/\/ \u4f18\u5316\u540e\u7684\u6b63\u5219\u5339\u914d<br \/>\nprivate static final Pattern DEVICE_ID_PATTERN &#061;<br \/>\n    Pattern.compile(&#034;.*:(.*?)&#064;.*&#034;);<br \/>\nMatcher m &#061; DEVICE_ID_PATTERN.matcher(line);<br \/>\nif(m.find()) {<br \/>\n    deviceId &#061; m.group(1);<br \/>\n}<\/p>\n<p>\u65e5\u5fd7\u5904\u7406\u4e5f\u6709\u8bb2\u7a76&#xff0c;\u5efa\u8bae\u7528AsyncAppender\u5f02\u6b65\u5199\u65e5\u5fd7&#xff0c;\u6211\u5728logback.xml\u91cc\u8fd9\u6837\u914d\u7f6e&#xff1a;<\/p>\n<p>&lt;appender name&#061;&#034;ASYNC&#034; class&#061;&#034;ch.qos.logback.classic.AsyncAppender&#034;&gt;<br \/>\n    &lt;queueSize&gt;1024&lt;\/queueSize&gt;<br \/>\n    &lt;discardingThreshold&gt;0&lt;\/discardingThreshold&gt;<br \/>\n    &lt;appender-ref ref&#061;&#034;FILE&#034; \/&gt;<br \/>\n&lt;\/appender&gt;<\/p>\n<p>\u6700\u540e\u63d0\u9192\u4e00\u4e2a\u5bb9\u6613\u5ffd\u7565\u7684\u7ec6\u8282&#xff1a;GB28181\u8981\u6c42\u6d88\u606f\u4f53\u5fc5\u987b\u662fGBK\u7f16\u7801\u3002\u6709\u6b21\u5bf9\u63a5\u56fd\u9645\u9879\u76ee&#xff0c;\u5bf9\u65b9\u6444\u50cf\u5934\u53d1\u6765\u7684\u4fe1\u4ee4\u7528UTF-8\u7f16\u7801&#xff0c;\u5bfc\u81f4\u4e2d\u6587\u8bbe\u5907\u540d\u5168\u663e\u793a\u4e3a\u95ee\u53f7\u3002\u89e3\u51b3\u65b9\u6cd5\u662f\u5728Netty\u89e3\u7801\u5668\u91cc\u505a\u81ea\u52a8\u8bc6\u522b&#xff1a;<\/p>\n<p>\/\/ \u81ea\u52a8\u68c0\u6d4b\u7f16\u7801<br \/>\nCharset charset &#061; detectCharset(packet.content());<br \/>\nString msg &#061; packet.content().toString(charset);<\/p>\n<p>private Charset detectCharset(ByteBuf buf) {<br \/>\n    return buf.toString(StandardCharsets.US_ASCII)<br \/>\n        .contains(&#034;xml&#034;) ? Charset.forName(&#034;GBK&#034;) : StandardCharsets.UTF_8;<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u57fa\u7840\u8ba4\u77e5<br \/>\n\u7b2c\u4e00\u6b21\u63a5\u89e6GB28181\u534f\u8bae\u65f6&#xff0c;\u6211\u88ab\u5b83\u590d\u6742\u7684\u4fe1\u4ee4\u4ea4\u4e92\u6d41\u7a0b\u7ed5\u5f97\u5934\u6655\u3002\u76f4\u5230\u7528SpringBoot\u5b9e\u9645\u642d\u5efa\u4e86SIP\u670d\u52a1\u5668&#xff0c;\u624d\u53d1\u73b0\u8fd9\u5957\u5b89\u9632\u884c\u4e1a\u6807\u51c6\u534f\u8bae\u7684\u6838\u5fc3\u903b\u8f91\u5176\u5b9e\u5f88\u6e05\u6670\u3002\u7b80\u5355\u6765\u8bf4&#xff0c;GB28181\u5c31\u50cf\u76d1\u63a7\u8bbe\u5907\u754c\u7684\\&#8221;\u666e\u901a\u8bdd\\&#8221;&#xff0c;\u89c4\u5b9a\u4e86\u6444\u50cf\u5934\u3001NVR\u8fd9\u4e9b\u8bbe\u5907\u5982\u4f55\u901a\u8fc7SIP\u534f\u8bae\u4e0e\u670d\u52a1\u5668\u5bf9\u8bdd\u3002<br \/>\n\u6d77\u5eb7\u5a01\u89c6\u548c\u5927\u534e\u7684\u6444\u50cf\u5934\u5728\u6ce8\u518c\u65f6\u6709\u4e2a\u6709\u8da3\u7684\u533a\u522b&#xff1a;\u6d77\u5eb7\u7684\u8bbe\u5907\u4f1a\u5728XML\u6807\u7b7e\u91cc\u7559\u7a7a\u683c&amp;#x<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6977,6978,1271,1503],"topic":[],"class_list":["post-66055","post","type-post","status-publish","format-standard","hentry","category-server","tag-gb28181","tag-sip","tag-springboot","tag-1503"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u5b9e\u6218\uff1aSpringBoot\u4e0b\u6d77\u5eb7\/\u5927\u534e\u6444\u50cf\u5934\u6ce8\u518c\u4e0e\u5fc3\u8df3\u4fdd\u6d3b\u673a\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/66055.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u5b9e\u6218\uff1aSpringBoot\u4e0b\u6d77\u5eb7\/\u5927\u534e\u6444\u50cf\u5934\u6ce8\u518c\u4e0e\u5fc3\u8df3\u4fdd\u6d3b\u673a\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u57fa\u7840\u8ba4\u77e5 \u7b2c\u4e00\u6b21\u63a5\u89e6GB28181\u534f\u8bae\u65f6&#xff0c;\u6211\u88ab\u5b83\u590d\u6742\u7684\u4fe1\u4ee4\u4ea4\u4e92\u6d41\u7a0b\u7ed5\u5f97\u5934\u6655\u3002\u76f4\u5230\u7528SpringBoot\u5b9e\u9645\u642d\u5efa\u4e86SIP\u670d\u52a1\u5668&#xff0c;\u624d\u53d1\u73b0\u8fd9\u5957\u5b89\u9632\u884c\u4e1a\u6807\u51c6\u534f\u8bae\u7684\u6838\u5fc3\u903b\u8f91\u5176\u5b9e\u5f88\u6e05\u6670\u3002\u7b80\u5355\u6765\u8bf4&#xff0c;GB28181\u5c31\u50cf\u76d1\u63a7\u8bbe\u5907\u754c\u7684&quot;\u666e\u901a\u8bdd&quot;&#xff0c;\u89c4\u5b9a\u4e86\u6444\u50cf\u5934\u3001NVR\u8fd9\u4e9b\u8bbe\u5907\u5982\u4f55\u901a\u8fc7SIP\u534f\u8bae\u4e0e\u670d\u52a1\u5668\u5bf9\u8bdd\u3002 \u6d77\u5eb7\u5a01\u89c6\u548c\u5927\u534e\u7684\u6444\u50cf\u5934\u5728\u6ce8\u518c\u65f6\u6709\u4e2a\u6709\u8da3\u7684\u533a\u522b&#xff1a;\u6d77\u5eb7\u7684\u8bbe\u5907\u4f1a\u5728XML\u6807\u7b7e\u91cc\u7559\u7a7a\u683c&amp;#x\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/66055.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-25T23:33:20+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/66055.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/66055.html\",\"name\":\"GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u5b9e\u6218\uff1aSpringBoot\u4e0b\u6d77\u5eb7\/\u5927\u534e\u6444\u50cf\u5934\u6ce8\u518c\u4e0e\u5fc3\u8df3\u4fdd\u6d3b\u673a\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-25T23:33:20+00:00\",\"dateModified\":\"2026-01-25T23:33:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/66055.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/66055.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/66055.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u5b9e\u6218\uff1aSpringBoot\u4e0b\u6d77\u5eb7\/\u5927\u534e\u6444\u50cf\u5934\u6ce8\u518c\u4e0e\u5fc3\u8df3\u4fdd\u6d3b\u673a\u5236\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u5b9e\u6218\uff1aSpringBoot\u4e0b\u6d77\u5eb7\/\u5927\u534e\u6444\u50cf\u5934\u6ce8\u518c\u4e0e\u5fc3\u8df3\u4fdd\u6d3b\u673a\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/66055.html","og_locale":"zh_CN","og_type":"article","og_title":"GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u5b9e\u6218\uff1aSpringBoot\u4e0b\u6d77\u5eb7\/\u5927\u534e\u6444\u50cf\u5934\u6ce8\u518c\u4e0e\u5fc3\u8df3\u4fdd\u6d3b\u673a\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u57fa\u7840\u8ba4\u77e5 \u7b2c\u4e00\u6b21\u63a5\u89e6GB28181\u534f\u8bae\u65f6&#xff0c;\u6211\u88ab\u5b83\u590d\u6742\u7684\u4fe1\u4ee4\u4ea4\u4e92\u6d41\u7a0b\u7ed5\u5f97\u5934\u6655\u3002\u76f4\u5230\u7528SpringBoot\u5b9e\u9645\u642d\u5efa\u4e86SIP\u670d\u52a1\u5668&#xff0c;\u624d\u53d1\u73b0\u8fd9\u5957\u5b89\u9632\u884c\u4e1a\u6807\u51c6\u534f\u8bae\u7684\u6838\u5fc3\u903b\u8f91\u5176\u5b9e\u5f88\u6e05\u6670\u3002\u7b80\u5355\u6765\u8bf4&#xff0c;GB28181\u5c31\u50cf\u76d1\u63a7\u8bbe\u5907\u754c\u7684\"\u666e\u901a\u8bdd\"&#xff0c;\u89c4\u5b9a\u4e86\u6444\u50cf\u5934\u3001NVR\u8fd9\u4e9b\u8bbe\u5907\u5982\u4f55\u901a\u8fc7SIP\u534f\u8bae\u4e0e\u670d\u52a1\u5668\u5bf9\u8bdd\u3002 \u6d77\u5eb7\u5a01\u89c6\u548c\u5927\u534e\u7684\u6444\u50cf\u5934\u5728\u6ce8\u518c\u65f6\u6709\u4e2a\u6709\u8da3\u7684\u533a\u522b&#xff1a;\u6d77\u5eb7\u7684\u8bbe\u5907\u4f1a\u5728XML\u6807\u7b7e\u91cc\u7559\u7a7a\u683c&amp;#x","og_url":"https:\/\/www.wsisp.com\/helps\/66055.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-25T23:33:20+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/66055.html","url":"https:\/\/www.wsisp.com\/helps\/66055.html","name":"GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u5b9e\u6218\uff1aSpringBoot\u4e0b\u6d77\u5eb7\/\u5927\u534e\u6444\u50cf\u5934\u6ce8\u518c\u4e0e\u5fc3\u8df3\u4fdd\u6d3b\u673a\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-25T23:33:20+00:00","dateModified":"2026-01-25T23:33:20+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/66055.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/66055.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/66055.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"GB28181 SIP\u4fe1\u4ee4\u670d\u52a1\u5668\u5b9e\u6218\uff1aSpringBoot\u4e0b\u6d77\u5eb7\/\u5927\u534e\u6444\u50cf\u5934\u6ce8\u518c\u4e0e\u5fc3\u8df3\u4fdd\u6d3b\u673a\u5236"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/66055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=66055"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/66055\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=66055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=66055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=66055"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=66055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}