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

📄 acc_user.sgml

📁 sip server服务器
💻 SGML
📖 第 1 页 / 共 2 页
字号:
	    <para>		Default value is 0 (no).	    </para>	    <example>		<title>report_cancels example</title>		<programlisting format="linespecific">modparam("acc", "report_cancels", 1)</programlisting>	    </example>	</section>	<section>	    <title><varname>radius_config</varname> (string)</title>	    <para>		<emphasis>This parameter is radius specific.</emphasis> Path to radius client		configuration file, set the referred config file correctly and specify there address		of server, shared secret (should equal that in /usr/local/etc/raddb/clients for		freeRadius servers) and dictionary, see etc for an example of config file and		dictionary.	    </para>	    <para>		Default value is <quote>/usr/local/etc/radiusclient/radiusclient.conf</quote>.	    </para>	    <example>		<title>radius_config example</title>		<programlisting format="linespecific">modparam("acc", "radius_config", "/etc/radiusclient/radiusclient.conf")</programlisting>	    </example>	</section>	<section>	    <title><varname>service_type</varname> (integer)</title>	    <para>		Radius service type used for accounting.	    </para>	    <para>		Default value is 15 (SIP).	    </para>	    <example>		<title>service_type example</title>		<programlisting format="linespecific">modparam("acc", "service_type", 16)</programlisting>	    </example>	</section>	<section>	    <title><varname>radius_flag</varname> (integer)</title>	    <para>		Request flag which needs to be set to account a transaction -- RADIUS specific.	    </para>	    <para>		Default value is 1.	    </para>	    <example>		<title>radius_flag example</title>		<programlisting format="linespecific">modparam("acc", "radius_flag", 2)</programlisting>	    </example>	</section>	<section>	    <title><varname>radius_missed_flag</varname> (integer)</title>	    <para>		Request flag which needs to be set to account missed calls -- RADIUS specific.	    </para>	    <para>		Default value is 2.	    </para>	    <example>		<title>radius_missed_flag example</title>		<programlisting format="linespecific">modparam("acc", "radius_missed_flag", 3)</programlisting>	    </example>	</section>	<section>	    <title><varname>db_url</varname> (string)</title>	    <para>		SQL address -- database specific.	    </para>	    <para>		Default value is <quote>mysql://ser:heslo@localhost/ser</quote>	    </para>	    <example>		<title>db_url example</title>		<programlisting format="linespecific">modparam("acc", "db_url", "mysql://user:password@localhost/ser")</programlisting>	    </example>	</section>	<section>	    <title><varname>db_flag</varname> (integer)</title>	    <para>		Request flag which needs to be set to account a transaction -- database specific.	    </para>	    <para>		Default value is 1.	    </para>	    <example>		<title>db_flag example</title>		<programlisting format="linespecific">modparam("acc", "db_flag", 2)</programlisting>	    </example>	</section>	<section>	    <title><varname>db_missed_flag</varname> (integer)</title>	    <para>		Request flag which needs to be set to account missed calls -- database specific.	    </para>	    <para>		Default value is 2.	    </para>	    <example>		<title>db_missed_flag example</title>		<programlisting format="linespecific">modparam("acc", "db_missed_flag", 3)</programlisting>	    </example>	</section>	<section>	    <title><varname>diameter_flag</varname> (integer)</title>	    <para>		Request flag which needs to be set to account a transaction -- DIAMETER specific.	    </para>	    <para>		Default value is 1.	    </para>	    <example>		<title>diameter_flag example</title>		<programlisting format="linespecific">modparam("acc", "diameter_flag", 2)</programlisting>	    </example>	</section>	<section>	    <title><varname>diameter_missed_flag</varname> (integer)</title>	    <para>		Request flag which needs to be set to account missed calls -- DIAMETER specific.	    </para>	    <para>		Default value is 2.	    </para>	    <example>		<title>diameter_missed_flag example</title>		<programlisting format="linespecific">modparam("acc", "diameter_missed_flag", 3)</programlisting>	    </example>	</section>	<section>	    <title><varname>diameter_client_host</varname> (string)</title>	    <para>		Hostname of the machine where the DIAMETER Client is running -- DIAMETER specific.	    </para>	    <para>		Default value is <quote>localhost</quote>.	    </para>	    <example>		<title>diameter_client_host example</title>		<programlisting format="linespecific">modparam("acc", "diameter_client_host", "iptel.org")</programlisting>	    </example>	</section>	<section>	    <title><varname>diameter_client_port</varname> (int)</title>	    <para>		Port number where the Diameter Client is listening -- DIAMETER specific.	    </para>	    <para>		Default value is 3000.	    </para>	    <example>		<title>diameter_client_host example</title>		<programlisting format="linespecific">modparam("acc", "diameter_client_port", 3000)</programlisting>	    </example>	</section>    </section>    <section>	<title>Exported Functions</title>	<section>	    <title><function moreinfo="none">acc_log_request(comment)</function></title>	    <para>		<function moreinfo="none">acc_request</function> reports on a request, for example,		it can be used to report on missed calls to off-line users who are replied 404. To		avoid multiple reports on UDP request retransmission, you would need to embed the		action in stateful processing.	    </para> 	    <para>		Meaning of the parameters is as follows:</para>	    <itemizedlist>		<listitem>		    <para><emphasis>comment</emphasis> - Comment to be appended.		    </para>		</listitem>	    </itemizedlist>	    <example>		<title>acc_log_request usage</title>		<programlisting format="linespecific">...acc_log_request("Some comment");...</programlisting>	    </example>	</section>	<section>	    <title><function moreinfo="none">acc_db_request(comment, table)</function></title>	    <para>		Like <function moreinfo="none">acc_log_request</function>, <function		moreinfo="none">acc_db_request</function> reports on a request. The report is sent		to database at <quote>db_url</quote>, in the table referred to in the second action		parameter		</para>	    <para>		Meaning of the parameters is as follows:	    </para>	    <itemizedlist>		<listitem>		    <para><emphasis>comment</emphasis> - Comment to be appended.</para>		</listitem>		<listitem>		    <para><emphasis>table</emphasis> - Database table to be used.</para>		</listitem>	    </itemizedlist>	    <example>		<title>acc_db_request usage</title>		<programlisting format="linespecific">...acc_log_request("Some comment", "Some table");...</programlisting>	    </example>	</section>	<section>	    <title><function moreinfo="none">acc_rad_request(comment)</function></title>	    <para>		Like <function moreinfo="none">acc_log_request</function>, 		<function moreinfo="none">acc_rad_request</function> reports on a request. It		reports to radius server as configured in <quote>radius_config</quote>.	    </para> 	    <para>		Meaning of the parameters is as follows:</para>	    <itemizedlist>		<listitem>		    <para><emphasis>comment</emphasis> - Comment to be appended.		    </para>		</listitem>	    </itemizedlist>	    <example>		<title>acc_rad_request usage</title>		<programlisting format="linespecific">...acc_rad_request("Some comment");...</programlisting>	    </example>	</section>	<section>	    <title><function moreinfo="none">acc_diam_request(comment)</function></title>	    <para>		Like <function moreinfo="none">acc_log_request</function>, 		<function moreinfo="none">acc_diam_request</function> reports on a request. It		reports to Diameter server.	    </para> 	    <para>		Meaning of the parameters is as follows:</para>	    <itemizedlist>		<listitem>		    <para><emphasis>comment</emphasis> - Comment to be appended.		    </para>		</listitem>	    </itemizedlist>	    <example>		<title>acc_diam_request usage</title>		<programlisting format="linespecific">...acc_diam_request("Some comment");...</programlisting>	    </example>	</section>    </section></chapter><!-- Keep this element at the end of the fileLocal Variables:sgml-parent-document: ("acc.sgml" "Book" "chapter")End:-->

⌨️ 快捷键说明

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