📄 otherapps.sgml
字号:
<chapter id="complementaryapps"> <title>Complementary Applications</title> <section id="serctl"> <title><application>serctl</application> command-line tool</title> <para> <application>serctl</application> is a command-line utility which allows to perform most of management tasks needed to operate <application moreinfo="none">ser</application>: adding users, changing their passwords, watching server status, etc. Usage of utility is as follows: <example> <title><application>serctl</application> usage</title> <programlisting format="linespecific">usage: * subscribers * serctl add <username> <password> <email> .. add a new subscriber (*) serctl passwd <username> <passwd> ......... change user's password (*) serctl rm <username> ...................... delete a user (*) serctl mail <username> .................... send an email to a user serctl alias show [<alias>] ............... show aliases serctl alias rm <alias> ................... remove an alias serctl alias add <alias> <uri> ............ add an aliases * access control lists * serctl acl show [<username>] .............. show user membership serctl acl grant <username> <group> ....... grant user membership (*) serctl acl revoke <username> [<group>] .... grant user membership(s) (*) * usrloc * serctl ul show [<username>]................ show in-RAM online users serctl ul rm <username> ................... delete user's UsrLoc entries serctl ul add <username> <uri> ............ introduce a permanent UsrLoc entry serctl showdb [<username>] ................ show online users flushed in DB * server health * serctl monitor ............................ show internal status serctl ps ................................. show running processes serctl fifo ............................... send raw commands to FIFO Commands labeled with (*) will prompt for a MySQL password. If the variable PW is set, the password will not be prompted. </programlisting> </example> </para> <note> <para> Prior to using the utility, you have to first set the environment variable <constant>SIP_DOMAIN</constant> to locally appropriate value (e.g., "foo.com"). It is needed for calculation of user credentials, which depend on SIP digest realm. (see also <link linkend="msmbug">MSM Authentication Issue</link>) </para> </note> <example> <title>Example Output of Server Watching Command <command moreinfo="none">sc monitor</command> </title> <programlisting format="linespecific">[cycle #: 2; if constant make sure server lives and fifo is on]Server: Sip EXpress router(0.8.8 (i386/linux))Now: Thu Sep 26 23:16:48 2002Up Since: Thu Sep 26 12:35:27 2002Up time: 38481 [sec]Transaction StatisticsCurrent: 0 (0 waiting) Total: 606 (0 local) Replied localy: 34 Completion status 6xx: 0, 5xx: 1, 4xx: 86, 3xx: 0,2xx: 519 Stateless Server Statistics200: 6218 202: 0 2xx: 0 300: 0 301: 0 302: 0 3xx: 0 400: 0 401: 7412 403: 2 404: 1258 407: 116 408: 0 483: 0 4xx: 25 500: 0 5xx: 0 6xx: 0 xxx: 0 failures: 0 UsrLoc StatsDomain Registered Expired'aliases' 9 0'location' 29 17 </programlisting> </example> </section> <section id="serweb"> <title>Web User Provisioning -- <application>serweb</application></title> <para> To make provisioning of user accounts convenient, a web front-end to <application moreinfo="none">ser</application>, <application moreinfo="none">serweb</application> has been developed. <application moreinfo="none">serweb</application>, a PHP-written web application, allows users to apply for new <application moreinfo="none">ser</application> accounts, and maintain these. Users can manipulate their contacts, keep a phone-book with SIP addresses, change password, send instant SIP messages, and more. Administrators can manipulate any accounts and grant or revoke user privileges. </para> <para> <application moreinfo="none">serweb</application> is freely available from berlios site at <ulink url="http://developer.berlios.de/cvs/?group_id=500"> http://developer.berlios.de/cvs/?group_id=500</ulink>. Installation takes unpacking tarball to a safe destination at web server (better not in the HTML tree) and configuring <filename moreinfo="none">config.php</filename> accordingly to local conditions. </para> <para> Running <application moreinfo="none">serweb</application> can be seen at iptel.org's SIP site. Just create and use a SIP account at <ulink url="http://www.iptel.org/user/">http://www.iptel.org/user/</ulink> </para> </section> <!-- serweb --> <section> <title>Voicemail</title>&voicemail; </section> <!-- voicemail --> </chapter> <!-- other apps -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -