⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ser-howto.sgml

📁 用来作为linux中SIP SERVER,完成VOIP网络电话中服务器的功能
💻 SGML
📖 第 1 页 / 共 3 页
字号:
			    <para>				RINGLIST.DAT, ringer1.pcm, ringer2.pcm - ring tones			    </para>			</listitem>		    </itemizedlist>		</para>		<para>		    Each time the phone is powered on it will tftp download OS79XX and determine if		    it needs a firmware update.  If no update is needed the next step is to download		    SIPDefault.cnf, SIPmacaddress.cnf, and optionally a dial plan, ringlist and ring		    tones.		</para>		<para>		    Calls can be placed to other registered &sip; clients, or to a &pstn; number		    provided there is &pstn; gateway identified in the &ser; configuration file.		</para>	    </section>	</section>    </chapter>    <chapter>	<title>&pstn; connectivity</title>	<para>	    Passing calls that originate from a &sip; client to the &pstn; is a simple matter of	    permitting &ser; to relay the session to an established &pstn; gateway.  Calls that start	    out on the &pstn; and need to be directed to a &sip; client requires that the &pstn; gateway	    be aware of where to direct the call.	</para>	<section>	    <title>Cisco Dial-peer</title>	    <para>		The Cisco gateway needs to have a &pstn; interface, such as FXO ports or a VXB-2TE1+		card, and depending on the model of Cisco device an upgraded IOS revision.  The		dial-peer itself is simple:	    </para>	    <para>		dial-peer voice 999 voip	    </para>	    <para>		destination-pattern 555999.  ** Associate the number range 555-9990 to 9999 with our		SIP server	    </para>	    <para>		session protocol sipv2 ** Set this dial-peer to use &sip; instead of Cisco protocols		</para>		<para>		session target sip-server ** Send the call to our &sip; server.  See &sip;-UA below	    </para>	    <para>		codec g711ulaw ** Set the default codec to 711-Ulaw (common codec between clients)	    </para>	    <para>		! 	    </para>	    <para>		sip-ua	    </para>	    <para>		sip-server ipv4:192.168.0.1 ** &ip; address of our &sip; server	    </para>	</section>	<section>	    <title>Relaying &pstn; in ser.cfg</title>	    <para>		The following is an extremely simple sample of how to relay a call from a &sip; client		to the &pstn;	    </para>	    <para>		<screen format="linespecific"># attempt handoff to PSTNif (uri=~<quote>^sip:9[0-9]*@mydomain.com</quote>) {  ##  This assumes that the caller is    log(<quote>Forwarding to PSTN\n</quote>);      ##  registered in our realm    t_relay_to( <quote>192.168.0.2</quote>, <quote>5060</quote>);  ##  Our Cisco router    break;};</screen>	    </para>	</section>    </chapter>    <chapter>	<title>&sip; Status Codes</title>	<para>	    The following are the &sip; status codes as of &rfc3261;	</para>		<para>	    <table><title>1XX-2XX Informational</title>		<tgroup cols="2">		    <tbody>			<row>			    <entry>				100 			    </entry>			    <entry>				Trying			    </entry>			</row>			<row>			    <entry>				180 			    </entry>			    <entry>				Ringing			    </entry>			</row>			<row>			    <entry>				181 			    </entry>			    <entry>				Call Is Being Forwarded			    </entry>			</row>			<row>			    <entry>				182 			    </entry>			    <entry>				Queued			    </entry>			</row>			<row>			    <entry>				183 			    </entry>			    <entry>				Session Progress			    </entry>			</row>			<row>			    <entry>				200 			    </entry>			    <entry>				OK			    </entry>			</row>			<row>			    <entry>				202 			    </entry>			    <entry>				OK			    </entry>			</row>		    </tbody>		</tgroup>	    </table>	</para>		<para>	    <table><title>3XX Redirection</title>		<tgroup cols='2'>		    <tbody>			<row>			    <entry>				300 			    </entry>			    <entry>				Multiple Choices			    </entry>			</row>			<row>			    <entry>				301 			    </entry>			    <entry>				Moved Permanently			    </entry>			</row>			<row>			    <entry>				303 			    </entry>			    <entry>				See Other			    </entry>			</row>			<row>			    <entry>				305 			    </entry>			    <entry>				Use Proxy			    </entry>			</row>			<row>			    <entry>				380 			    </entry>			    <entry>				Alternative Service			    </entry>			</row>		    </tbody>		</tgroup>	    </table>	</para>		<para>	    <table><title>4XX Client-Error</title>		<tgroup cols='2'>		    <tbody>			<row>			    <entry>				400 			    </entry>			    <entry>				Bad Request			    </entry>			</row>			<row>			    <entry>				401 			    </entry>			    <entry>				Unauthorized			    </entry>			</row>			<row>			    <entry>				402 			    </entry>			    <entry>				Payment Required			    </entry>			</row>			<row>			    <entry>				403 			    </entry>			    <entry>				Forbidden			    </entry>			</row>			<row>			    <entry>				404 			    </entry>			    <entry>				Not Found			    </entry>			</row>			<row>			    <entry>				405 			    </entry>			    <entry>				Method Not Allowed			    </entry>			</row>			<row>			    <entry>				406 			    </entry>			    <entry>				Not Acceptable			    </entry>			</row>			<row>			    <entry>				407 			    </entry>			    <entry>				Proxy Authentication Required			    </entry>			</row>			<row>			    <entry>				408 			    </entry>			    <entry>				Request Timeout			    </entry>			</row>			<row>			    <entry>				409 			    </entry>			    <entry>				Conflict			    </entry>			</row>			<row>			    <entry>				410 			    </entry>			    <entry>				Gone			    </entry>			</row>			<row>			    <entry>				411 			    </entry>			    <entry>				Length Required			    </entry>			</row>			<row>			    <entry>				413 			    </entry>			    <entry>				Request Entity Too Large			    </entry>			</row>			<row>			    <entry>				414 			    </entry>			    <entry>				Request-URI Too Large			    </entry>			</row>			<row>			    <entry>				415 			    </entry>			    <entry>				Unsupported Media Type			    </entry>			</row>			<row>			    <entry>				420 			    </entry>			    <entry>				Bad Extension			    </entry>			</row>			<row>			    <entry>				480 			    </entry>			    <entry>				Temporarily not available			    </entry>			</row>			<row>			    <entry>				481 			    </entry>			    <entry>				Call Leg/Transaction does not exist			    </entry>			</row>			<row>			    <entry>				482 			    </entry>			    <entry>				Loop Detected			    </entry>			</row>			<row>			    <entry>				483 			    </entry>			    <entry>				Too Many Hops			    </entry>			</row>			<row>			    <entry>				484 			    </entry>			    <entry>				Address Incomplete			    </entry>			</row>			<row>			    <entry>				485 			    </entry>			    <entry>				Ambiguous			    </entry>			</row>			<row>			    <entry>				486 			    </entry>			    <entry>				Busy Here			    </entry>			</row>			<row>			    <entry>				487 			    </entry>			    <entry>				Request Terminated			    </entry>			</row>			<row>			    <entry>				488 			    </entry>			    <entry>				Not Acceptable Here			    </entry>			</row>			<row>			    <entry>				489 			    </entry>			    <entry>				Bad Event			    </entry>			</row>			<row>			    <entry>				491 			    </entry>			    <entry>				Request Pending			    </entry>			</row>			<row>			    <entry>				493 			    </entry>			    <entry>				Undecipherable			    </entry>			</row>		    </tbody>		</tgroup>	    </table>	</para>		<para>	    <table><title>5XX Server-Error</title>		<tgroup cols='2'>		    <tbody>			<row>			    <entry>				500 			    </entry>			    <entry>				Internal Server Error			    </entry>			</row>			<row>			    <entry>				501 			    </entry>			    <entry>				Not Implemented			    </entry>			</row>			<row>			    <entry>				502 			    </entry>			    <entry>				Bad Gateway			    </entry>			</row>			<row>			    <entry>				503 			    </entry>			    <entry>				Service Unavailable			    </entry>			</row>			<row>			    <entry>				504 			    </entry>			    <entry>				Gateway Time-out			    </entry>			</row>			<row>			    <entry>				505 			    </entry>			    <entry>				SIP Version not supported			    </entry>			</row>			<row>			    <entry>				513 			    </entry>			    <entry>				Message Too Large			    </entry>			</row>			<row>			    <entry>				580 			    </entry>			    <entry>				Precondition Failure			    </entry>			</row>		    </tbody>		</tgroup>	    </table>	</para>		<para>	    <table><title>6XX Global-Failure</title>		<tgroup cols='2'>		    <tbody>			<row>			    <entry>				600 			    </entry>			    <entry>				Busy Everywhere			    </entry>			</row>			<row>			    <entry>				603 			    </entry>			    <entry>				Decline			    </entry>			</row>			<row>			    <entry>				604 			    </entry>			    <entry>				Does Note Exist Anywhere			    </entry>			</row>			<row>			    <entry>				606 			    </entry>			    <entry>				Not Acceptable			    </entry>			</row>		    </tbody>		</tgroup>	    </table>	</para>    </chapter></book>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -