{"id":61027,"date":"2026-01-16T21:57:49","date_gmt":"2026-01-16T13:57:49","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/61027.html"},"modified":"2026-01-16T21:57:49","modified_gmt":"2026-01-16T13:57:49","slug":"%e5%9f%ba%e4%ba%8epjsip%e7%9a%84sip%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%af%b9%e6%8e%a5%e5%ae%9e%e8%b7%b5%ef%bc%9a%e4%bc%81%e4%b8%9a%e7%ba%a7%e9%80%9a%e4%bf%a1%e5%ba%94%e7%94%a8%e6%a1%88%e4%be%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/61027.html","title":{"rendered":"\u57fa\u4e8epjsip\u7684SIP\u670d\u52a1\u5668\u5bf9\u63a5\u5b9e\u8df5\uff1a\u4f01\u4e1a\u7ea7\u901a\u4fe1\u5e94\u7528\u6848\u4f8b"},"content":{"rendered":"<h2>\n \u6df1\u5165\u5b9e\u6218&#xff1a;\u57fa\u4e8e pjsip \u7684\u4f01\u4e1a\u7ea7 SIP \u901a\u4fe1\u7cfb\u7edf\u6784\u5efa\u4e4b\u8def<br \/>\n<\/h2>\n<p>\n \u5728\u4e00\u5bb6\u91d1\u878d\u79d1\u6280\u516c\u53f8\u7684\u547c\u53eb\u4e2d\u5fc3\u9879\u76ee\u4e2d&#xff0c;\u6211\u4eec\u9762\u4e34\u4e00\u4e2a\u5178\u578b\u7684\u6311\u6218&#xff1a;\u5982\u4f55\u8ba9\u6570\u767e\u540d\u5750\u5e2d\u7a33\u5b9a\u3001\u4f4e\u5ef6\u8fdf\u5730\u63a5\u5165\u540e\u7aef FreeSWITCH \u96c6\u7fa4&#xff0c;\u5b9e\u73b0\u9ad8\u53ef\u7528\u8bed\u97f3\u901a\u4fe1&#xff1f;\u5e02\u9762\u4e0a\u7684\u8f6f\u7535\u8bdd\u65b9\u6848\u8981\u4e48\u95ed\u6e90\u6602\u8d35&#xff0c;\u8981\u4e48\u6027\u80fd\u582a\u5fe7\u3002\u6700\u7ec8&#xff0c;\u6211\u4eec\u9009\u62e9\u4e86<\/p>\n<p>  pjsip<\/p>\n<p> \u2014\u2014 \u8fd9\u4e2a\u88ab Asterisk \u548c Linphone \u80cc\u4e66\u7684\u5f00\u6e90 SIP \u534f\u8bae\u6808\u3002\n<\/p>\n<p>\n \u4f46\u771f\u6b63\u4e0a\u624b\u540e\u624d\u53d1\u73b0&#xff0c;\u4ece\u201c\u80fd\u8dd1\u901a\u201d\u5230\u201c\u53ef\u4e0a\u7ebf\u201d&#xff0c;\u4e2d\u95f4\u9694\u7740\u65e0\u6570\u5751\u3002\u4eca\u5929&#xff0c;\u6211\u5c31\u4ee5\u8fd9\u4e2a\u771f\u5b9e\u9879\u76ee\u4e3a\u80cc\u666f&#xff0c;\u5e26\u4f60\u8d70\u4e00\u904d\u57fa\u4e8e pjsip \u5bf9\u63a5 SIP \u670d\u52a1\u5668\u7684\u5168\u6d41\u7a0b&#xff0c;\u8bb2\u6e05\u695a\u90a3\u4e9b\u6587\u6863\u91cc\u4e0d\u4f1a\u5199\u3001\u4f46\u4f60\u4e00\u5b9a\u4f1a\u9047\u5230\u7684\u5173\u952e\u7ec6\u8282\u3002\n<\/p>\n<hr \/>\n<h3>\n \u4e3a\u4ec0\u4e48\u662f pjsip&#xff1f;<br \/>\n<\/h3>\n<p>\n \u5728\u9009\u578b\u9636\u6bb5&#xff0c;\u6211\u4eec\u4e5f\u8bc4\u4f30\u8fc7\u5176\u4ed6 SIP \u5e93&#xff0c;\u6bd4\u5982 eXosip &#043; oSIP \u7ec4\u5408\u3001reSIProcate \u7b49\u3002\u4f46\u5b83\u4eec\u8981\u4e48\u9700\u8981\u81ea\u5df1\u62fc\u534f\u8bae\u5c42\u4e0e\u5a92\u4f53\u6d41&#xff0c;\u5f00\u53d1\u6210\u672c\u9ad8&#xff1b;\u8981\u4e48\u5bf9\u5d4c\u5165\u5f0f\u652f\u6301\u5f31&#xff0c;\u96be\u4ee5\u8de8\u5e73\u53f0\u90e8\u7f72\u3002\n<\/p>\n<p>\n \u800c pjsip \u51e0\u4e4e\u662f\u4e00\u7ad9\u5f0f\u89e3\u51b3&#xff1a;\n<\/p>\n<ul>\n<li>\n  \u5b8c\u6574\u5b9e\u73b0 SIP\/SDP\/RTP\/RTCP\n <\/li>\n<li>\n  \u5185\u5efa\u97f3\u9891\u7f16\u89e3\u7801&#xff08;G.711, OPUS&#xff09;\u3001\u56de\u58f0\u6d88\u9664&#xff08;AEC&#xff09;\n <\/li>\n<li>\n  \u652f\u6301 STUN\/TURN\/ICE NAT \u7a7f\u900f\n <\/li>\n<li>\n  \u63d0\u4f9b\u9ad8\u5c42 API<\/p>\n<p>   pjsua<\/p>\n<p>  &#xff0c;\u51e0\u884c\u4ee3\u7801\u5c31\u80fd\u62e8\u6253\u7535\u8bdd\n <\/li>\n<li>\n  C \u8bed\u8a00\u7f16\u5199&#xff0c;\u53ef\u5728 ARM \u5d4c\u5165\u5f0f\u8bbe\u5907\u8fd0\u884c\n <\/li>\n<\/ul>\n<p>\n \u66f4\u91cd\u8981\u7684\u662f&#xff0c;\u5b83\u8db3\u591f\u8f7b\u91cf\u3002\u5b9e\u6d4b\u5355\u7ebf\u7a0b\u4e0b\u5904\u7406\u4e0a\u5343\u5e76\u53d1\u4f1a\u8bdd\u65f6&#xff0c;CPU \u5360\u7528\u4ecd\u63a7\u5236\u5728\u5408\u7406\u8303\u56f4\u2014\u2014\u8fd9\u5bf9\u8d44\u6e90\u654f\u611f\u7684\u4f01\u4e1a\u7ec8\u7aef\u6765\u8bf4\u81f3\u5173\u91cd\u8981\u3002\n<\/p>\n<hr \/>\n<h3>\n \u521d\u59cb\u5316\u4e0d\u662f\u201c\u7167\u6284\u6a21\u677f\u201d\u90a3\u4e48\u7b80\u5355<br \/>\n<\/h3>\n<p>\n \u65b0\u624b\u6700\u5bb9\u6613\u72af\u7684\u9519\u8bef&#xff0c;\u5c31\u662f\u628a\u5b98\u7f51\u793a\u4f8b\u4ee3\u7801\u590d\u5236\u8fc7\u6765\u76f4\u63a5\u8fd0\u884c&#xff0c;\u7ed3\u679c\u6ce8\u518c\u5931\u8d25\u3001\u6536\u4e0d\u5230\u6765\u7535\u3001\u6ca1\u58f0\u97f3\u2026\u2026\u95ee\u9898\u51fa\u5728\u54ea&#xff1f;\u5f80\u5f80\u5c31\u5728\u521d\u59cb\u5316\u8fd9\u4e00\u6b65\u3002\n<\/p>\n<p>\n \u6765\u770b\u4e00\u6bb5\u770b\u4f3c\u6807\u51c6\u7684\u521d\u59cb\u5316\u6d41\u7a0b&#xff1a;\n<\/p>\n<p>pjsua_config cfg;<br \/>\npjsua_logging_config log_cfg;<br \/>\npjsua_media_config media_cfg;<\/p>\n<p>pjsua_config_default(&amp;cfg);<br \/>\npjsua_logging_config_default(&amp;log_cfg);<br \/>\npjsua_media_config_default(&amp;media_cfg);<\/p>\n<p>log_cfg.level &#061; 4;  \/\/ \u8c03\u8bd5\u65e5\u5fd7<br \/>\nmedia_cfg.clock_rate &#061; 16000;<\/p>\n<p>\n \u8fd9\u6bb5\u4ee3\u7801\u672c\u8eab\u6ca1\u9519&#xff0c;\u4f46\u5728\u5b9e\u9645\u73af\u5883\u4e2d\u5fc5\u987b\u6ce8\u610f\u51e0\u4e2a\u5173\u952e\u70b9&#xff1a;\n<\/p>\n<h4>\n 1. \u65e5\u5fd7\u7ea7\u522b\u522b\u8bbe\u592a\u9ad8<br \/>\n<\/h4>\n<p>\n \u867d\u7136\u8c03\u8bd5\u65f6\u8bbe\u6210 level&#061;4 \u65b9\u4fbf\u770b\u4fe1\u4ee4\u4ea4\u4e92&#xff0c;\u4f46\u4e0a\u7ebf\u540e\u5efa\u8bae\u964d\u5230 3 \u6216\u4ee5\u4e0b\u3002\u5426\u5219\u65e5\u5fd7\u6587\u4ef6\u66b4\u6da8\u4e0d\u8bf4&#xff0c;\u9891\u7e41\u78c1\u76d8\u5199\u5165\u8fd8\u4f1a\u5f71\u54cd\u5b9e\u65f6\u6027\u3002\u66f4\u806a\u660e\u7684\u505a\u6cd5\u662f\u8fd0\u884c\u65f6\u52a8\u6001\u8c03\u6574&#xff1a;\n<\/p>\n<p>pjsua_set_log_level(3);  \/\/ \u52a8\u6001\u964d\u7ea7<\/p>\n<h4>\n 2. \u91c7\u6837\u7387\u8981\u5339\u914d\u670d\u52a1\u5668<br \/>\n<\/h4>\n<p>\n \u8fd9\u91cc\u8bbe\u7f6e<\/p>\n<p>  clock_rate &#061; 16000<\/p>\n<p> &#xff0c;\u610f\u5473\u7740\u4f7f\u7528\u7a84\u5e26\u8bed\u97f3&#xff08;\u9002\u5408 G.729\u3001OPUS \u7a84\u5e26&#xff09;\u3002\u5982\u679c\u4f60\u7684 FreeSWITCH \u9ed8\u8ba4\u7528 PCMU\/8000&#xff08;\u5373 G.711&#xff09;&#xff0c;\u90a3\u6ca1\u95ee\u9898&#xff1b;\u4f46\u5982\u679c\u60f3\u7528\u5bbd\u5e26\u8bed\u97f3&#xff08;\u5982 OPUS &#064; 48kHz&#xff09;&#xff0c;\u5c31\u5f97\u7edf\u4e00\u914d\u7f6e\u4e24\u7aef\u3002\n<\/p>\n<p>\n  \u2705 \u5b9e\u8df5\u5efa\u8bae&#xff1a;\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u534f\u5546\u7684\u7f16\u89e3\u7801\u683c\u5f0f\u5fc5\u987b\u4e00\u81f4&#xff0c;\u5426\u5219 SDP \u534f\u5546\u5931\u8d25&#xff0c;\u901a\u8bdd\u65e0\u6cd5\u5efa\u7acb\u3002\n <\/p>\n<h4>\n 3. \u4f20\u8f93\u5c42\u9009\u62e9\u51b3\u5b9a\u7a33\u5b9a\u6027<br \/>\n<\/h4>\n<p>\n \u5927\u591a\u6570\u4f8b\u5b50\u53ea\u521b\u5efa UDP \u4f20\u8f93&#xff1a;\n<\/p>\n<p>pjsua_transport_create(PJSIP_TRANSPORT_UDP, &amp;udp_cfg, NULL);<\/p>\n<p>\n \u4f46\u5728\u590d\u6742\u7f51\u7edc\u73af\u5883\u4e0b&#xff0c;UDP \u6781\u6613\u56e0 NAT \u8d85\u65f6\u65ad\u8fde\u3002\u6211\u4eec\u7684\u89e3\u51b3\u65b9\u6848\u662f<\/p>\n<p>  \u4f18\u5148\u4f7f\u7528 TCP<\/p>\n<p> &#xff1a;\n<\/p>\n<p>status &#061; pjsua_transport_create(PJSIP_TRANSPORT_TCP, &amp;tcp_cfg, NULL);<\/p>\n<p>\n TCP \u4e0d\u4ec5\u80fd\u4fdd\u6301\u957f\u8fde\u63a5&#xff0c;\u8fd8\u80fd\u51cf\u5c11 keep-alive \u5305\u6570\u91cf&#xff0c;\u964d\u4f4e\u4fe1\u4ee4\u8d1f\u8f7d\u3002\u6d4b\u8bd5\u663e\u793a&#xff0c;\u5728\u4f01\u4e1a\u9632\u706b\u5899\u7b56\u7565\u8f83\u4e25\u7684\u573a\u666f\u4e0b&#xff0c;TCP \u6ce8\u518c\u6210\u529f\u7387\u63a5\u8fd1 100%&#xff0c;\u800c UDP \u53ea\u6709\u7ea6 70%\u3002\n<\/p>\n<hr \/>\n<h3>\n \u6ce8\u518c\u673a\u5236&#xff1a;\u4e0d\u53ea\u662f\u53d1\u4e2a REGISTER \u5c31\u5b8c\u4e8b<br \/>\n<\/h3>\n<p>\n SIP \u6ce8\u518c\u7684\u672c\u8d28&#xff0c;\u662f\u544a\u8bc9\u670d\u52a1\u5668&#xff1a;\u201c\u6211\u73b0\u5728\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u5730\u5740\u8054\u7cfb\u5230\u201d\u3002\u4f46\u5f88\u591a\u5ba2\u6237\u7aef\u5ffd\u7565\u4e86\u4e24\u4e2a\u81f4\u547d\u7ec6\u8282&#xff1a;\n<\/p>\n<h4>\n Contact \u5934\u57df\u7684\u771f\u5b9e IP \u5fc5\u987b\u6b63\u786e<br \/>\n<\/h4>\n<p>\n \u5047\u8bbe\u4f60\u7684\u5ba2\u6237\u7aef\u4f4d\u4e8e\u516c\u53f8\u5185\u7f51&#xff0c;\u79c1\u7f51 IP \u662f<\/p>\n<p>  192.168.1.50<\/p>\n<p> &#xff0c;\u9ed8\u8ba4\u60c5\u51b5\u4e0b pjsip \u4f1a\u5728 Contact \u5934\u4e2d\u586b\u5165\u8fd9\u4e2a\u5730\u5740&#xff1a;\n<\/p>\n<p>Contact: &lt;sip:1001&#064;192.168.1.50:5060&gt;<\/p>\n<p>\n FreeSWITCH \u6536\u5230\u540e&#xff0c;\u5c06\u6765\u7535 RTP \u5168\u90e8\u53d1\u5f80<\/p>\n<p>  192.168.1.50<\/p>\n<p> \u2014\u2014 \u663e\u7136\u516c\u7f51\u4e0d\u53ef\u8fbe\u3002\n<\/p>\n<h5>\n \u89e3\u6cd5\u4e00&#xff1a;\u542f\u7528 STUN \u81ea\u52a8\u53d1\u73b0\u516c\u7f51\u5730\u5740<br \/>\n<\/h5>\n<p>pjsua_var.stun_srv &#061; pj_str(&#034;stun.l.google.com:19302&#034;);<\/p>\n<p>\n \u521d\u59cb\u5316\u524d\u8bbe\u7f6e STUN \u670d\u52a1\u5668&#xff0c;pjsip \u4f1a\u5728\u542f\u52a8\u65f6\u81ea\u52a8\u63a2\u6d4b\u516c\u7f51\u6620\u5c04\u5730\u5740&#xff0c;\u5e76\u66f4\u65b0 Contact \u5934\u3002\n<\/p>\n<h5>\n \u89e3\u6cd5\u4e8c&#xff1a;\u670d\u52a1\u7aef\u5f3a\u5236\u6307\u5b9a external_ip&#xff08;FreeSWITCH&#xff09;<br \/>\n<\/h5>\n<p>\n \u5728<\/p>\n<p>  sip_profiles\/internal.xml<\/p>\n<p> \u4e2d\u6dfb\u52a0&#xff1a;\n<\/p>\n<p>&lt;param name&#061;&#034;ext-rtp-ip&#034; value&#061;&#034;auto-nat&#034;\/&gt;<br \/>\n&lt;param name&#061;&#034;ext-sip-ip&#034; value&#061;&#034;auto-nat&#034;\/&gt;<\/p>\n<p>\n \u8fd9\u6837\u5373\u4f7f\u5ba2\u6237\u7aef\u4e0a\u62a5\u7684\u662f\u79c1\u7f51\u5730\u5740&#xff0c;FreeSWITCH \u4e5f\u4f1a\u6839\u636e\u5176\u8bf7\u6c42\u6765\u6e90 IP \u66ff\u6362\u4e3a\u516c\u7f51\u5730\u5740\u3002\n<\/p>\n<p>\n  \u26a0\ufe0f \u6ce8\u610f&#xff1a;\u82e5\u4f7f\u7528\u5bf9\u79f0\u578b NAT&#xff08;Symmetric NAT&#xff09;&#xff0c;STUN \u4e5f\u65e0\u6cd5\u7a7f\u900f&#xff0c;\u5fc5\u987b\u914d\u5408 TURN \u4e2d\u7ee7\u3002\n <\/p>\n<hr \/>\n<h3>\n \u547c\u53eb\u5efa\u7acb&#xff1a;\u7406\u89e3\u72b6\u6001\u673a\u6bd4\u80cc\u6d41\u7a0b\u56fe\u66f4\u91cd\u8981<br \/>\n<\/h3>\n<p>\n INVITE \u6d41\u7a0b\u6559\u79d1\u4e66\u822c\u6e05\u6670&#xff1a;\n<\/p>\n<p>INVITE \u2192 100 Trying \u2192 180 Ringing \u2192 200 OK \u2192 ACK<\/p>\n<p>\n \u4f46\u771f\u6b63\u5199\u4ee3\u7801\u65f6\u4f60\u4f1a\u53d1\u73b0&#xff0c;\u56de\u8c03\u51fd\u6570\u624d\u662f\u6838\u5fc3\u3002\n<\/p>\n<p>\n pjsip \u63d0\u4f9b\u4e86<\/p>\n<p>  on_call_state()<\/p>\n<p> \u56de\u8c03\u63a5\u53e3&#xff0c;\u6240\u6709\u72b6\u6001\u53d8\u5316\u90fd\u901a\u8fc7\u5b83\u901a\u77e5&#xff1a;\n<\/p>\n<p>void on_call_state(pjsua_call_id call_id, pjsip_event *e) {<br \/>\n    pjsua_call_info ci;<br \/>\n    pjsua_call_get_info(call_id, &amp;ci);<\/p>\n<p>    switch (ci.state) {<br \/>\n        case PJSIP_INV_STATE_CALLING:<br \/>\n            update_ui(&#034;\u62e8\u53f7\u4e2d&#8230;&#034;);<br \/>\n            break;<br \/>\n        case PJSIP_INV_STATE_INCOMING:<br \/>\n            play_ringtone();<br \/>\n            popup_customer_info(ci.remote_info);<br \/>\n            break;<br \/>\n        case PJSIP_INV_STATE_EARLY:<br \/>\n            if (ci.last_status &#061;&#061; 180)<br \/>\n                update_ui(&#034;\u5bf9\u65b9\u6b63\u5728\u54cd\u94c3&#034;);<br \/>\n            break;<br \/>\n        case PJSIP_INV_STATE_CONFIRMED:<br \/>\n            start_echo_cancellation();  \/\/ \u63a5\u901a\u540e\u5f00\u542f AEC<br \/>\n            update_ui(&#034;\u5df2\u63a5\u901a&#034;);<br \/>\n            break;<br \/>\n        case PJSIP_INV_STATE_DISCONNECTED:<br \/>\n            stop_rtp_stream();<br \/>\n            upload_cdr(call_id, ci.duration);<br \/>\n            break;<br \/>\n    }<br \/>\n}<\/p>\n<p>  \u5173\u952e\u6d1e\u5bdf<\/p>\n<p> &#xff1a;\u4e0d\u8981\u4f9d\u8d56\u672c\u5730\u5b9a\u65f6\u5668\u5224\u65ad\u201c\u662f\u5426\u63a5\u901a\u201d&#xff0c;\u4e00\u5b9a\u8981\u7b49<\/p>\n<p>  PJSIP_INV_STATE_CONFIRMED<\/p>\n<p> \u72b6\u6001\u5230\u6765\u518d\u542f\u52a8\u5a92\u4f53\u901a\u9053\u3002\u5426\u5219\u53ef\u80fd\u5728\u6536\u5230 200 OK \u524d\u5c31\u5f00\u59cb\u64ad\u653e RTP&#xff0c;\u5bfc\u81f4\u4e22\u5305\u4e25\u91cd\u751a\u81f3\u6b7b\u9501\u3002\n<\/p>\n<hr \/>\n<h3>\n \u5a92\u4f53\u901a\u9053\u4f18\u5316&#xff1a;\u8ba9\u901a\u8bdd\u6e05\u6670\u6d41\u7545\u7684\u6838\u5fc3\u6218\u573a<br \/>\n<\/h3>\n<p>\n \u5f88\u591a\u4eba\u4ee5\u4e3a&#xff0c;\u53ea\u8981\u4fe1\u4ee4\u901a\u4e86&#xff0c;\u58f0\u97f3\u81ea\u7136\u5c31\u6709\u3002\u5b9e\u9645\u4e0a&#xff0c;\u8d85\u8fc7 80% \u7684\u7528\u6237\u4f53\u9a8c\u95ee\u9898\u51fa\u5728\u5a92\u4f53\u94fe\u8def\u4e0a\u3002\n<\/p>\n<h4>\n \u95ee\u9898\u73b0\u8c61&#xff1a;\u80fd\u6253\u901a\u7535\u8bdd&#xff0c;\u4f46\u5bf9\u65b9\u542c\u4e0d\u89c1\u6216\u6742\u97f3\u5927<br \/>\n<\/h4>\n<p>\n \u6392\u67e5\u65b9\u5411\u5982\u4e0b&#xff1a;\n<\/p>\n<table>\n<tr>\n    \u53ef\u80fd\u539f\u56e0<\/p>\n<p>    \u68c0\u67e5\u65b9\u6cd5<\/p>\n<p>    \u89e3\u51b3\u65b9\u6848<br \/>\n   <\/tr>\n<tbody>\n<tr>\n<td>\n    \u7f16\u89e3\u7801\u4e0d\u5339\u914d\n   <\/td>\n<td>\n    \u67e5\u770b SDP \u662f\u5426\u534f\u5546\u6210\u529f\n   <\/td>\n<td>\n    \u7edf\u4e00\u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u7aef\u652f\u6301\u5217\u8868\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    Jitter Buffer \u8bbe\u7f6e\u4e0d\u5f53\n   <\/td>\n<td>\n    \u6293\u5305\u5206\u6790 RTP \u5e8f\u5217\u53f7\u4e0e\u65f6\u95f4\u6233\n   <\/td>\n<td>\n    \u542f\u7528\u81ea\u9002\u5e94\u6296\u52a8\u7f13\u51b2\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u56de\u58f0\u672a\u6d88\u9664\n   <\/td>\n<td>\n    \u5f55\u97f3\u76d1\u542c\u662f\u5426\u6709\u53cd\u9988\u5578\u53eb\n   <\/td>\n<td>\n    \u542f\u7528 WebRTC AEC \u6a21\u5757\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u7f51\u7edc\u4e22\u5305\u7387\u9ad8\n   <\/td>\n<td>\n    \u67e5 RTCP RR \u62a5\u544a\n   <\/td>\n<td>\n    \u5f00\u542f FEC &#043; PLC \u8865\u507f\n   <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\n \u5982\u4f55\u542f\u7528\u6297\u4e22\u5305\u80fd\u529b&#xff1f;<br \/>\n<\/h4>\n<p>\n \u5728\u5a92\u4f53\u914d\u7f6e\u4e2d\u6253\u5f00 FEC \u548c\u4e22\u5305\u9690\u85cf&#xff08;PLC&#xff09;&#xff1a;\n<\/p>\n<p>media_cfg.enable_fec &#061; PJ_TRUE;<br \/>\nmedia_cfg.plc_enabled &#061; PJ_TRUE;<\/p>\n<p>\n \u5bf9\u4e8e OPUS \u7f16\u7801&#xff0c;\u8fd8\u53ef\u4ee5\u542f\u7528 DTX&#xff08;\u9759\u97f3\u538b\u7f29&#xff09;\u548c VAD&#xff1a;\n<\/p>\n<p>media_cfg.vad_enabled &#061; PJ_TRUE;<\/p>\n<p>\n \u5b9e\u6d4b\u8868\u660e&#xff0c;\u5728\u5e73\u5747\u4e22\u5305\u7387 5% \u7684 Wi-Fi \u73af\u5883\u4e0b&#xff0c;FEC&#043;PLC \u53ef\u5c06\u8bed\u97f3\u53ef\u61c2\u5ea6\u63d0\u5347 40% \u4ee5\u4e0a\u3002\n<\/p>\n<hr \/>\n<h3>\n \u9ad8\u5e76\u53d1\u4e0b\u7684\u6027\u80fd\u8c03\u4f18\u5b9e\u6218<br \/>\n<\/h3>\n<p>\n \u5f53\u5750\u5e2d\u6570\u4ece\u51e0\u5341\u6269\u5c55\u5230\u51e0\u767e\u65f6&#xff0c;\u7cfb\u7edf\u5f00\u59cb\u51fa\u73b0\u5361\u987f\u3001\u6389\u8bdd\u3002\u76d1\u63a7\u53d1\u73b0 CPU \u4f7f\u7528\u7387\u98d9\u5347\u81f3 90%&#043;\u3002\u6211\u4eec\u505a\u4e86\u4ee5\u4e0b\u56db\u9879\u4f18\u5316&#xff0c;\u4f7f\u5355\u53f0\u670d\u52a1\u5668\u627f\u8f7d\u80fd\u529b\u63d0\u5347 3 \u500d&#xff1a;\n<\/p>\n<h4>\n 1. \u964d\u4f4e\u97f3\u9891\u91c7\u6837\u7387<br \/>\n<\/h4>\n<p>\n \u5c06<\/p>\n<p>  clock_rate<\/p>\n<p> \u4ece 48000 \u964d\u81f3 16000&#xff0c;\u7f16\u7801\u8ba1\u7b97\u91cf\u4e0b\u964d\u8fd1 70%\u3002\u867d\u7136\u727a\u7272\u4e86\u4e00\u5b9a\u97f3\u8d28&#xff0c;\u4f46\u5bf9\u4e8e\u8bed\u97f3\u901a\u8bdd\u5b8c\u5168\u591f\u7528\u3002\n<\/p>\n<h4>\n 2. \u5173\u95ed\u89c6\u9891\u6a21\u5757<br \/>\n<\/h4>\n<p>\n \u5373\u4f7f\u4e0d\u7528\u89c6\u9891&#xff0c;\u4e5f\u8981\u663e\u5f0f\u5173\u95ed&#xff1a;\n<\/p>\n<p>call_opt.vid_cnt &#061; 0;<\/p>\n<p>\n \u5426\u5219 pjsip \u4ecd\u4f1a\u5c1d\u8bd5\u521d\u59cb\u5316\u89c6\u9891\u8bbe\u5907\u5e76\u5360\u7528\u8d44\u6e90\u3002\n<\/p>\n<h4>\n 3. \u4f7f\u7528 OPUS \u66ff\u4ee3 G.711<br \/>\n<\/h4>\n<p>\n G.711 \u867d\u7136\u517c\u5bb9\u6027\u597d&#xff0c;\u4f46\u65e0\u538b\u7f29\u3001\u65e0\u6297\u566a\u80fd\u529b&#xff0c;\u4e14\u7f16\u7801\u8017 CPU\u3002\u5207\u6362\u81f3 OPUS \u540e&#xff0c;\u540c\u7b49\u8d28\u91cf\u4e0b\u5e26\u5bbd\u8282\u7701 60%&#xff0c;\u7f16\u7801\u6548\u7387\u63d0\u9ad8 2 \u500d\u3002\n<\/p>\n<h4>\n 4. \u51cf\u5c11\u5b9a\u65f6\u5668\u4e2d\u65ad\u9891\u7387<br \/>\n<\/h4>\n<p>\n pjsip \u9ed8\u8ba4\u6bcf 10ms \u89e6\u53d1\u4e00\u6b21\u5a92\u4f53\u5904\u7406\u5faa\u73af\u3002\u5bf9\u4e8e\u975e\u5b9e\u65f6\u8981\u6c42\u6781\u9ad8\u7684\u573a\u666f&#xff0c;\u53ef\u9002\u5f53\u653e\u5bbd&#xff1a;\n<\/p>\n<p>cfg.thread_cnt &#061; 1;<br \/>\ncfg.timer_tick_interval &#061; 20;  \/\/ \u6539\u4e3a 20ms tick<\/p>\n<p>\n \u6b64\u4e3e\u964d\u4f4e\u4e0a\u4e0b\u6587\u5207\u6362\u5f00\u9500&#xff0c;\u5c24\u5176\u5728\u865a\u62df\u5316\u73af\u5883\u4e2d\u6548\u679c\u663e\u8457\u3002\n<\/p>\n<hr \/>\n<h3>\n \u6700\u5bb9\u6613\u88ab\u5ffd\u89c6\u7684\u4fdd\u6d3b\u673a\u5236<br \/>\n<\/h3>\n<p>\n \u4f60\u4ee5\u4e3a\u6ce8\u518c\u6210\u529f\u5c31\u4e07\u4e8b\u5927\u5409&#xff1f;\u9519\u3002\u8bb8\u591a\u4f01\u4e1a\u7ea7\u9632\u706b\u5899\u9ed8\u8ba4 UDP \u7a7a\u95f2\u8d85\u65f6\u65f6\u95f4\u4e3a 60 \u79d2\u3002\u8fd9\u610f\u5473\u7740&#xff0c;\u5982\u679c\u4f60\u957f\u65f6\u95f4\u4e0d\u8bf4\u8bdd&#xff0c;NAT \u6620\u5c04\u8868\u9879\u4f1a\u88ab\u6e05\u9664&#xff0c;\u4e0b\u6b21\u53d1\u9001 BYE \u6216\u63a5\u6536\u65b0\u6765\u7535\u65f6\u5c31\u4f1a\u5931\u8d25\u3002\n<\/p>\n<h4>\n \u6b63\u786e\u505a\u6cd5&#xff1a;\u4e3b\u52a8\u7ef4\u6301\u8fde\u63a5\u6d3b\u6027<br \/>\n<\/h4>\n<h5>\n \u65b9\u6cd5\u4e00&#xff1a;UDP keep-alive<br \/>\n<\/h5>\n<p>pjsua_transport_config tcp_cfg;<br \/>\npjsua_transport_config_default(&amp;tcp_cfg);<br \/>\ntcp_cfg.keep_alive_interval &#061; 30;  \/\/ \u6bcf 30 \u79d2\u53d1\u4e00\u6b21\u7a7a\u5305<\/p>\n<p>\n \u8fd9\u4e2a\u5c0f\u6570\u636e\u5305\u8db3\u4ee5\u5237\u65b0 NAT \u8868\u9879&#xff0c;\u6210\u672c\u6781\u4f4e\u3002\n<\/p>\n<h5>\n \u65b9\u6cd5\u4e8c&#xff1a;OPTIONS \u63a2\u6d4b<br \/>\n<\/h5>\n<p>\n \u5b9a\u671f\u5411\u670d\u52a1\u5668\u53d1\u9001 OPTIONS \u8bf7\u6c42&#xff0c;\u9a8c\u8bc1\u5176\u53ef\u8fbe\u6027&#xff1a;\n<\/p>\n<p>pj_str_t dst &#061; pj_str(&#034;sip:status&#064;freeswitch.local&#034;);<br \/>\npjsua_options_send(NULL, &amp;dst, NULL, NULL, NULL);<\/p>\n<p>\n \u670d\u52a1\u5668\u54cd\u5e94 200 OK \u5373\u8868\u793a\u94fe\u8def\u6b63\u5e38\u3002\u6211\u4eec\u8bbe\u7f6e\u4e86\u6bcf 240 \u79d2\u4e00\u6b21&#xff0c;\u5728\u4e0d\u5f71\u54cd\u6027\u80fd\u7684\u524d\u63d0\u4e0b\u4fdd\u969c\u53ef\u9760\u6027\u3002\n<\/p>\n<hr \/>\n<h3>\n \u5199\u5728\u6700\u540e&#xff1a;pjsip \u5230\u5e95\u9002\u4e0d\u9002\u5408\u4f60&#xff1f;<br \/>\n<\/h3>\n<p>\n \u7ecf\u8fc7\u516d\u4e2a\u6708\u7684\u7ebf\u4e0a\u8fd0\u884c&#xff0c;\u8fd9\u5957\u57fa\u4e8e pjsip \u7684\u8f6f\u7535\u8bdd\u7cfb\u7edf\u5df2\u7a33\u5b9a\u652f\u6491\u65e5\u5747 5000&#043; \u901a\u7535\u8bdd&#xff0c;\u5e73\u5747 MOS \u5206\u9ad8\u8fbe 4.2&#xff0c;\u6545\u969c\u7387\u4f4e\u4e8e 0.3%\u3002\n<\/p>\n<p>\n \u56de\u987e\u6574\u4e2a\u8fc7\u7a0b&#xff0c;\u6211\u8ba4\u4e3a pjsip \u7684\u6700\u5927\u4ef7\u503c\u4e0d\u4ec5\u5728\u4e8e\u529f\u80fd\u5b8c\u6574&#xff0c;\u800c\u662f\u5b83\u7684<\/p>\n<p>  \u53ef\u63a7\u6027<\/p>\n<p> \u3002\u4f60\u53ef\u4ee5\u6df1\u5165\u6bcf\u4e00\u5c42\u534f\u8bae\u53bb\u8c03\u8bd5\u3001\u5b9a\u5236\u3001\u4f18\u5316&#xff0c;\u800c\u4e0d\u50cf\u67d0\u4e9b\u9ed1\u76d2 SDK \u53ea\u80fd\u201c\u7948\u7977\u5b83\u5de5\u4f5c\u201d\u3002\n<\/p>\n<p>\n \u5f53\u7136&#xff0c;\u5b83\u4e5f\u6709\u95e8\u69db&#xff1a;\u4f60\u9700\u8981\u61c2 SIP \u57fa\u7840\u3001\u4e86\u89e3\u5a92\u4f53\u6d41\u539f\u7406\u3001\u719f\u6089 C \u8bed\u8a00\u5f00\u53d1\u3002\u4f46\u8fd9\u6b63\u662f\u6784\u5efa\u4f01\u4e1a\u7ea7\u7cfb\u7edf\u7684\u5fc5\u4fee\u8bfe\u3002\n<\/p>\n<p>\n \u5982\u679c\u4f60\u60f3\u505a\u7684\u662f&#xff1a;\n<\/p>\n<ul>\n<li>\n  \u81ea\u4e3b\u53ef\u63a7\u7684 VoIP \u5ba2\u6237\u7aef\n <\/li>\n<li>\n  \u5d4c\u5165\u5f0f\u8bed\u97f3\u7f51\u5173\n <\/li>\n<li>\n  SIP-RTP \u534f\u8bae\u8f6c\u6362\u6865\n <\/li>\n<li>\n  \u6216\u672a\u6765\u5bf9\u63a5 WebRTC \u7f51\u5173\n <\/li>\n<\/ul>\n<p>\n \u90a3\u4e48 pjsip \u7edd\u5bf9\u503c\u5f97\u6295\u5165\u65f6\u95f4\u638c\u63e1\u3002\n<\/p>\n<p>\n  \u5982\u679c\u4f60\u5728\u5b9e\u73b0\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u7c7b\u4f3c\u201c\u6ce8\u518c\u6389\u7ebf\u201d\u3001\u201c\u65e0\u58f0\u901a\u8bdd\u201d\u3001\u201c\u9ad8\u5ef6\u8fdf\u201d\u7b49\u95ee\u9898&#xff0c;\u6b22\u8fce\u7559\u8a00\u4ea4\u6d41\u3002\u6211\u53ef\u4ee5\u5206\u4eab\u66f4\u591a\u6211\u4eec\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u79ef\u7d2f\u7684\u65e5\u5fd7\u5206\u6790\u6280\u5de7\u548c\u6293\u5305\u8bca\u65ad\u65b9\u6cd5\u3002\n <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6df1\u5165\u5b9e\u6218&#xff1a;\u57fa\u4e8e pjsip \u7684\u4f01\u4e1a\u7ea7 SIP \u901a\u4fe1\u7cfb\u7edf\u6784\u5efa\u4e4b\u8def\u5728\u4e00\u5bb6\u91d1\u878d\u79d1\u6280\u516c\u53f8\u7684\u547c\u53eb\u4e2d\u5fc3\u9879\u76ee\u4e2d&#xff0c;\u6211\u4eec\u9762\u4e34\u4e00\u4e2a\u5178\u578b\u7684\u6311\u6218&#xff1a;\u5982\u4f55\u8ba9\u6570\u767e\u540d\u5750\u5e2d\u7a33\u5b9a\u3001\u4f4e\u5ef6\u8fdf\u5730\u63a5\u5165\u540e\u7aef FreeSWITCH \u96c6\u7fa4&#xff0c;\u5b9e\u73b0\u9ad8\u53ef\u7528\u8bed\u97f3\u901a\u4fe1&#xff1f;\u5e02\u9762\u4e0a\u7684\u8f6f\u7535\u8bdd\u65b9\u6848\u8981\u4e48\u95ed\u6e90\u6602\u8d35&#xff0c;\u8981\u4e48\u6027\u80fd\u582a\u5fe7\u3002\u6700\u7ec8&#xff0c;\u6211\u4eec\u9009\u62e9\u4e86pjsip\u2014\u2014 \u8fd9\u4e2a\u88ab Asterisk \u548c Linphone \u80cc\u4e66\u7684\u5f00\u6e90 SIP \u534f\u8bae\u6808\u3002\u4f46\u771f\u6b63\u4e0a\u624b\u540e\u624d\u53d1\u73b0<\/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":[6442],"topic":[],"class_list":["post-61027","post","type-post","status-publish","format-standard","hentry","category-server","tag-pjsip"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8epjsip\u7684SIP\u670d\u52a1\u5668\u5bf9\u63a5\u5b9e\u8df5\uff1a\u4f01\u4e1a\u7ea7\u901a\u4fe1\u5e94\u7528\u6848\u4f8b - \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\/61027.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8epjsip\u7684SIP\u670d\u52a1\u5668\u5bf9\u63a5\u5b9e\u8df5\uff1a\u4f01\u4e1a\u7ea7\u901a\u4fe1\u5e94\u7528\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6df1\u5165\u5b9e\u6218&#xff1a;\u57fa\u4e8e pjsip \u7684\u4f01\u4e1a\u7ea7 SIP \u901a\u4fe1\u7cfb\u7edf\u6784\u5efa\u4e4b\u8def\u5728\u4e00\u5bb6\u91d1\u878d\u79d1\u6280\u516c\u53f8\u7684\u547c\u53eb\u4e2d\u5fc3\u9879\u76ee\u4e2d&#xff0c;\u6211\u4eec\u9762\u4e34\u4e00\u4e2a\u5178\u578b\u7684\u6311\u6218&#xff1a;\u5982\u4f55\u8ba9\u6570\u767e\u540d\u5750\u5e2d\u7a33\u5b9a\u3001\u4f4e\u5ef6\u8fdf\u5730\u63a5\u5165\u540e\u7aef FreeSWITCH \u96c6\u7fa4&#xff0c;\u5b9e\u73b0\u9ad8\u53ef\u7528\u8bed\u97f3\u901a\u4fe1&#xff1f;\u5e02\u9762\u4e0a\u7684\u8f6f\u7535\u8bdd\u65b9\u6848\u8981\u4e48\u95ed\u6e90\u6602\u8d35&#xff0c;\u8981\u4e48\u6027\u80fd\u582a\u5fe7\u3002\u6700\u7ec8&#xff0c;\u6211\u4eec\u9009\u62e9\u4e86pjsip\u2014\u2014 \u8fd9\u4e2a\u88ab Asterisk \u548c Linphone \u80cc\u4e66\u7684\u5f00\u6e90 SIP \u534f\u8bae\u6808\u3002\u4f46\u771f\u6b63\u4e0a\u624b\u540e\u624d\u53d1\u73b0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/61027.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-16T13:57:49+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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61027.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/61027.html\",\"name\":\"\u57fa\u4e8epjsip\u7684SIP\u670d\u52a1\u5668\u5bf9\u63a5\u5b9e\u8df5\uff1a\u4f01\u4e1a\u7ea7\u901a\u4fe1\u5e94\u7528\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-16T13:57:49+00:00\",\"dateModified\":\"2026-01-16T13:57:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/61027.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/61027.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61027.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8epjsip\u7684SIP\u670d\u52a1\u5668\u5bf9\u63a5\u5b9e\u8df5\uff1a\u4f01\u4e1a\u7ea7\u901a\u4fe1\u5e94\u7528\u6848\u4f8b\"}]},{\"@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":"\u57fa\u4e8epjsip\u7684SIP\u670d\u52a1\u5668\u5bf9\u63a5\u5b9e\u8df5\uff1a\u4f01\u4e1a\u7ea7\u901a\u4fe1\u5e94\u7528\u6848\u4f8b - \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\/61027.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8epjsip\u7684SIP\u670d\u52a1\u5668\u5bf9\u63a5\u5b9e\u8df5\uff1a\u4f01\u4e1a\u7ea7\u901a\u4fe1\u5e94\u7528\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6df1\u5165\u5b9e\u6218&#xff1a;\u57fa\u4e8e pjsip \u7684\u4f01\u4e1a\u7ea7 SIP \u901a\u4fe1\u7cfb\u7edf\u6784\u5efa\u4e4b\u8def\u5728\u4e00\u5bb6\u91d1\u878d\u79d1\u6280\u516c\u53f8\u7684\u547c\u53eb\u4e2d\u5fc3\u9879\u76ee\u4e2d&#xff0c;\u6211\u4eec\u9762\u4e34\u4e00\u4e2a\u5178\u578b\u7684\u6311\u6218&#xff1a;\u5982\u4f55\u8ba9\u6570\u767e\u540d\u5750\u5e2d\u7a33\u5b9a\u3001\u4f4e\u5ef6\u8fdf\u5730\u63a5\u5165\u540e\u7aef FreeSWITCH \u96c6\u7fa4&#xff0c;\u5b9e\u73b0\u9ad8\u53ef\u7528\u8bed\u97f3\u901a\u4fe1&#xff1f;\u5e02\u9762\u4e0a\u7684\u8f6f\u7535\u8bdd\u65b9\u6848\u8981\u4e48\u95ed\u6e90\u6602\u8d35&#xff0c;\u8981\u4e48\u6027\u80fd\u582a\u5fe7\u3002\u6700\u7ec8&#xff0c;\u6211\u4eec\u9009\u62e9\u4e86pjsip\u2014\u2014 \u8fd9\u4e2a\u88ab Asterisk \u548c Linphone \u80cc\u4e66\u7684\u5f00\u6e90 SIP \u534f\u8bae\u6808\u3002\u4f46\u771f\u6b63\u4e0a\u624b\u540e\u624d\u53d1\u73b0","og_url":"https:\/\/www.wsisp.com\/helps\/61027.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-16T13:57:49+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/61027.html","url":"https:\/\/www.wsisp.com\/helps\/61027.html","name":"\u57fa\u4e8epjsip\u7684SIP\u670d\u52a1\u5668\u5bf9\u63a5\u5b9e\u8df5\uff1a\u4f01\u4e1a\u7ea7\u901a\u4fe1\u5e94\u7528\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-16T13:57:49+00:00","dateModified":"2026-01-16T13:57:49+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/61027.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/61027.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/61027.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8epjsip\u7684SIP\u670d\u52a1\u5668\u5bf9\u63a5\u5b9e\u8df5\uff1a\u4f01\u4e1a\u7ea7\u901a\u4fe1\u5e94\u7528\u6848\u4f8b"}]},{"@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\/61027","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=61027"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/61027\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=61027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=61027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=61027"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=61027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}