📄 osip开发者手册.htm
字号:
style="mso-bidi-font-size: 14.0pt">回叫</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"><SPAN
style="mso-tab-count: 1 dotted">. </SPAN></SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen">31</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"></SPAN></A></SPAN></SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoToc4
style="MARGIN-LEFT: 63pt; tab-stops: right dotted 414.8pt"><SPAN
class=MsoHyperlink><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><A
href="http://osip.atosc.org/chinese.html#_Toc601836"><SPAN
style="mso-bidi-font-size: 14.0pt">一些有用的宏(MACROs)</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"><SPAN
style="mso-tab-count: 1 dotted"> </SPAN></SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen">32</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"></SPAN></A></SPAN></SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoToc4
style="MARGIN-LEFT: 63pt; tab-stops: right dotted 414.8pt"><SPAN
class=MsoHyperlink><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><A
href="http://osip.atosc.org/chinese.html#_Toc601837"><SPAN
style="mso-bidi-font-size: 14.0pt">有限状态机的指引</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"><SPAN
style="mso-tab-count: 1 dotted">. </SPAN></SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen">33</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"></SPAN></A></SPAN></SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoToc4
style="MARGIN-LEFT: 63pt; tab-stops: right dotted 414.8pt"><SPAN
class=MsoHyperlink><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><A
href="http://osip.atosc.org/chinese.html#_Toc601838"><SPAN
style="mso-bidi-font-size: 14.0pt">初始化oSIP栈</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"><SPAN
style="mso-tab-count: 1 dotted">. </SPAN></SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen">33</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"></SPAN></A></SPAN></SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoToc4
style="MARGIN-LEFT: 63pt; tab-stops: right dotted 414.8pt"><SPAN
class=MsoHyperlink><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><A
href="http://osip.atosc.org/chinese.html#_Toc601839"><SPAN
style="mso-bidi-font-size: 14.0pt">分配和初始化osip_t结构</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"><SPAN
style="mso-tab-count: 1 dotted">. </SPAN></SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen">33</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"></SPAN></A></SPAN></SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoToc4
style="MARGIN-LEFT: 63pt; tab-stops: right dotted 414.8pt"><SPAN
class=MsoHyperlink><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><A
href="http://osip.atosc.org/chinese.html#_Toc601840"><SPAN
style="mso-bidi-font-size: 14.0pt">发送事件(events)控制事物(transaction)</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"><SPAN
style="mso-tab-count: 1 dotted"> </SPAN></SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen">34</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"></SPAN></A></SPAN></SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoToc4
style="MARGIN-LEFT: 63pt; tab-stops: right dotted 414.8pt"><SPAN
class=MsoHyperlink><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><A
href="http://osip.atosc.org/chinese.html#_Toc601841"><SPAN
style="mso-bidi-font-size: 14.0pt">Proxy开发的注意点</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"><SPAN
style="mso-tab-count: 1 dotted">. </SPAN></SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen">36</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"></SPAN></A></SPAN></SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoToc4
style="MARGIN-LEFT: 63pt; tab-stops: right dotted 414.8pt"><SPAN
class=MsoHyperlink><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><A
href="http://osip.atosc.org/chinese.html#_Toc601842"><SPAN
style="mso-bidi-font-size: 14.0pt">建造自己的体系结构</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"><SPAN
style="mso-tab-count: 1 dotted">. </SPAN></SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen">36</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"></SPAN></A></SPAN></SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoToc2
style="MARGIN-LEFT: 21pt; tab-stops: right dotted 414.8pt"><SPAN
class=MsoHyperlink><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><A
href="http://osip.atosc.org/chinese.html#_Toc601843">后记<SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"><SPAN
style="mso-tab-count: 1 dotted">. </SPAN></SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen">36</SPAN><SPAN
style="DISPLAY: none; COLOR: windowtext; TEXT-DECORATION: none; text-underline: none; mso-hide: screen"></SPAN></A></SPAN></SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></P>
<H2><A name=_Toc433710></A><A name=_Toc601800><SPAN
style="mso-bookmark: _Toc433710"><SPAN
style="FONT-FAMILY: 黑体; mso-ascii-font-family: Arial">正文</SPAN></SPAN></A></H2>
<H3 style="MARGIN-LEFT: 0cm"><A name=_Toc433711></A><A name=_Toc601801><SPAN
style="mso-bookmark: _Toc433711"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">第一章</SPAN><SPAN
lang=EN-US> SIP</SPAN></SPAN></A><SPAN style="mso-bookmark: _Toc601801"><SPAN
style="mso-bookmark: _Toc433711"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">协议</SPAN></SPAN></SPAN></H3>
<P class=MsoNormal
style="TEXT-INDENT: 24pt; mso-char-indent-count: 2.0; mso-char-indent-size: 12.0pt"><SPAN
lang=EN-US style="FONT-SIZE: 12pt">SIP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">协议是用于发起、控制和终结多媒体会话的信令协议。它被</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">IETF( <A
href="http://www.ietf.org/">http://www.ietf.org/</A> )</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">以</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">rfc2543</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">发表。</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 24pt"><SPAN lang=EN-US
style="FONT-SIZE: 12pt">SIP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">是</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">IETF</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">致力于将电话服务带入</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">IP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">网络众多协议的一个组成部分(它与</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">SDP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">、</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">RTP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">、</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">RTCP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">、</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">RTSP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">、</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">RSVP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">、</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">TRIP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">等众多协议构成</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">SIP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">系统协议栈)。其将要变成正在发展的</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">IP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">电话——这个朝气蓬勃的电信工业——的标准之一。正如同电子邮件协议一样,</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">SIP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">将会变得越来越普及和大众化</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">… …<o:p></o:p></SPAN></P>
<H4 style="MARGIN-LEFT: 0cm"><A name=_Toc433712></A><A name=_Toc601802><SPAN
style="mso-bookmark: _Toc433712"><SPAN lang=EN-US>SIP</SPAN></SPAN></A><SPAN
style="mso-bookmark: _Toc601802"><SPAN style="mso-bookmark: _Toc433712"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">独立与媒体</SPAN></SPAN></SPAN></H4>
<P class=MsoNormal
style="TEXT-INDENT: 24pt; mso-char-indent-count: 2.0; mso-char-indent-size: 12.0pt"><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">传统电话使用一种媒体编码个师通讯(正如被我所熟知的时隙和</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">PCM</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">概念)。现在,这种方式将被终结。我们的电话可以以不同的质量保证和不同的编码方法连接电视、连接摄像机、连接其他电话进行通信。</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">SIP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">具有媒体协商等功能。任何多媒体应用(例如:游戏、远程教学)都可以使用</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">SIP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">来建立会话。</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></P>
<H4 style="MARGIN-LEFT: 0cm"><A name=_Toc433713></A><A name=_Toc601803><SPAN
style="mso-bookmark: _Toc433713"><SPAN lang=EN-US>SIP</SPAN></SPAN></A><SPAN
style="mso-bookmark: _Toc601803"><SPAN style="mso-bookmark: _Toc433713"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">独立于传输层</SPAN></SPAN></SPAN></H4>
<P class=MsoNormal style="TEXT-INDENT: 24pt"><SPAN lang=EN-US
style="FONT-SIZE: 12pt">SIP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">并不和任何的传输层紧密结合。这一构思将使得</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">SIP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">在第三代网络中受到最小的互操作影响。无线电话的要求(例如漫游功能)同样被关心。</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">SIP</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">完美的构思,使得其适合作为新蜂窝电话时代的信令协议。</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></P>
<H4 style="MARGIN-LEFT: 0cm"><A name=_Toc433714></A><A name=_Toc601804><SPAN
style="mso-bookmark: _Toc433714"><SPAN lang=EN-US>SIP</SPAN></SPAN></A><SPAN
style="mso-bookmark: _Toc601804"><SPAN style="mso-bookmark: _Toc433714"><SPAN
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">有很好的扩展性</SPAN></SPAN></SPAN></H4>
<P class=MsoNormal style="TEXT-INDENT: 24pt"><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'">在</SPAN><SPAN
lang=EN-US style="FONT-SIZE: 12pt">rfc2543</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -