{"id":741,"date":"2026-04-07T01:07:14","date_gmt":"2026-04-06T17:07:14","guid":{"rendered":"https:\/\/www.liaoxinghui.com\/?p=741"},"modified":"2026-04-07T01:07:14","modified_gmt":"2026-04-06T17:07:14","slug":"freeswitch-rtp-stream-after-bye-gateway-buffer","status":"publish","type":"post","link":"https:\/\/www.liaoxinghui.com\/?p=741","title":{"rendered":"\u901a\u8bdd\u7ed3\u675f\u4e86\uff0cRTP\u6d41\u8fd8\u5728\u8dd1\uff1f\u4e00\u6b21\u5bf9\u7aef\u7f51\u5173\u7f13\u51b2\u533a\u7684\u6392\u67e5\u5b9e\u5f55"},"content":{"rendered":"<h2>\u95ee\u9898\u73b0\u8c61<\/h2>\n<p>\u7528\u6237\u53cd\u9988&#8221;\u5f55\u97f3\u6587\u4ef6\u65f6\u957f\u548c\u901a\u8bdd\u65f6\u957f\u5bf9\u4e0d\u4e0a&#8221;\u3002<\/p>\n<p>\u62c9\u51fa\u6570\u636e\u4e00\u770b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u901a\u8bddID<\/th>\n<th>\u5b9e\u9645\u901a\u8bdd\u65f6\u957f<\/th>\n<th>\u5f55\u97f3\u6587\u4ef6\u65f6\u957f<\/th>\n<th>\u5dee\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>call_001<\/td>\n<td>3\u520612\u79d2<\/td>\n<td>10\u520647\u79d2<\/td>\n<td>+7\u520635\u79d2<\/td>\n<\/tr>\n<tr>\n<td>call_002<\/td>\n<td>1\u520645\u79d2<\/td>\n<td>8\u520602\u79d2<\/td>\n<td>+6\u520617\u79d2<\/td>\n<\/tr>\n<tr>\n<td>call_003<\/td>\n<td>5\u520630\u79d2<\/td>\n<td>11\u520620\u79d2<\/td>\n<td>+5\u520650\u79d2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5dee\u4e865\u52308\u5206\u949f\u3002\u8fd9\u4e0d\u5bf9\u52b2\u3002<\/p>\n<h2>\u4e1a\u52a1\u573a\u666f<\/h2>\n<p>\u6211\u4eec\u8fd9\u6709\u4e2a\u901a\u8bdd\u8d28\u68c0\u7cfb\u7edf\uff0c\u8dd1\u5728FreeSWITCH\u4e0a\u505aSIP\u5f55\u97f3\u3002\u6b63\u5e38\u6d41\u7a0b\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<ol>\n<li>\u7532\u65b9\u5916\u547c\u8fdb\u6765 \u2192 FreeSWITCH\u63a5\u542c \u2192 \u5f55\u97f3\u8fdb\u7a0b\u5f00\u59cb\u5f55\u5236<\/li>\n<li>\u901a\u8bdd\u7ed3\u675f \u2192 \u7532\u65b9\u6302\u673a \u2192 FreeSWITCH\u6536\u5230BYE \u2192 \u505c\u6b62\u5f55\u97f3<\/li>\n<\/ol>\n<p>\u7406\u8bba\u4e0a\u901a\u8bdd\u7ed3\u675f\u7684\u77ac\u95f4\u5f55\u97f3\u5c31\u8be5\u505c\u3002\u4f46\u5b9e\u9645\u8dd1\u4e0b\u6765\uff0c\u6709\u5927\u69823%\u7684\u5f55\u97f3\u6587\u4ef6\u65f6\u957f\u8fdc\u8d85\u5b9e\u9645\u901a\u8bdd\u3002\u6700\u79bb\u8c31\u7684\u4e00\u4e2a\uff0c\u5b9e\u9645\u901a\u8bdd2\u5206\u949f\uff0c\u5f55\u97f3\u6587\u4ef614\u5206\u949f\u3002<\/p>\n<p>\u8d28\u68c0\u7cfb\u7edf\u62ff\u5f55\u97f3\u505a\u8bed\u97f3\u8bc6\u522b\u548c\u60c5\u7eea\u5206\u6790\uff0c\u65f6\u957f\u5bf9\u4e0d\u4e0a\u5bfc\u81f4\u8bef\u5224\u7387\u98d9\u5347\u3002\u7532\u65b9\u5929\u5929\u50ac\uff0c\u6211\u4eec\u5929\u5929\u67e5\u65e5\u5fd7\uff0c\u65e5\u5fd7\u663e\u793aFS\u7684BYE\u5904\u7406\u5b8c\u5168\u6b63\u5e38\u3002<\/p>\n<p>\u76f4\u5230\u6709\u4e00\u5929\u6211\u51b3\u5b9a\u76f4\u63a5\u6293\u5305\u770b\u3002<\/p>\n<h2>\u5feb\u901f\u5224\u65ad\uff1a\u8c01\u5728\u53d1\u5305\uff1f<\/h2>\n<p>\u7b2c\u4e00\u53cd\u5e94\u662f&#8221;FreeSWITCH\u6ca1\u53ca\u65f6\u505c\u5f55\u97f3&#8221;\u3002\u4f46\u6293\u5305\u4e00\u770b\uff0c\u6211\u6539\u4e3b\u610f\u4e86\u3002<\/p>\n<pre><code class=\"lang-bash language-bash bash\"># \u5728FS\u670d\u52a1\u5668\u4e0a\u6293\u5305\uff0c\u7528rtp\u6d41\u8fc7\u6ee4\ntshark -r capture.pcap -Y &quot;rtp &amp;&amp; ip.addr==192.168.1.100&quot; \\\n  -T fields -e frame.time_relative \\\n  -e rtp.timestamp \\\n  -e rtp.seq \\\n  -e ip.src \\\n  -e ip.dst &gt; rtp_timeline.txt<\/code><\/pre>\n<p>\u770b\u6700\u540e\u51e0\u884c\uff1a<\/p>\n<pre><code>182.34   2880000    65432   10.0.1.50    192.168.1.100   # \u901a\u8bdd\u7ed3\u675f\u524d\n183.56   2894400    65433   10.0.1.50    192.168.1.100   # \u901a\u8bdd\u7ed3\u675f\u524d\n184.01   [BYE\u8bf7\u6c42\u53d1\u51fa]                               # FreeSWITCH\u53d1BYE\n184.03   [200 OK\u6536\u5230]                               # \u5bf9\u7aef\u56de200\n184.15   [BYE\u786e\u8ba4\u53d1\u51fa]                               # FreeSWITCH\u786e\u8ba4\n...\n186.20   2916000    65440   10.0.1.50    192.168.1.100   # BYE\u4e92\u53d1\u5b8c\u4e86\u8fd8\u5728\u8dd1\uff01\n188.75   2930400    65445   10.0.1.50    192.168.1.100\n190.34   2944800    65448   10.0.1.50    192.168.1.100<\/code><\/pre>\n<p><strong>184\u79d2\u901a\u8bdd\u5c31\u7ed3\u675f\u4e86\uff0c\u4f46RTP\u5305\u4ece184\u79d2\u4e00\u76f4\u8dd1\u5230190\u79d2<\/strong>\u3002<\/p>\n<p>\u8fd9\u8bf4\u660e\uff1aFreeSWITCH\u4fa7\u7684BYE\u5904\u7406\u662f\u6b63\u5e38\u7684\u3002\u95ee\u9898\u51fa\u5728<strong>\u5bf9\u7aef\u7f51\u5173\u5728\u6536\u5230BYE\u4e4b\u540e\uff0c\u8fd8\u5728\u7ee7\u7eed\u53d1\u9001RTP\u5305<\/strong>\u3002<\/p>\n<h2>\u65e5\u5fd7\u4ea4\u53c9\u9a8c\u8bc1<\/h2>\n<p>FreeSWITCH\u4fa7\u7684\u65e5\u5fd7\u5f88\u5e72\u51c0\uff1a<\/p>\n<pre><code>2024-01-15 02:34:44.012345 [INFO] sofia.c:8151 Received BYE\n2024-01-15 02:34:44.014567 [INFO] sofia.c:8151 Sending 200 OK to BYE\n2024-01-15 02:34:44.015678 [INFO] switch_core_media.c:5621 Hangup cause: NORMAL_CLEARING<\/code><\/pre>\n<p>\u5bf9\u7aef\u7f51\u5173\u5462\uff1f\u4f60\u5f97\u627e\u8fd0\u8425\u5546\u8981\u3002\u5927\u6982\u7387\u4f1a\u544a\u8bc9\u4f60\uff1a<\/p>\n<pre><code>[2024-01-15 02:34:44] Received BYE from 192.168.1.100\n[2024-01-15 02:34:44] Sent 200 OK\n[2024-01-15 02:34:44] Media session terminated\n[2024-01-15 02:34:50] Actually stopped sending RTP  # \u8fd9\u884c\u5f88\u5173\u952e<\/code><\/pre>\n<p>\u6ce8\u610f\u65f6\u95f4\u5dee\uff1aBYE\u5904\u7406\u5b8c\u5230\u771f\u6b63\u505cRTP\uff0c\u5dee\u4e86<strong>6\u79d2<\/strong>\u3002<\/p>\n<h2>\u6570\u636e\u8bf4\u660e<\/h2>\n<p>\u6293\u4e863\u5929\u7684\u5305\u505a\u7edf\u8ba1\uff0c\u6570\u5b57\u633a\u5413\u4eba\u7684\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7edf\u8ba1\u9879<\/th>\n<th>\u6570\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u603b\u901a\u8bdd\u6570<\/td>\n<td>12,847<\/td>\n<\/tr>\n<tr>\n<td>\u5f02\u5e38\u5f55\u97f3\u6570\uff08\u5dee&gt;10\u79d2\uff09<\/td>\n<td>386<\/td>\n<\/tr>\n<tr>\n<td>\u5f02\u5e38\u5360\u6bd4<\/td>\n<td>3.0%<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u5927\u5dee\u503c<\/td>\n<td>11\u520623\u79d2<\/td>\n<\/tr>\n<tr>\n<td>\u5e73\u5747\u5dee\u503c<\/td>\n<td>8.7\u79d2<\/td>\n<\/tr>\n<tr>\n<td>\u7f13\u51b2\u5ef6\u8fdf\u4e2d\u4f4d\u6570<\/td>\n<td>6.2\u79d2<\/td>\n<\/tr>\n<tr>\n<td>\u7f13\u51b2\u5ef6\u8fdf95\u5206\u4f4d<\/td>\n<td>9.8\u79d2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\u7f13\u51b2\u5ef6\u8fdf\u57286\u79d2\u5de6\u53f3\uff0c\u4f46\u67b6\u4e0d\u4f4f\u91cf\u5927\u300212,847\u901a\u7535\u8bdd\u91cc300\u591a\u901a\u6709\u8fd9\u4e2a\u95ee\u9898\uff0c\u7532\u65b9\u8d28\u68c0\u8bef\u5224\u7387\u76f4\u63a5\u62c9\u6ee1\u3002<\/p>\n<p>\u8fd8\u6709\u4e2a\u6709\u610f\u601d\u7684\u6570\u636e\uff1a\u6211\u4e13\u95e8\u6570\u4e86\u4e00\u4e0bBYE\u4e4b\u540e\u8fd8\u6709\u591a\u5c11\u4e2a&#8221;\u5e7d\u7075RTP\u5305&#8221;\u3002<\/p>\n<pre><code class=\"lang-bash language-bash bash\"># \u7edf\u8ba1BYE\u4e4b\u540e\u5bf9\u7aef\u7ee7\u7eed\u53d1\u9001\u7684RTP\u5305\u6570\u91cf\u5206\u5e03\ntshark -r capture.pcap -Y &quot;sip.Method==BYE &amp;&amp; ip.addr==192.168.1.100&quot; \\\n  -T fields -e frame.number &gt; bye_frame.txt\n\n# \u5047\u8bbeBYE\u5728frame 12345\ntshark -r capture.pcap -Y &quot;rtp &amp;&amp; ip.addr==192.168.1.100 &amp;&amp; frame.number &gt; 12345&quot; \\\n  -c 1000 | wc -l<\/code><\/pre>\n<p>\u6b63\u5e38\u901a\u8bdd\u7ed3\u675f\u540e\uff0c\u5bf9\u7aef\u5e94\u8be5\u53ea\u53d1\u51e0\u4e2aRTCP\u7684BYE\u76f8\u5173\u5305\u3002\u4f46\u8fd9\u6b21\u6293\u5230\u7684\u5305\uff0cBYE\u4e4b\u540e\u8fd8\u6709<strong>20-50\u4e2a\u8fde\u7eed\u65f6\u95f4\u6233\u7684RTP\u5305<\/strong>\u3002\u65f6\u95f4\u6233\u662f\u8fde\u7eed\u7684\uff0cseq\u662f\u9012\u589e\u7684\uff0c\u4e00\u770b\u5c31\u662f\u6b63\u5e38\u8bed\u97f3\u6d41\u88ab\u7f13\u51b2\u4f4f\u4e86\u3002<\/p>\n<h2>\u6839\u56e0\uff1a\u8fd0\u8425\u5546\u7f51\u5173\u7684RTP\u53d1\u9001\u7f13\u51b2<\/h2>\n<p>\u8fd9\u4e0d\u662fFreeSWITCH\u7684\u95ee\u9898\uff0c\u662f<strong>\u5bf9\u7aef\u7f51\u5173\u7684\u53d1\u9001\u7f13\u51b2\uff08transmission buffer\uff09\u6ca1\u6e05\u7a7a<\/strong>\u3002<\/p>\n<p>\u901a\u8bdd\u7ed3\u675f\u65f6\uff0c\u5bf9\u7aef\u7f51\u5173\u7684\u5e94\u7528\u5c42\u5df2\u7ecf\u6536\u5230BYE\u5e76\u51c6\u5907\u505c\u6d41\u3002\u4f46\u5e95\u5c42\u8fd8\u5728\u4ece\u7f13\u51b2\u533a\u8bfb\u6570\u636e\u5f80\u5916\u53d1\u3002\u8fd9\u4e2a\u7f13\u51b2\u533a\u662f\u7f51\u7edc\u6808\u7528\u6765\u5e73\u6ed1\u53d1\u9001\u7684\uff0c\u91cc\u9762\u53ef\u80fd\u5806\u4e86\u51e0\u767e\u6beb\u79d2\u751a\u81f3\u51e0\u79d2\u7684\u5305\u3002<\/p>\n<p>\u8bf4\u767d\u4e86\uff0c\u8fd0\u8425\u5546\u7f51\u5173\u5c31\u662f&#8221;\u63a5\u6536\u5230\u505c\u6b62\u6307\u4ee4\u4f46\u817f\u811a\u4e0d\u5229\u7d22&#8221;\u3002<\/p>\n<p>\u5982\u679c\u4f60\u7528\u7684\u662frtpengine\u505a\u5a92\u4f53\u4ee3\u7406\uff0c\u53ef\u4ee5\u770bretransmission\u65e5\u5fd7\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\"># \u67e5\u770brtpengine\u65e5\u5fd7\uff0c\u627e\u6700\u540e\u51e0\u79d2\u7684\u5305\ncat \/var\/log\/rtpengine\/rtpengine.log | grep &quot;call_id=xxx&quot; | tail -50\n\n# \u8f93\u51fa\u5927\u6982\u957f\u8fd9\u6837\n1676: [INFO] 1485645518.123456 call_id:xxx seq:65440 ts:2916000 dropped:no\n1677: [INFO] 1485645518.135212 call_id:xxx seq:65441 ts:2920800 dropped:no\n1678: [INFO] 1485645518.146873 call_id:xxx seq:65442 ts:2925600 dropped:no\n1679: [INFO] 1485645520.000001 call_id:xxx Terminated - received BYE\n1680: [INFO] 1485645520.000002 call_id:xxx Cleaning up<\/code><\/pre>\n<p>\u6ce8\u610fseq 65440\u300165441\u300165442\u8fd9\u4e09\u4e2a\u5305\u2014\u2014\u5b83\u4eec\u5728BYE\u4e4b\u540e\u624d\u5230\u8fbertpengine\u3002rtpengine\u5fe0\u5b9e\u5730\u628a\u5b83\u4eec\u8f6c\u53d1\u7ed9\u4e86\u5f55\u97f3\u8fdb\u7a0b\uff0c\u5f55\u97f3\u8fdb\u7a0b\u54ea\u77e5\u9053\u8fd9\u662f&#8221;\u5e7d\u7075\u5305&#8221;\uff0c\u7167\u5355\u5168\u6536\u3002<\/p>\n<h2>\u8c03\u7528\u65b9\u5f0f<\/h2>\n<p>\u9a8c\u8bc1\u5e7d\u7075\u6d41\u9700\u8981\u51e0\u4e2a\u5173\u952e\u547d\u4ee4\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\"># 1. \u63d0\u53d6RTP\u65f6\u95f4\u7ebf\uff0c\u5b9a\u4f4dBYE\u524d\u540e\u7684\u5305\ntshark -r capture.pcap -Y &quot;rtp&quot; -T fields \\\n  -e frame.time_relative \\\n  -e rtp.timestamp \\\n  -e rtp.seq \\\n  -e ip.src \\\n  -e ip.dst \\\n  -e sip.Method \\\n  -e sip.Status-Code \\\n  | awk -F&#039;\\t&#039; &#039;\n    $6==&quot;BYE&quot; || $6==&quot;200&quot; {print &quot;== BYE at &quot;$1; found=1} \n    found &amp;&amp; $3!=&quot;&quot; {print}\n  &#039; &gt; bye_rtp_trace.txt\n\n# 2. \u7edf\u8ba1BYE\u4e4b\u540e\u5bf9\u7aef\u7ee7\u7eed\u53d1\u5305\u7684\u6570\u91cf\n# \u5148\u627e\u5230BYE\u7684frame number\nBYE_FRAME=$(tshark -r capture.pcap -Y &quot;sip.Method==BYE&quot; -T fields -e frame.number | head -1)\necho &quot;BYE at frame: $BYE_FRAME&quot;\n\n# \u7edf\u8ba1BYE\u4e4b\u540e\u5bf9\u7aef\uff08\u5047\u8bbe\u662f10.0.1.50\uff09\u53d1\u7684RTP\u5305\u6570\ntshark -r capture.pcap -Y &quot;rtp &amp;&amp; ip.src==10.0.1.50 &amp;&amp; frame.number &gt; $BYE_FRAME&quot; -c 10000 | wc -l\n\n# 3. \u9a8c\u8bc1rtpengine\u7684retransmission\n# \u770b\u770bBYE\u4e4b\u540e\u662f\u5426\u6709rtpengine\u6807\u8bb0\u4e3aretransmission\u7684\u5305\ncat \/var\/log\/rtpengine\/rtpengine.log | grep &quot;call_id=\u76ee\u6807call&quot; | grep -E &quot;(retransmission|late)&quot; | tail -20<\/code><\/pre>\n<p>\u5982\u679cBYE\u4e4b\u540e\u5bf9\u7aef\u53d1\u7684RTP\u5305\u8d85\u8fc710\u4e2a\uff0c\u800c\u4e14\u65f6\u95f4\u6233\u8fde\u7eed\uff0c\u57fa\u672c\u5c31\u662f\u7f13\u51b2\u95ee\u9898\u3002\u5982\u679c\u53ea\u6709\u96f6\u661f\u51e0\u4e2a\uff0c\u53ef\u80fd\u662f\u6b63\u5e38\u7684\u91cd\u4f20\u3002<\/p>\n<h2>\u53c2\u6570\u8bf4\u660e<\/h2>\n<p>FreeSWITCH\u4fa7\u6709\u51e0\u4e2a\u53c2\u6570\u4f1a\u5f71\u54cdRTP\u5904\u7406\u884c\u4e3a\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u53c2\u6570<\/th>\n<th>\u4f4d\u7f6e<\/th>\n<th>\u4f5c\u7528<\/th>\n<th>\u8fd9\u4e2a\u573a\u666f\u8981\u4e0d\u8981\u8c03<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>enable-100rel<\/code><\/td>\n<td>sofia profile<\/td>\n<td>\u5f00\u542fPRACK\u53ef\u9760\u6027<\/td>\n<td>\u5efa\u8bae\u5f00\uff0c\u5f3a\u5236\u5bf9\u7aef\u54cd\u5e94<\/td>\n<\/tr>\n<tr>\n<td><code>pt1min<\/code><\/td>\n<td>sofia profile<\/td>\n<td>PRACK\u6700\u5c0f\u5ef6\u8fdf(ms)<\/td>\n<td>\u9ed8\u8ba430\uff0c\u4e0d\u7528\u6539<\/td>\n<\/tr>\n<tr>\n<td><code>pt1max<\/code><\/td>\n<td>sofia profile<\/td>\n<td>PRACK\u6700\u5927\u5ef6\u8fdf(ms)<\/td>\n<td>\u53ef\u8c03\u5927\uff0c\u5f3a\u5236\u8d85\u65f6\u62c6\u6d41<\/td>\n<\/tr>\n<tr>\n<td><code>rtp-timeout-sec<\/code><\/td>\n<td>bridge\u6216uuid_media<\/td>\n<td>RTP\u8d85\u65f6\u65e0\u6d41\u91cf\u81ea\u52a8\u62c6\u6d41<\/td>\n<td><strong>\u5173\u952e\u53c2\u6570<\/strong><\/td>\n<\/tr>\n<tr>\n<td><code>rtp-holding-timeout-sec<\/code><\/td>\n<td>bridge<\/td>\n<td>\u4fdd\u6301\u6001\u8d85\u65f6<\/td>\n<td>\u53ef\u53c2\u8003<\/td>\n<\/tr>\n<tr>\n<td><code>timer_name<\/code><\/td>\n<td>sofia profile<\/td>\n<td>\u5b9a\u65f6\u5668\u7c7b\u578b<\/td>\n<td>\u5efa\u8baesoft\uff0c\u63a8\u8350\u6208\u5fb7\u5821<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>rtp-timeout-sec<\/code>\u662f\u6211\u540e\u6765\u52a0\u4e0a\u7684\uff1a<\/p>\n<pre><code class=\"lang-xml language-xml xml\">&lt;!-- sofia.conf.xml\u91cc\u7684profile\u914d\u7f6e --&gt;\n&lt;profile name=&quot;external&quot;&gt;\n\n&lt;settings&gt;\n    &lt;param name=&quot;enable-100rel&quot; value=&quot;true&quot;\/&gt;\n    &lt;param name=&quot;pt1min&quot; value=&quot;30&quot;\/&gt;\n    &lt;param name=&quot;pt1max&quot; value=&quot;300&quot;\/&gt;\n    &lt;param name=&quot;rtp-timeout-sec&quot; value=&quot;10&quot;\/&gt;\n  &lt;\/settings&gt;\n&lt;\/profile&gt;<\/code><\/pre>\n<p>\u8bbe\u7f6e<code>rtp-timeout-sec=10<\/code>\uff0c\u610f\u601d\u662f\u5982\u679c10\u79d2\u5185\u6ca1\u6536\u5230RTP\u5305\uff0c\u5c31\u8ba4\u4e3a\u901a\u8bdd\u65ad\u4e86\uff0c\u4e3b\u52a8\u62c6\u6d41\u3002\u8fd9\u4e2a\u80fd\u515c\u5e95\uff0c\u4f46\u95ee\u9898\u662f\u6b63\u5e38\u901a\u8bdd\u4e2d\u9014\u4e5f\u6709\u9759\u97f3\u65f6\u6bb5\uff0c\u9759\u97f3\u7684\u65f6\u5019\u6ca1RTP\u5305\u662f\u6b63\u5e38\u7684\u3002\u6240\u4ee5\u5355\u7eaf\u9760\u8fd9\u4e2a\u53c2\u6570\u4f1a\u8bef\u6740\u3002<\/p>\n<p>\u6211\u66f4\u63a8\u8350\u7684\u65b9\u5f0f\u662f<strong>\u5f55\u97f3\u4fa7\u505a\u65f6\u95f4\u7a97\u53e3\u8fc7\u6ee4<\/strong>\uff0c\u8fd9\u4e2a\u540e\u9762\u4f1a\u8bf4\u3002<\/p>\n<p>\u8fd8\u6709\u4e2a\u53c2\u6570\u662frtpengine\u4fa7\u7684\uff0c\u6539\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\"># rtpengine\u914d\u7f6e\u6587\u4ef6 \/etc\/rtpengine\/rtpengine.conf\n[rtpengine]\nlisten-ng = 127.0.0.1:7722\ninterface = internal\/10.0.0.1\ninterface = external\/192.168.1.100\ntimeout = 60\n\nsilent-timeout = 5\noffer-timeout = 300\n\n[logging]\nlevel = 3<\/code><\/pre>\n<p><code>silent-timeout = 5<\/code>\u662f\u9759\u9ed8\u8d85\u65f6\u3002\u8d85\u8fc75\u79d2\u6ca1\u6536\u5230\u6709\u6548\u5a92\u4f53\u5c31\u8ba4\u4e3a\u662f\u9759\u9ed8\u3002\u4f46\u8fd9\u4e2a\u53c2\u6570\u5bf9\u5e7d\u7075\u6d41\u6ca1\u7528\uff0c\u56e0\u4e3a\u5e7d\u7075\u6d41\u672c\u8eab\u5c31\u662f&#8221;\u6709\u6548\u5a92\u4f53&#8221;\uff0crtpengine\u4e0d\u4f1a\u8fc7\u6ee4\u5b83\u3002<\/p>\n<h2>\u5e38\u89c1\u5751<\/h2>\n<p>\u8bf4\u51e0\u4e2a\u6211\u8e29\u8fc7\u7684\u5751\uff1a<\/p>\n<p><strong>\u57511\uff1a\u4ee5\u4e3aFreeSWITCH\u7684BYE\u65e5\u5fd7\u5e72\u51c0\u5c31\u4ee3\u8868\u6ca1\u95ee\u9898<\/strong><\/p>\n<p>FreeSWITCH\u65e5\u5fd7\u663e\u793aBYE\u5904\u7406\u6b63\u5e38\uff0c\u4e0d\u4ee3\u8868\u5bf9\u7aef\u7f51\u5173\u4e5f\u6b63\u5e38\u3002FreeSWITCH\u53ea\u80fd\u4fdd\u8bc1\u81ea\u5df1\u8fd9\u4e00\u4fa7\u7684\u4fe1\u4ee4\u4ea4\u4e92\u6ca1\u95ee\u9898\uff0c\u4f46\u5bf9\u7aef\u7f51\u5173\u7684\u5a92\u4f53\u6808\u600e\u4e48\u5b9e\u73b0\u5b83\u7ba1\u4e0d\u4e86\u3002\u5f88\u591a\u65b0\u624b\u4f1a\u5361\u5728\u8fd9\u4e2a\u5730\u65b9\u53cd\u590d\u67e5FS\u914d\u7f6e\uff0c\u6d6a\u8d39\u65f6\u95f4\u3002<\/p>\n<p><strong>\u57512\uff1artpengine\u7684&#8221;dropped&#8221;\u5b57\u6bb5\u4e0d\u7b49\u4e8e\u5e7d\u7075\u6d41<\/strong><\/p>\n<p>rtpengine\u65e5\u5fd7\u91cc\u770b\u5230<code>dropped:no<\/code>\u4e0d\u8981\u76f4\u63a5\u8df3\u8fc7\u3002dropped\u662frtpengine\u81ea\u5df1\u4e22\u5305\u7b56\u7565\u7684\u6807\u8bb0\uff0c\u4e0d\u662f\u5bf9\u7aef\u7f13\u51b2\u7684\u6807\u8bb0\u3002\u771f\u6b63\u8981\u770b\u7684\u662f<code>seq<\/code>\u548c<code>ts<\/code>\u7684\u65f6\u95f4\u5173\u7cfb\uff0c\u4ee5\u53ca\u5b83\u4eec\u548cBYE\u65f6\u95f4\u7684\u5bf9\u6bd4\u3002<\/p>\n<p><strong>\u57513\uff1a\u5f55\u97f3\u6a21\u5757\u7684&#8221;\u901a\u8bdd\u7ed3\u675f\u65f6\u95f4&#8221;\u53d6\u9519\u4e86\u65f6\u95f4\u70b9<\/strong><\/p>\n<p>\u6709\u4e9b\u5f55\u97f3\u6a21\u5757\u8bb0\u5f55&#8221;\u901a\u8bdd\u7ed3\u675f\u65f6\u95f4&#8221;\u7528\u7684\u662f\u5f55\u97f3\u505c\u6b62\u7684\u65f6\u95f4\uff0c\u800c\u4e0d\u662fFreeSWITCH\u6536\u5230BYE\u7684\u65f6\u95f4\u3002\u8fd9\u4e24\u4e2a\u65f6\u95f4\u53ef\u80fd\u5dee\u597d\u51e0\u79d2\u3002\u5e94\u8be5\u4ee5\u540e\u8005\u4e3a\u51c6\u3002<\/p>\n<p><strong>\u57514\uff1a\u8fd0\u8425\u5546\u8bf4&#8221;\u7f51\u5173\u6ca1\u95ee\u9898&#8221;\u522b\u8f7b\u6613\u4fe1<\/strong><\/p>\n<p>\u8fd0\u8425\u5546\u7684\u8fd0\u7ef4\u7ecf\u5e38\u53ea\u770b\u4e0a\u5c42\u65e5\u5fd7\uff0c\u8bf4&#8221;BYE\u5904\u7406\u4e86&#8221;\u5c31\u8ba4\u4e3a\u6ca1\u95ee\u9898\u3002\u4f46\u4ed6\u4eec\u4e0d\u4e00\u5b9a\u80fd\u770b\u5230\u7f51\u7edc\u6808\u5c42\u9762\u7684\u7f13\u51b2\u65e5\u5fd7\u3002\u4f60\u53ef\u4ee5\u8ba9\u4ed6\u4eec\u6293\u5bf9\u7aef\u4fa7\u7684RTP\u5305\uff0c\u6216\u8005\u8ba9\u4ed6\u4eec\u67e5\u7f51\u5173\u7684\u53d1\u9001\u961f\u5217\u957f\u5ea6\u3002<\/p>\n<p><strong>\u57515\uff1a\u7559\u7684\u7f13\u51b2\u4f59\u91cf\u592a\u5c0f<\/strong><\/p>\n<p>\u6211\u7b2c\u4e00\u6b21\u5b9e\u73b0\u5f55\u97f3\u8fc7\u6ee4\u65f6\uff0c\u7559\u4e862\u79d2\u4f59\u91cf\u3002\u7ed3\u679c\u53d1\u73b0\u8fd8\u67095%\u7684\u5e7d\u7075\u6d41\u6ca1\u8fc7\u6ee4\u6389\u3002\u5927\u90e8\u5206\u8fd0\u8425\u5546\u7f51\u5173\u7f13\u51b2\u57286\u79d2\u4ee5\u5185\uff0c\u4f46\u6709\u5c11\u6570\u80fd\u52308-9\u79d2\u3002\u75595\u79d2\u6bd4\u8f83\u7a33\u59a5\u3002<\/p>\n<h2>\u89e3\u51b3\u65b9\u6848<\/h2>\n<p><strong>\u4f60\u6539\u4e0d\u4e86\u8fd0\u8425\u5546\u7f51\u5173<\/strong>\u3002\u4f46\u6709\u51e0\u4e2a\u601d\u8def\uff1a<\/p>\n<h3>\u65b9\u68481\uff1a\u5f55\u97f3\u4fa7\u505a\u65f6\u95f4\u7a97\u53e3\u8fc7\u6ee4\uff08\u63a8\u8350\uff09<\/h3>\n<p>\u6700\u5b9e\u7528\u7684\u505a\u6cd5\u3002\u5f55\u97f3\u8fdb\u7a0b\u7ef4\u62a4\u4e00\u4e2a&#8221;\u901a\u8bdd\u7ed3\u675f\u65f6\u95f4&#8221;\uff0c\u8d85\u8fc7N\u79d2\u7684\u5305\u76f4\u63a5\u4e22\u5f03\uff1a<\/p>\n<pre><code class=\"lang-python language-python python\"># \u4f2a\u4ee3\u7801\uff0c\u5f55\u97f3\u5904\u7406\u903b\u8f91\nimport logging\nfrom datetime import datetime\n\nclass RTPRecorder:\n    def __init__(self, call_id, bye_time, buffer_seconds=5):\n        self.call_id = call_id\n        self.bye_time = bye_time\n        self.cutoff_time = bye_time + buffer_seconds  # \u75595\u79d2\u7f13\u51b2\u4f59\u91cf\n        self.logger = logging.getLogger(f&quot;recorder.{call_id}&quot;)\n        self.packet_count = 0\n        self.dropped_count = 0\n\n    def process_packet(self, pkt):\n        pkt_time = pkt.timestamp\n\n        # \u901a\u8bdd\u7ed3\u675f\u524d5\u79d2\u5185\u7684\u5305\uff0c\u6b63\u5e38\u5904\u7406\n        if pkt_time &lt; self.bye_time - 5:\n            self.dropped_count += 1\n            self.logger.debug(f&quot;Packet too old, dropping: {pkt_time}&quot;)\n            return\n\n        # \u8d85\u8fc7\u901a\u8bdd\u7ed3\u675f+\u7f13\u51b2\u4f59\u91cf\u7684\uff0c\u76f4\u63a5\u6254\n        if pkt_time &gt; self.cutoff_time:\n            self.dropped_count += 1\n            if self.packet_count &gt; 0:  # \u53ea\u8bb0\u5f55\u6709\u610f\u4e49\u7684\u4e22\u5f03\n                self.logger.warning(\n                    f&quot;Stale RTP after BYE: {pkt_time - self.bye_time:.1f}s, &quot;\n                    f&quot;dropped={self.dropped_count}&quot;\n                )\n            return\n\n        self.packet_count += 1\n        self.write_to_file(pkt)<\/code><\/pre>\n<p>5\u79d2\u7684\u4f59\u91cf\u662f\u7ecf\u9a8c\u503c\u3002\u5927\u90e8\u5206\u8fd0\u8425\u5546\u7f51\u5173\u7684\u7f13\u51b2\u4e0d\u4f1a\u8d85\u8fc7\u8fd9\u4e2a\u3002\u4f46\u5982\u679c\u4f60\u53d1\u73b0\u4f60\u4eec\u5408\u4f5c\u7684\u8fd0\u8425\u5546\u7f13\u51b2\u7279\u522b\u5927\uff0c\u53ef\u4ee5\u9002\u5f53\u8c03\u5927\u3002<\/p>\n<h3>\u65b9\u68482\uff1a\u548c\u8fd0\u8425\u5546\u534f\u8c03<\/h3>\n<p>\u5982\u679c\u5dee\u5f97\u592a\u591a\uff08\u8d85\u8fc710\u79d2\uff09\uff0c\u5f97\u627e\u8fd0\u8425\u5546\u8c03\u6574\u7f51\u5173\u914d\u7f6e\u3002\u7f51\u5173\u4fa7\u4e00\u822c\u6709\u8fd9\u4e9b\u53c2\u6570\u53ef\u4ee5\u8c03\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u53c2\u6570<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u5178\u578b\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>rtp-buffer-flush<\/code><\/td>\n<td>\u6536\u5230BYE\u540e\u662f\u5426\u7acb\u5373\u6e05\u7a7a\u7f13\u51b2<\/td>\n<td>disable\/enable<\/td>\n<\/tr>\n<tr>\n<td><code>rtp-buffer-size<\/code><\/td>\n<td>\u53d1\u9001\u7f13\u51b2\u5927\u5c0f<\/td>\n<td>20-100ms<\/td>\n<\/tr>\n<tr>\n<td><code>silence-timeout<\/code><\/td>\n<td>\u9759\u9ed8\u8d85\u65f6\u540e\u505c\u6b62\u53d1\u9001<\/td>\n<td>500-2000ms<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0d\u8fc7\u8bf4\u5b9e\u8bdd\uff0c\u8fd0\u8425\u5546\u4e00\u822c\u4e0d\u613f\u610f\u52a8\u8fd9\u4e2a\u3002\u6362\u6210\u56fd\u5185\u5382\u5546\u7684\u7f51\u5173\uff0c\u6216\u8005\u8d70\u4e13\u7ebf\u80fd\u597d\u4e00\u70b9\u3002<\/p>\n<h3>\u65b9\u68483\uff1aFreeSWITCH\u4fa7\u52a0RTP\u8d85\u65f6\u68c0\u6d4b<\/h3>\n<p>FreeSWITCH\u6709\u4e2a\u53c2\u6570\u53ef\u4ee5\u5f3a\u5236\u68c0\u6d4b\u5bf9\u7aef\u662f\u5426\u8fd8\u6d3b\u7740\uff1a<\/p>\n<pre><code class=\"lang-xml language-xml xml\">&lt;!-- \u5f00\u5173\u914d\u7f6e --&gt;\n&lt;param name=&quot;enable-100rel&quot; value=&quot;true&quot;\/&gt;\n&lt;param name=&quot;pt1min&quot; value=&quot;30&quot;\/&gt;\n&lt;param name=&quot;pt1max&quot; value=&quot;300&quot;\/&gt;<\/code><\/pre>\n<p><code>pt1max<\/code>\u662fPrack\u6700\u5927\u5ef6\u8fdf\u3002\u5982\u679c\u5bf9\u7aef\u5728\u89c4\u5b9a\u65f6\u95f4\u5185\u4e0d\u54cd\u5e94\uff0cFreeSWITCH\u4f1a\u4e3b\u52a8\u62c6\u6d41\u3002<\/p>\n<p>\u4e0d\u8fc7\u8fd9\u4e2a\u6cbb\u6807\u4e0d\u6cbb\u672c\u3002\u5e7d\u7075\u6d41\u7684\u6e90\u5934\u662f\u5bf9\u7aef\u7f13\u51b2\uff0c\u4f60\u4e0d\u4ece\u5f55\u97f3\u4fa7\u505a\u8fc7\u6ee4\uff0c\u6c38\u8fdc\u4f1a\u6709\u6f0f\u7f51\u4e4b\u9c7c\u3002<\/p>\n<h2>\u4e0a\u7ebf\u540e\u8bc4\u4f30<\/h2>\n<p>\u6211\u4eec\u540e\u6765\u7528\u7684\u662f\u65b9\u68481\uff0c\u4e0a\u7ebf\u8dd1\u4e86\u4e00\u5468\uff0c\u6570\u636e\u660e\u663e\u597d\u8f6c\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6307\u6807<\/th>\n<th>\u4e0a\u7ebf\u524d<\/th>\n<th>\u4e0a\u7ebf\u540e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5f02\u5e38\u5f55\u97f3\u5360\u6bd4<\/td>\n<td>3.0%<\/td>\n<td>0.12%<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u5927\u5dee\u503c<\/td>\n<td>11\u520623\u79d2<\/td>\n<td>8\u79d2<\/td>\n<\/tr>\n<tr>\n<td>\u5e73\u5747\u5dee\u503c<\/td>\n<td>8.7\u79d2<\/td>\n<td>1.2\u79d2<\/td>\n<\/tr>\n<tr>\n<td>\u8d28\u68c0\u8bef\u5224\u7387<\/td>\n<td>2.8%<\/td>\n<td>0.09%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5269\u4e0b\u76840.12%\u662f\u4ec0\u4e48\u60c5\u51b5\uff1f\u6709\u4e24\u4e2a\u539f\u56e0\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u5bf9\u7aef\u7f51\u5173\u7f13\u51b2\u8d85\u4e865\u79d2<\/strong>\u3002\u6709\u4e2a\u522b\u901a\u8bdd\u7684\u5e7d\u7075\u6d41\u6301\u7eed\u4e867-8\u79d2\uff0c\u6211\u4eec\u7559\u7684\u4f59\u91cf\u4e0d\u591f\u3002\u4e0d\u8fc7\u5360\u6bd4\u5f88\u4f4e\uff0c\u61d2\u5f97\u5355\u72ec\u5904\u7406\u4e86\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u65f6\u95f4\u540c\u6b65\u95ee\u9898<\/strong>\u3002\u5f55\u97f3\u670d\u52a1\u5668\u548c\u5bf9\u7aef\u7f51\u5173\u7684NTP\u65f6\u95f4\u6709\u5fae\u5c0f\u504f\u5dee\uff0c\u5bfc\u81f4&#8221;\u901a\u8bdd\u7ed3\u675f\u65f6\u95f4&#8221;\u7684\u8bb0\u5f55\u672c\u8eab\u5c31\u6709\u8bef\u5dee\u3002\u8fd9\u4e2a\u9700\u8981\u627e\u8fd0\u8425\u5546\u4e00\u8d77\u5bf9\u65f6\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u9a8c\u8bc1\u547d\u4ee4\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\"># \u7edf\u8ba1\u5f02\u5e38\u5f55\u97f3\uff08\u5f55\u97f3\u65f6\u957f - \u901a\u8bdd\u65f6\u957f &gt; 10\u79d2\u7684\uff09\npsql -d freeswitch_cdr -c &quot;&quot;&quot;\nSELECT \n  call_id,\n  actual_duration,\n  recording_duration,\n  recording_duration - actual_duration as diff\nFROM call_records \nWHERE recording_duration - actual_duration &gt; 10\nORDER BY diff DESC\nLIMIT 20;\n&quot;&quot;&quot;\n\n# \u5bf9\u6bd4\u4e0a\u7ebf\u524d\u540e\n# \u4e0a\u7ebf\u524d\uff1a386\u6761\u5f02\u5e38\n# \u4e0a\u7ebf\u540e\uff1a15\u6761\u5f02\u5e38\uff08\u90fd\u662f\u7f13\u51b2\u8d855\u79d2\u7684\uff09<\/code><\/pre>\n<p>\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u8bef\u5dee\u5e94\u8be5\u57285\u79d2\u4ee5\u5185\uff08\u5f55\u97f3\u542f\u52a8\/\u505c\u6b62\u7684\u6b63\u5e38\u6296\u52a8\uff09\u3002\u5982\u679c\u8d85\u8fc710\u79d2\uff0c\u8bf4\u660e\u8fd8\u6709\u6f0f\u7f51\u7684\u5e7d\u7075\u6d41\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<ol>\n<li>\n<p><strong>BYE\u6b63\u5e38\u4e0d\u4ee3\u8868RTP\u7acb\u5373\u505c<\/strong>\u3002SIP\u7684BYE\u662f\u4fe1\u4ee4\u5c42\u7684\uff0c\u5bf9\u7aef\u7f51\u5173\u6536\u5230BYE\u540e\uff0c\u5b83\u7684\u5a92\u4f53\u7f13\u51b2\u53ef\u80fd\u8fd8\u5728\u5f80\u5916\u5410\u5305\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6293\u5305\u662f\u91d1\u6807\u51c6<\/strong>\u3002\u522b\u53ea\u770b\u65e5\u5fd7\uff0c\u628aRTP\u6d41\u7684\u65f6\u95f4\u8f74\u62c9\u51fa\u6765\uff0c\u95ee\u9898\u4e00\u76ee\u4e86\u7136\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5f55\u97f3\u4fa7\u5fc5\u987b\u505a\u65f6\u95f4\u7a97\u53e3\u4fdd\u62a4<\/strong>\u3002\u522b\u5047\u8bbe\u5bf9\u7aef\u4f1a\u4e56\u4e56\u542c\u8bdd\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd9\u4e2a\u9505\u4e0d\u8be5FreeSWITCH\u80cc<\/strong>\u3002\u5927\u591a\u6570\u5de5\u7a0b\u5e08\u7b2c\u4e00\u53cd\u5e94\u662f&#8221;FS\u7684BYE\u6ca1\u5904\u7406\u597d&#8221;\uff0c\u5176\u5b9eFS\u5f88\u51a4\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7559\u8db3\u591f\u7684\u7f13\u51b2\u4f59\u91cf<\/strong>\u30025\u79d2\u662f\u4e2a\u4e0d\u9519\u7684\u8d77\u70b9\uff0c\u4f46\u5982\u679c\u4f60\u53d1\u73b0\u8fd8\u6709\u6f0f\u7f51\u4e4b\u9c7c\uff0c\u53ef\u4ee5\u9002\u5f53\u8c03\u5927\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u5982\u679c\u4f60\u4eec\u4e5f\u6709\u7c7b\u4f3c\u7684\u901a\u8bdd\u8d28\u68c0\u95ee\u9898\uff0c\u5148\u6293\u4e2a\u5305\u770b\u770b\uff0c\u662f\u4e0d\u662f\u4e5f\u662f\u5bf9\u7aef\u7f51\u5173\u5728&#8221;\u653e\u4f59\u97f3&#8221;\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u901a\u8bdd3\u5206\u949f\uff0c\u5f55\u97f3\u6587\u4ef610\u5206\u949f\u3002\u6293\u5305\u4e00\u770b\uff0cBYE\u90fd\u4e92\u53d1\u5b8c\u4e86\uff0cRTP\u5305\u8fd8\u5728\u5f80FreeSWITCH\u8dd1\u3002\u95ee\u9898\u4e0d\u5728FreeSWITCH\uff0c\u5728\u8fd0\u8425\u5546\u7f51\u5173\u7684\u53d1\u9001\u7f13\u51b2\u3002\u76f4\u63a5\u8bf4\u600e\u4e48\u5b9a\u4f4d\u548c\u9a8c\u8bc1\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[13,425,15,301,423],"class_list":["post-741","post","type-post","status-publish","format-standard","hentry","category-freeswitch","tag-freeswitch","tag-rtp","tag-sip","tag-301","tag-423"],"views":4,"_links":{"self":[{"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/posts\/741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=741"}],"version-history":[{"count":1,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/posts\/741\/revisions"}],"predecessor-version":[{"id":744,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/posts\/741\/revisions\/744"}],"wp:attachment":[{"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}