ser-howto.xml 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <section id="ser-howto" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. <authorgroup>
  7. <author>
  8. <firstname>Dan</firstname>
  9. <surname>Austin</surname>
  10. </author>
  11. <editor>
  12. <firstname>Nils</firstname>
  13. <surname>Ohlmeier</surname>
  14. <address>
  15. <email>[email protected]</email>
  16. </address>
  17. </editor>
  18. </authorgroup>
  19. <copyright>
  20. <year>2002-2003</year>
  21. <holder>NSI Ltd.</holder>
  22. </copyright>
  23. <revhistory>
  24. <revision>
  25. <revnumber>$Revision$</revnumber>
  26. <date>$Date$</date>
  27. </revision>
  28. </revhistory>
  29. </sectioninfo>
  30. <title>SER Howto</title>
  31. <section id="introduction">
  32. <title>Introduction</title>
  33. <section>
  34. <title>Why SER</title>
  35. <para>
  36. SER is an open-source project that aims to make available a
  37. fully functional and scalable Session Initiated Protocol
  38. server. Call processing is described with a concise scripting
  39. language that offers the flexibility of regular expressions and
  40. the ability to interface with 3rd party applications for the
  41. purposes of call accounting and authorization.
  42. </para>
  43. </section>
  44. <section>
  45. <title>Where to get SER</title>
  46. <para>
  47. SER is available for download from <ulink
  48. url="ftp://ftp.berlios.de/pub/ser"></ulink>
  49. </para>
  50. <para>
  51. The newest release may be found in the folder /latest
  52. </para>
  53. </section>
  54. </section>
  55. <section id="installation">
  56. <title>Installation</title>
  57. <section id="installation_notes">
  58. <title>Installation Notes</title>
  59. <para>
  60. Supported architectures:
  61. </para>
  62. <itemizedlist>
  63. <listitem>
  64. <para>
  65. Linux/i386
  66. </para>
  67. </listitem>
  68. <listitem>
  69. <para>
  70. Linux/armv4l
  71. </para>
  72. </listitem>
  73. <listitem>
  74. <para>
  75. FreeBSD/i386
  76. </para>
  77. </listitem>
  78. <listitem>
  79. <para>
  80. OpenBSD/i386
  81. </para>
  82. </listitem>
  83. <listitem>
  84. <para>
  85. Solaris/sparc64
  86. </para>
  87. </listitem>
  88. <listitem>
  89. <para>
  90. NetBSD/sparc64
  91. </para>
  92. </listitem>
  93. </itemizedlist>
  94. <para>
  95. (For other architectures the Makefiles might need to be edited) There are various
  96. configuration options defined in the Makefile and Makefile.defs.
  97. </para>
  98. </section>
  99. <section id="requirements">
  100. <title>Requirements</title>
  101. <itemizedlist>
  102. <listitem>
  103. <para>
  104. gcc or icc : gcc &gt;= 2.9x; &gt;=3.1 recommended (it
  105. will work with older version but it might require some
  106. options tweaking for best performance)
  107. </para>
  108. </listitem>
  109. <listitem>
  110. <para>
  111. bison or yacc (Berkley yacc)
  112. </para>
  113. </listitem>
  114. <listitem>
  115. <para>
  116. flex
  117. </para>
  118. </listitem>
  119. <listitem>
  120. <para>
  121. <acronym>GNU</acronym> make (on Linux this is the standard
  122. "make", on FreeBSD and Solaris is called "gmake")
  123. </para>
  124. </listitem>
  125. <listitem>
  126. <para>
  127. sed and tr (used in the make files)
  128. </para>
  129. </listitem>
  130. <listitem>
  131. <para>
  132. <acronym>GNU</acronym> tar ("gtar" on Solaris) and gzip if you
  133. want "make tar" to work.
  134. </para>
  135. </listitem>
  136. <listitem>
  137. <para>
  138. <acronym>GNU</acronym> install or BSD install (on Solaris
  139. "ginstall") if you want "make install",
  140. "make bin", "make sunpkg" to work.
  141. </para>
  142. </listitem>
  143. <listitem>
  144. <para>
  145. mysql if you need MySQL support.
  146. </para>
  147. </listitem>
  148. <listitem>
  149. <para>
  150. Apache (httpd) if you want serweb support
  151. </para>
  152. </listitem>
  153. <listitem>
  154. <para>
  155. PHP, MySQL-PHP for serweb support
  156. </para>
  157. </listitem>
  158. <listitem>
  159. <para>
  160. libmysqlclient and libz (zlib) if you want mysql support (the mysql module)
  161. </para>
  162. </listitem>
  163. <listitem>
  164. <para>
  165. libexpat if you want the jabber gateway support (the jabber module)
  166. </para>
  167. </listitem>
  168. </itemizedlist>
  169. <para>
  170. Installing SER on a RedHat Linux distribution for example, is a
  171. simple matter of unzipping the downloaded file and using your
  172. favorite package manager.
  173. </para>
  174. </section>
  175. <section id="install_package">
  176. <title>Install the package</title>
  177. <para>
  178. Example:
  179. </para>
  180. <screen>
  181. /root&gt;rpm -i ser-08.11-1.i386.rpm
  182. </screen>
  183. <para>
  184. Packages for other popular distributions are available, and can be installed using
  185. the appropriate package manager for that distribution.
  186. </para>
  187. <para>
  188. On many platforms you can start the service with:
  189. </para>
  190. <screen>
  191. /etc/init.d/ser start
  192. </screen>
  193. <para>
  194. RedHat systems will use:
  195. </para>
  196. <screen>
  197. /etc/rc.d/init.d/ser start
  198. </screen>
  199. <para>
  200. You now have a functioning SIP server, but what can you do with it? At this point
  201. not very much. With an SIP client, such as Microsoft MSN Messenger 4.6, you can
  202. register with the server, send Instant Messages to other logged on clients of the
  203. same server, and even have voice conversations with them.
  204. </para>
  205. <para>
  206. That sounds pretty good, but maybe you'd like to add a little more security, or make
  207. you server accessible to others.
  208. </para>
  209. </section>
  210. <section id="serctl_utility">
  211. <title>Serctl Utility</title>
  212. <para>
  213. To do so, first set the environment variable SIP_DOMAIN to your domain name, e.g.,
  214. in Bourne shell (bash), call:
  215. </para>
  216. <screen>
  217. export SIP_DOMAIN="foo.bar"
  218. </screen>
  219. <para>
  220. If you wont the system to created this variable automatically, you need to add the
  221. line
  222. </para>
  223. <screen>
  224. export SIP_DOMAIN="foo.bar"
  225. </screen>
  226. <para>
  227. in the end of file /etc/profile.
  228. </para>
  229. <para>
  230. If you are using other than 'localhost' mysql server for maintaining subscriber
  231. database, change the variable 'SQL_HOST' to the proper host name in the serctl
  232. script.
  233. </para>
  234. <para>
  235. Run the serctl utility
  236. </para>
  237. <screen>
  238. /usr/sbin/serctl monitor
  239. </screen>
  240. <para>
  241. If you installed from a tar.gz or Solaris package:
  242. </para>
  243. <screen>
  244. /usr/local/sbin/serctl monitor
  245. </screen>
  246. </section>
  247. <section id="dns_srv">
  248. <title>DNS SVR Resource Records</title>
  249. <para>
  250. It is important that your SIP clients can connect to your
  251. server for purposes of registration and call control. You
  252. might even want to have a redundant server to handle calls if
  253. your primary server is unavailable.
  254. </para>
  255. <para>
  256. These requirements can be meet by using <acronym>DNS</acronym>
  257. <acronym>SVR</acronym> Resource Records, available in BIND 8.X and up releases.
  258. </para>
  259. <para>
  260. The format for a <acronym>SVR RR</acronym> is this:
  261. </para>
  262. <screen>
  263. _service._protocol SVR Priority Weight Port hostname
  264. </screen>
  265. <para>
  266. In this case we want to establish an entry for our primary SIP server,
  267. gateway.mydomain.com, that will listen on UDP port 5060. The entry will look like
  268. this:
  269. </para>
  270. <screen>
  271. _sip._udp SRV 0 0 5060 gateway.mydomain.com
  272. </screen>
  273. <para>
  274. Placement of the new resource record is important. Here is a sample zone file:
  275. </para>
  276. <para>
  277. <screen>
  278. ; zone 'mydomain.com' last serial 1998071308
  279. $ORIGIN com.
  280. mydomain 86400 IN SOA gateway.mydomain.com. postmaster.mydomain.com. (
  281. 1998111908 ; Serial
  282. 36000 ; Refresh
  283. 900 ; Retry
  284. 36000 ; Expire
  285. 28800 ); Minimum
  286. IN NS gateway.mydomain.com.
  287. IN NS ns3.backupdomain.com.
  288. IN MX 1 gateway.mydomain.com.
  289. IN A 192.168.0.1
  290. ;If we place the SRV record above the next line it fails to load
  291. $ORIGIN fitawi.com.
  292. _sip._udp SRV 0 0 5060 gateway.mydomain.com.
  293. gateway IN A 192.168.0.1
  294. www IN CNAME gateway.mydomain.com.
  295. </screen>
  296. </para>
  297. <para>
  298. After reloading your zone file you can verify that the entry is working by using dig.
  299. </para>
  300. <screen>
  301. dig -t SRV _sip._udp.mydomain.com
  302. </screen>
  303. <para>
  304. The results should look something like this:
  305. </para>
  306. <para>
  307. <screen>
  308. <![CDATA[
  309. ; <<>> DiG 9.1.0 <<>> -t SRV _sip._udp.mydomain.com
  310. ;; global options: printcmd
  311. ;; Got answer:
  312. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32654
  313. ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1
  314. ;; QUESTION SECTION:
  315. ;_sip._udp.mydomain.com. IN SRV
  316. ;; ANSWER SECTION:
  317. _sip._udp.mydomain.com. 86400 IN SRV 0 0 5060 gateway.mydomain.com.
  318. ;; AUTHORITY SECTION:
  319. mydomain.com. 86400 IN NS ns3.elsewhere.com.
  320. mydomain..com 86400 IN NS gateway. mydomain.com.
  321. ;; ADDITIONAL SECTION:
  322. gateway. mydomain.com. 86400 IN A 192.168.0.150
  323. ;; Query time: 6 msec
  324. ;; SERVER: 192.168.0.150#53(192.168.0.150)
  325. ;; WHEN: Tue Dec 3 08:34:17 2002
  326. ;; MSG SIZE rcvd: 132
  327. ]]>
  328. </screen>
  329. </para>
  330. </section>
  331. <section>
  332. <title>Adding a database for client information</title>
  333. <para>
  334. By leveraging a MySQL database, we can provide support for user credentials, and
  335. keeping track of where the clients are logged on during server restarts.
  336. </para>
  337. </section>
  338. <section>
  339. <title>MySQL setup</title>
  340. <para>
  341. To install support for a MySQL database you will need to download the package
  342. ser-mysql, which is available from the same download location that you retrieved
  343. SER. This package has scripts to create the required database and establish
  344. permissions for the accounts needed. A recent release of MySQL is recommended.
  345. Earlier versions may have problems with the syntax required to set permissions on
  346. the database.
  347. </para>
  348. <para>
  349. If you do not already have a copy of MySQL installed, download it from your <ulink
  350. url="http://www.mysql.com"></ulink>
  351. </para>
  352. <para>
  353. Once you have MySQL installed and started, execute
  354. </para>
  355. <screen>
  356. /usr/sbin/ser_mysql.sh
  357. </screen>
  358. <para>
  359. You can verify that the database has been created, and correct permissions assigned
  360. by using the mysql management tool and these steps:
  361. </para>
  362. <para>
  363. <screen>
  364. Mysql&gt; select * from user;
  365. | Host | User | Password | Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | Drop_priv | Reload_priv | Shutdown_priv | Process_priv | File_priv | Grant_priv | References_priv | Index_priv | Alter_priv |
  366. | % | ser | 4e633cf914a735a0 | N | N | N | N | N | N | N | N | N | N | N | N | N | N |
  367. | localhost | ser | 4e633cf914a735a0 | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | Y | Y |
  368. | % | serro | 7cb73a267cb7bd5f | N | N | N | N | N | N | N | N | N | N | N | N | N | N |
  369. | localhost | serro | 7cb73a267cb7bd5f | Y | N | N | N | N | N | N | N | N | N | N | N | N | N |
  370. </screen>
  371. </para>
  372. <para>
  373. The above results show that the two user, ser and serro, have been created and
  374. granted the permissions needed to access the database. Note that in the above
  375. example the permissions have been modified to deny access to these accounts from any
  376. system(%) other than local host.
  377. </para>
  378. <para>
  379. <screen>
  380. mysql&gt; connect ser;
  381. Connection id: 294
  382. Current database: ser
  383. mysql> show tables;
  384. +-----------------+
  385. | Tables_in_ser |
  386. +-----------------+
  387. | acc |
  388. | active_sessions |
  389. | aliases |
  390. | config |
  391. | event |
  392. | grp |
  393. | location |
  394. | missed_calls |
  395. | pending |
  396. | phonebook |
  397. | reserved |
  398. | silo |
  399. | subscriber |
  400. | version |
  401. +-----------------+
  402. 14 rows in set (0.00 sec)
  403. mysql&gt; select * from subscriber;
  404. | phplib_id | USERNAME | PASSWORD | FIRST_NAME | LAST_NAME | PHONE | EMAIL_ADDRESS | DATETIME_CREATED | DATETIME_MODIFIED | confirmation | flag | SendNotification | Greeting | HA1 | REALM | ha1b | perms | allow_find | timezone |
  405. | 4cefa7a4d3c8c2dbf6328520bd873a19 | admin | heslo | first | admin | 557-8469 | [email protected] | 2002-12-02 19:20:41 | 2002-12-02 20:29:46 | 80e0f273b2067d40277b49ff842bb9e3 | o | | | c79a8f8f08596baa84bb02c88884426d | iptel.org | f322c94b8b2fbe557d43ab3ac9e05b3a | admin | 1 | America/Los_Angeles |
  406. </screen>
  407. </para>
  408. <para>
  409. This last query shows that you have one user account defined and it has
  410. administrator privileges.
  411. </para>
  412. <para>
  413. We'll need to add another account to be the administrator for your realm, which we
  414. will do after the next section.
  415. </para>
  416. </section>
  417. </section>
  418. <section id="configuration">
  419. <title>Configuration</title>
  420. <section>
  421. <title>Modify SER configuration</title>
  422. <para>
  423. Now that we have a working MySQL database, we need to modify the configuration file
  424. for ser, located on a RedHat, installed in /etc/ser/ser.cfg. The following changes
  425. need to be made:
  426. </para>
  427. <para>
  428. To enable support for the new MySQL database we need to load the appropriate module.
  429. That is accomplished by uncomment this line:
  430. </para>
  431. <screen>
  432. loadmodule "/usr/lib/ser/modules/mysql.so
  433. </screen>
  434. <para>
  435. Next we need to set SER to use the database and write changes instead of just
  436. caching them in memory. This is done by means of commenting this line:
  437. </para>
  438. <screen>
  439. modparam ("usrloc", "db_mode", 0)
  440. </screen>
  441. <para>
  442. And uncomment this line:
  443. </para>
  444. <screen>
  445. modparam ("usrloc", "db_mode", 2)
  446. </screen>
  447. <para>
  448. Note on db_modes:
  449. </para>
  450. <para>
  451. <itemizedlist>
  452. <listitem>
  453. <para>
  454. Mode 0
  455. </para>
  456. <para>
  457. Disables writes to the database. Contact information will not be
  458. preserved if the server is restarted.
  459. </para>
  460. </listitem>
  461. <listitem>
  462. <para>
  463. Mode 1
  464. </para>
  465. <para>
  466. Writes all changes to the database immediately. Contact information is
  467. saved to the database immediately. This can slow the response to
  468. clients as they connect.
  469. </para>
  470. </listitem>
  471. <listitem>
  472. <para>
  473. Mode 2
  474. </para>
  475. <para>
  476. Periodically writes contact information to the database based in the in
  477. memory cache.
  478. </para>
  479. </listitem>
  480. </itemizedlist>
  481. </para>
  482. <para>
  483. To enable digest authentication we additionally need to uncomment the following two lines:
  484. </para>
  485. <screen>
  486. loadmodule "/usr/lib/ser/modules/auth.so"
  487. loadmodule "/usr/lib/ser/modules/auth_db.so"
  488. </screen>
  489. <para>
  490. We have the option of storing passwords in our database in plain text. This allows
  491. for password recovery and makes the initial setup and testing easier. To enable
  492. this feature uncomment these lines:
  493. </para>
  494. <screen>
  495. modparam ("auth_db", "calculate_ha1", yes)
  496. modparam ("auth_db", "password_column", "password")
  497. </screen>
  498. <para>
  499. These lines work together. The first tells SER to generate a hash based on
  500. username, password and realm. The second tells SER where to look for the plain-text
  501. password in the database.
  502. </para>
  503. <para>
  504. Uncomment these lines and change all instances of iptel.org to your domain
  505. </para>
  506. <para>
  507. <screen>
  508. if (!www_authorize("mydomain.com", "subscriber")) {
  509. www_challenge("mydomain.com", "0");
  510. break;
  511. };
  512. </screen>
  513. </para>
  514. <para>
  515. We're now ready to restart ser. On RedHat use
  516. </para>
  517. <screen>
  518. /etc/rc.d/init.d/ser restart
  519. </screen>
  520. </section>
  521. <section>
  522. <title>Adding an admin for your realm</title>
  523. <para>
  524. Now that we have a working database and ser is configured to use it, we need to add
  525. some users and at least one of them should have administrator privileges. The
  526. administrator role becomes important if you want to use a web management tool such
  527. as serweb.
  528. </para>
  529. <para>
  530. Basic account manipulation can be performed with the serctl script, located in
  531. /usr/sbin.
  532. </para>
  533. <para>
  534. To add a user use these commands
  535. </para>
  536. <screen>
  537. serctl add JoeUser qwerty [email protected]
  538. </screen>
  539. <para>
  540. The system notify for "Type MySQL Password", the default password is
  541. "heslo"
  542. </para>
  543. <para>
  544. To make JoeUser an administrator, we need to login to MySQL and modify the database.
  545. </para>
  546. <para>
  547. <screen>
  548. mysql&gt; connect ser;
  549. mysql&gt; update subscriber set perms=?admin? where USER_ID=?JoeUser?;
  550. Query OK, 1 row affected (0.00 sec)
  551. Rows matched: 1 Changed: 1 Warnings: 0
  552. mysql&gt; select * from subscriber;
  553. | 4cefa7a4d3c8c2dbf6328520bd873a19 | JoeUser | qwerty | | | | [email protected] | 2002-12-02 19:20:41 | 2002-12-02 20:29:46 | 80e0f273b2067d40277b49ff842bb9e3 | o | | | c79a8f8f08596baa84bb02c88884426d | mydomain.com | f322c94b8b2fbe557d43ab3ac9e05b3a | admin | 1 | America/Los_Angeles |
  554. </screen>
  555. </para>
  556. <para>
  557. The third from last field shows that Joe has been assigned admin privileges.
  558. </para>
  559. <para>
  560. At this point Joe can login to our server, but since he is the only user, there is
  561. not much he can do. We can now add additional users using the serctl script, or now
  562. is a good time to look at installing serweb, which will allow users to subscribe to
  563. our service.
  564. </para>
  565. </section>
  566. <section>
  567. <title>More on serctl</title>
  568. <para>
  569. The script serctl can be used to manage users, access control lists, in memory
  570. contacts, and to monitor server health. Executing serctl with no arguments will
  571. produce this output:
  572. </para>
  573. <para>
  574. <screen>
  575. usage:
  576. * subscribers *
  577. add &lt;username&gt; &lt;password&gt; &lt;email&gt; .. add a new subscriber (*)
  578. passwd &lt;username&gt; &lt;passwd&gt; ......... change user's password (*)
  579. rm &lt;username&gt; ...................... delete a user (*)
  580. mail &lt;username&gt; .................... send an email to a user
  581. alias show [&lt;alias&gt;] ............... show aliases
  582. alias rm &lt;alias&gt; ................... remove an alias
  583. alias add &lt;alias&gt; &lt;uri&gt; ............ add an aliases
  584. * access control lists *
  585. acl show [&lt;username&gt;] .............. show user membership
  586. acl grant &lt;username&gt; &lt;group&gt; ....... grant user membership (*)
  587. acl revoke &lt;username&gt; [&lt;group&gt;] .... grant user membership(s) (*)
  588. * usrloc *
  589. ul show [&lt;username&gt;]................ show in-RAM online users
  590. ul rm &lt;username&gt; ................... delete user's UsrLoc entries
  591. ul add &lt;username&gt; &lt;uri&gt; ............ introduce a permanent UsrLoc entry
  592. showdb [&lt;username&gt;] ................ show online users flushed in DB
  593. * control and diagnostic *
  594. moni ... show internal status start .... start ser
  595. ps ..... show running processes stop ..... stop ser
  596. fifo ... send raw FIFO commands restart .. restart ser
  597. ping &lt;uri&gt; .. ping a URI (OPTIONS)
  598. cisco_restart &lt;uri&gt; .. restart a Cisco phone (NOTIFY)
  599. Commands labeled with (*) will prompt for a MySQL password.
  600. If the variable PW is set, the password will not be prompted.
  601. ACL privileges are: local ld int voicemail free-pstn
  602. </screen>
  603. </para>
  604. </section>
  605. <section>
  606. <title>Adding and deleting users with serctl</title>
  607. <para>
  608. User account management is performed with these commands:
  609. </para>
  610. <screen>
  611. serctl add
  612. serctl password
  613. serctl rm
  614. </screen>
  615. <para>
  616. The contents of the in memory cache can be managed with the ul argument. Care must
  617. be taken to with these commands. For example:
  618. </para>
  619. <screen>
  620. serctl ul rm joe
  621. </screen>
  622. <para>
  623. Will remove the current contact information about Joe from memory
  624. </para>
  625. <para>
  626. Whereas "serctl rm joe" will delete joe's account.
  627. </para>
  628. </section>
  629. <section>
  630. <title>Examining in memory cache with serctl</title>
  631. <para>
  632. The command "serctl ul show" will list any currently registered
  633. clients. The output will look like this:
  634. </para>
  635. <para>
  636. <screen>
  637. ===Domain list===
  638. ---Domain---
  639. name : 'location'
  640. size : 512
  641. table: 0x402ee6d0
  642. d_ll {
  643. n : 2
  644. first: 0x402f1a74
  645. last : 0x402f089c
  646. }
  647. lock : 0
  648. ...Record(0x402f1a74)...
  649. domain: 'location'
  650. aor : 'test'
  651. ~~~Contact(0x402f708c)~~~
  652. domain : 'location'
  653. aor : 'test'
  654. Contact: 'sip:[email protected]:5060'
  655. Expires: 2501
  656. q : 0.00
  657. Call-ID: '[email protected]'
  658. CSeq : 101
  659. State : CS_SYNC
  660. next : (nil)
  661. prev : (nil)
  662. ~~~/Contact~~~~
  663. .../Record...
  664. ...Record(0x402f089c)...
  665. domain: 'location'
  666. aor : 'joe'
  667. ~~~Contact(0x402f0924)~~~
  668. domain : 'location'
  669. aor : 'joe'
  670. Contact: 'sip:192.168.0.101:14354'
  671. Expires: 432
  672. q : 0.00
  673. Call-ID: '[email protected]'
  674. CSeq : 11
  675. State : CS_SYNC
  676. next : (nil)
  677. prev : (nil)
  678. ~~~/Contact~~~~
  679. .../Record...
  680. ---/Domain---
  681. ===/Domain list===
  682. </screen>
  683. </para>
  684. </section>
  685. <section>
  686. <title>Examining server status</title>
  687. <para>
  688. Two commands can be used to check the health of the server. The first command
  689. serctl ps returns a list of all SER related processes, the ip address and the port
  690. they are listening on. For example:
  691. </para>
  692. <para>
  693. <screen>
  694. [root@gateway /root]# serctl ps
  695. 0 31029 attendant
  696. 1 31033 receiver child=0 sock=0 @ 127.0.0.1::5060
  697. 2 31034 receiver child=1 sock=0 @ 127.0.0.1::5060
  698. 3 31035 receiver child=2 sock=0 @ 127.0.0.1::5060
  699. 4 31036 receiver child=3 sock=0 @ 127.0.0.1::5060
  700. 5 31037 receiver child=0 sock=1 @ 192.168.0.1::5060
  701. 6 31038 receiver child=1 sock=1 @ 192.168.0.1::5060
  702. 7 31039 receiver child=2 sock=1 @ 192.168.0.1::5060
  703. 8 31040 receiver child=3 sock=1 @ 192.168.0.1::5060
  704. 9 31049 fifo server
  705. 10 31072 timer
  706. </screen>
  707. </para>
  708. <para>
  709. The second command, serctl monitor, shows the server version, uptime, pending and
  710. completed transactions, and the number of major category responses the server has
  711. sent. Another example:
  712. </para>
  713. <para>
  714. <screen>
  715. [cycle #: 1; if constant make sure server lives and fifo is on]
  716. Server: Sip EXpress router (0.8.11 (i386/linux)
  717. Now: Wed Dec 4 10:13:02 2002
  718. Up Since: Mon Dec 2 21:21:11 2002
  719. Up time: 132711 [sec]
  720. Transaction Statistics
  721. Current: 0 (2 waiting) Total: 46 (0 local)
  722. Replied localy: 37
  723. Completion status 6xx: 0, 5xx: 0, 4xx: 23, 3xx: 0,2xx: 22
  724. Stateless Server Statistics
  725. 200: 101 202: 0 2xx: 0
  726. 300: 0 301: 0 302: 0 3xx: 0
  727. 400: 0 401: 0 403: 0 404: 132 407: 0 408: 0 483: 1 4xx: 0
  728. 500: 0 5xx: 0
  729. 6xx: 0
  730. xxx: 0
  731. failures: 0
  732. UsrLoc Stats
  733. Domain Registered Expired
  734. 'location' 2 2
  735. </screen>
  736. </para>
  737. </section>
  738. </section>
  739. <section>
  740. <title>Installing SERWeb</title>
  741. <para>
  742. The SERweb package can be downloaded from <ulink
  743. url="ftp://ftp.berlios.de/ser/latest/serweb"></ulink>
  744. </para>
  745. <para>
  746. The pages associated with SERweb provide a starting point to customize your SIP user
  747. account management tools.
  748. </para>
  749. <section>
  750. <title><acronym>PHP</acronym> configuration</title>
  751. <para>
  752. Go to <acronym>PHP</acronym> configuration file in /etc/php.ini and change
  753. "register_globals = Off" to "On"
  754. </para>
  755. </section>
  756. <section>
  757. <title>Installing SERweb default configuration</title>
  758. <para>
  759. If you are installing this package on a server that does not host any other web
  760. pages, you can simply extract the files to the document directory of your web
  761. server. This presumes that you have a working Web Server.
  762. </para>
  763. </section>
  764. <section>
  765. <title>Installing SERweb custom file locations</title>
  766. <para>
  767. In case your server performs multiple functions, and you want to just add the SERweb
  768. tools to an existing web site, we will need to make changes to a number of the php
  769. files. The following examples are from an Apache 2.0 on RedHat.
  770. </para>
  771. <para>
  772. Unzip the files into a temporary directory, such as /root/serweb. The directory
  773. will contain these files:
  774. </para>
  775. <para>
  776. <screen>
  777. -rw-rw-r-- 1 827 2020 18561 Sep 25 16:31 COPYING
  778. drwxr-xr-x 2 827 2020 1024 Nov 27 16:43 CVS
  779. -rw-rw-r-- 1 827 2020 529 Sep 25 16:29 README
  780. drwxr-xr-x 7 827 2020 1024 Nov 27 22:24 html
  781. drwxr-xr-x 3 827 2020 2048 Sep 26 10:26 phplib
  782. </screen>
  783. </para>
  784. <para>
  785. On the Linux RedHat Version 8 root directory on web server is /var/www/html/
  786. </para>
  787. <para>
  788. Move the html directory to the root of your web server:
  789. </para>
  790. <screen>
  791. mv html /var/www/html/htdocs/serweb
  792. </screen>
  793. <para>
  794. Move the phplib directory to your web server application directory:
  795. </para>
  796. <screen>
  797. mv phplib /var/www/html/phplib
  798. </screen>
  799. <para>
  800. Following files must be updated with this "new" path to the libraries:
  801. </para>
  802. <screen>
  803. ./admin/prepend.php
  804. ./user_interface/prepend.php
  805. ./user_interface/reg/prepend.php
  806. </screen>
  807. <para>
  808. For these files the variable: $_PHPLIB["libdir"] =
  809. "../../phplib/"; becomes $_PHPLIB["libdir"] =
  810. "../../../phplib/";
  811. </para>
  812. <para>
  813. In the ./admin directory edit the files acl.php, index.php, and users.php will need
  814. their path to the forms library updated. For this example, add ../ to the existing
  815. line
  816. </para>
  817. <screen>
  818. :require "../../../phplib/oohforms.inc";
  819. </screen>
  820. <para>
  821. In the ./user_interface directory the following files need the same change:
  822. </para>
  823. <para>
  824. accounting.php, find_user.php, index.php, missed_calls.php, my_account.php,
  825. phonebook.php, send_im.php, notification_subscription.php
  826. </para>
  827. <para>
  828. Next these files in ./user_interface/reg need the same change, with an additional
  829. ../:
  830. </para>
  831. <para>
  832. Finish.php, get_pass.php, index.php
  833. </para>
  834. <para>
  835. The last changes occur in the config.php file to provide the
  836. location for graphic files, style sheets and time zone
  837. information. Update the following variables:
  838. </para>
  839. <screen>
  840. $this->root_path="/serweb/";
  841. $this->fifo_server = "/tmp/ser_fifo";
  842. $this->zonetab_file = "/usr/share/zoneinfo/zone.tab";
  843. //TZ zone descriptions file, usually: /usr/share/zoneinfo/zone.tab
  844. </screen>
  845. <para>
  846. Find two variables: "$this->mail_forgot_pass=","
  847. $this->mail_register=" and change line
  848. http://oook/~iptel/user_interface/reg/confirmation.php?nr=#confirm#\n\n
  849. </para>
  850. <para>
  851. with line
  852. </para>
  853. <para>
  854. http://".$_SERVER['HTTP_HOST']."/htdocs/serweb/user_interface/reg/confirmation.php?nr=#confirm#\n\n
  855. </para>
  856. <para>
  857. This will insure sending a registration feedback mail to SIP server using its IP
  858. address
  859. </para>
  860. </section>
  861. <section>
  862. <title>Modifying SERweb configuration general</title>
  863. <para>
  864. We need to update /usr/local/apache/htdocs/serweb/config.php to represent our realm.
  865. The following variables need to be changed to our domain:
  866. </para>
  867. <para>
  868. <screen>
  869. $this->realm="mydomain.com";
  870. $this->domainname=" mydomain.com";
  871. $this->web_contact="sip:JoeUser@ mydomain.com";
  872. //address of pseudo sender
  873. </screen>
  874. </para>
  875. <screen>
  876. $this->default_domain=" mydomain.com";
  877. $this->mail_header_from="Registration@ mydomain.com";
  878. </screen>
  879. <para>
  880. </para>
  881. <para>
  882. Additionally we will want to modify the section for Terms and Conditions, either
  883. replacing it with appropriate language for our services, or at least replacing
  884. iptel.org with our domain information.
  885. </para>
  886. </section>
  887. </section>
  888. <section id="issues_and_limitation">
  889. <title>Issues And Limitation</title>
  890. <para>
  891. Since one of the design goals behind SIP is to decentralize the intelligence in
  892. communications handling, a basic tenant is that SIP clients need to be able to
  893. communicate directly with each other. The problem is that many clients find themselves
  894. either behind a firewall or in a NAT fronted address space. When a client registers
  895. with the SIP server, it tells the server what it is using for an IP address, and that
  896. address may not be accessible to the public.
  897. </para>
  898. <section>
  899. <title>More on NAT</title>
  900. <para>
  901. There are a couple of ways that we can overcome the problem that NAT introduces.
  902. Some SIP client providers are building in options into their products that allow the
  903. user to identify the IP address that their phone will appear as to the public. This
  904. is a nice simple approach, but presumes that the person installing the client knows
  905. what that IP address is, and that it doesn't change. Cisco has built this feature
  906. into their 79XX series SIP phones.
  907. </para>
  908. <para>
  909. A second solution that is working its way through the standards process is called
  910. <quote>Simple Traversal of UDP through NAT</quote>, or <acronym>STUN</acronym>.
  911. A <acronym>STUN</acronym> equipped client is configured to send a who-am-I packet to
  912. a known server on the public network. That server will respond with the IP
  913. address that the client appears to be communicating from, and the client can then
  914. use that address to register with the SIP server. Phones that leverage
  915. <acronym>STUN</acronym> include: Snom 100, kphone, and sipc .
  916. </para>
  917. </section>
  918. <section>
  919. <title>Firewalls</title>
  920. <para>
  921. SIP clients also present an interesting challenge to configuring a firewall. During
  922. registration the SIP client will be assigned a UDP port in the range of 16384 to
  923. 32768. Our firewall administrators will not happily open up all of those ports to
  924. all of the internal systems, on the chance that a SIP connection may be needed.
  925. </para>
  926. <para>
  927. This is where the concept of a Firewall Control Protocol, or <acronym>FCP</acronym>,
  928. comes into play. The design idea is that when a SIP client registers, a
  929. <acronym>FCP</acronym> agent, or server if you prefer, will dynamically insert a new
  930. rule into the firewall policy to permit that client to participate in SIP
  931. conversations.
  932. </para>
  933. </section>
  934. </section>
  935. <section id="diagnostics">
  936. <title>Diagnostics And Tools</title>
  937. <para>
  938. Detailed information about the communications between clients and the SIP server is
  939. needed to isolate problems. Two tools that can be used to gather such information are
  940. sipsak and ngrep.
  941. </para>
  942. <section>
  943. <title>ngrep</title>
  944. <para>
  945. Ngrep is a capable of listening in on network traffic and filtering it in much the
  946. same way as grep can locate patterns in files. To monitor the communications
  947. between a client, joe, and the server the following command would be run on the
  948. server:
  949. </para>
  950. <screen>
  951. ngrep -n 5060 -d eth0 joe
  952. </screen>
  953. <para>
  954. Since SIP communications are <acronym>ASCII</acronym> based, all events such as
  955. REGISTER, INVITE, SUBSCRIBE, etc. are captured. The output of ngrep can identify
  956. problems with SIP addresses, or client identity.
  957. </para>
  958. <para>
  959. Ngrep should be part of most modern distributions, or can be downloaded from <ulink
  960. url="http://sourceforge.net/projects/ngrep/"></ulink>
  961. </para>
  962. </section>
  963. <section>
  964. <title>Sipsak</title>
  965. <para>
  966. Sipsak can be used to determine if your server is responding to requests, and provide information on
  967. how your server would route SIP connections. Sipsak and basic documentation on its use can be
  968. downloaded from <ulink url="http://sipsak.berlios.de"></ulink>
  969. </para>
  970. </section>
  971. </section>
  972. <section id="client_configuration">
  973. <title>Client Configuration</title>
  974. <section>
  975. <title>Microsoft Messenger 4.6</title>
  976. <para>
  977. Microsoft Messenger 4.6 can be configured as a SIP client by selecting Tools\Options\Accounts and
  978. selecting Communications Service for the account sign in. Clear the check boxes for .NET Passport
  979. and Exchange Account. Check the Communications Service account and enter your SIP account name.
  980. Click on Advanced and select Configure settings. Enter the IP address of your server, or hostname
  981. and choose UDP.
  982. </para>
  983. </section>
  984. <section>
  985. <title>Cisco 79XX phones</title>
  986. <para>
  987. Cisco has complete documentation on how to convert a 79XX series phone to use SIP.
  988. The basic steps are:
  989. </para>
  990. <section>
  991. <title>Configure a <acronym>DHCP</acronym> service that provides</title>
  992. <para>
  993. <itemizedlist>
  994. <listitem>
  995. <para>
  996. IP address
  997. </para>
  998. </listitem>
  999. <listitem>
  1000. <para>
  1001. Subnet mask
  1002. </para>
  1003. </listitem>
  1004. <listitem>
  1005. <para>
  1006. Default gateway
  1007. </para>
  1008. </listitem>
  1009. <listitem>
  1010. <para>
  1011. <acronym>DNS</acronym> server addresses
  1012. </para>
  1013. </listitem>
  1014. <listitem>
  1015. <para>
  1016. <acronym>TFTP</acronym> server address
  1017. </para>
  1018. </listitem>
  1019. </itemizedlist>
  1020. </para>
  1021. </section>
  1022. <section>
  1023. <title>On the <acronym>TFTP</acronym> server load these files</title>
  1024. <para>
  1025. <itemizedlist>
  1026. <listitem>
  1027. <para>
  1028. OS79XX - Identifies which firmware the phone should load with no
  1029. extension. Example: P0S3-04-1-00
  1030. </para>
  1031. </listitem>
  1032. <listitem>
  1033. <para>
  1034. P0S3-04-1-00.bin - The firmware image
  1035. </para>
  1036. </listitem>
  1037. <listitem>
  1038. <para>
  1039. SIPDefault.cnf - Site wide configuration options
  1040. </para>
  1041. </listitem>
  1042. <listitem>
  1043. <para>
  1044. SIPmacaddress.cnf - Phone specific settings, including login name
  1045. and password. Example: SIP000A8A93D466.cnf
  1046. </para>
  1047. </listitem>
  1048. <listitem>
  1049. <para>
  1050. RINGLIST.DAT, ringer1.pcm, ringer2.pcm - ring tones
  1051. </para>
  1052. </listitem>
  1053. </itemizedlist>
  1054. </para>
  1055. <para>
  1056. Each time the phone is powered on it will tftp download OS79XX and determine if
  1057. it needs a firmware update. If no update is needed the next step is to download
  1058. SIPDefault.cnf, SIPmacaddress.cnf, and optionally a dial plan, ringlist and ring
  1059. tones.
  1060. </para>
  1061. <para>
  1062. Calls can be placed to other registered SIP clients, or to a PSTN number
  1063. provided there is PSTN gateway identified in the SER configuration file.
  1064. </para>
  1065. </section>
  1066. </section>
  1067. </section>
  1068. <section id="pstn_connectivity">
  1069. <title>PSTN Connectivity</title>
  1070. <para>
  1071. Passing calls that originate from a SIP client to the PSTN is a simple matter of
  1072. permitting SER to relay the session to an established PSTN gateway. Calls that start
  1073. out on the PSTN and need to be directed to a SIP client requires that the PSTN gateway
  1074. be aware of where to direct the call.
  1075. </para>
  1076. <section>
  1077. <title>Cisco Dial-peer</title>
  1078. <para>
  1079. The Cisco gateway needs to have a PSTN interface, such as FXO ports or a VXB-2TE1+
  1080. card, and depending on the model of Cisco device an upgraded IOS revision. The
  1081. dial-peer itself is simple:
  1082. </para>
  1083. <para>
  1084. dial-peer voice 999 voip
  1085. </para>
  1086. <para>
  1087. destination-pattern 555999. ** Associate the number range 555-9990 to 9999 with our
  1088. SIP server
  1089. </para>
  1090. <para>
  1091. session protocol sipv2 ** Set this dial-peer to use SIP instead of Cisco protocols
  1092. </para>
  1093. <para>
  1094. session target sip-server ** Send the call to our SIP server. See SIP-UA below
  1095. </para>
  1096. <para>
  1097. codec g711ulaw ** Set the default codec to 711-Ulaw (common codec between clients)
  1098. </para>
  1099. <para>
  1100. !
  1101. </para>
  1102. <para>
  1103. sip-ua
  1104. </para>
  1105. <para>
  1106. sip-server ipv4:192.168.0.1 ** IP address of our SIP server
  1107. </para>
  1108. </section>
  1109. <section>
  1110. <title>Relaying PSTN in ser.cfg</title>
  1111. <para>
  1112. The following is an extremely simple sample of how to relay a call from a SIP client
  1113. to the PSTN
  1114. </para>
  1115. <para>
  1116. <screen>
  1117. # attempt handoff to PSTN
  1118. if (uri=~<quote>^sip:9[0-9]*@mydomain.com</quote>) { ## This assumes that the caller is
  1119. log(<quote>Forwarding to PSTN\n</quote>); ## registered in our realm
  1120. t_relay_to( <quote>192.168.0.2</quote>, <quote>5060</quote>); ## Our Cisco router
  1121. break;
  1122. };
  1123. </screen>
  1124. </para>
  1125. </section>
  1126. </section>
  1127. <section id="sip_status_codes">
  1128. <title>SIP Status Codes</title>
  1129. <para>
  1130. The following are the SIP status codes as of RFC3261;
  1131. </para>
  1132. <para>
  1133. <table><title>1XX-2XX Informational</title>
  1134. <tgroup cols="2">
  1135. <tbody>
  1136. <row>
  1137. <entry>
  1138. 100
  1139. </entry>
  1140. <entry>
  1141. Trying
  1142. </entry>
  1143. </row>
  1144. <row>
  1145. <entry>
  1146. 180
  1147. </entry>
  1148. <entry>
  1149. Ringing
  1150. </entry>
  1151. </row>
  1152. <row>
  1153. <entry>
  1154. 181
  1155. </entry>
  1156. <entry>
  1157. Call Is Being Forwarded
  1158. </entry>
  1159. </row>
  1160. <row>
  1161. <entry>
  1162. 182
  1163. </entry>
  1164. <entry>
  1165. Queued
  1166. </entry>
  1167. </row>
  1168. <row>
  1169. <entry>
  1170. 183
  1171. </entry>
  1172. <entry>
  1173. Session Progress
  1174. </entry>
  1175. </row>
  1176. <row>
  1177. <entry>
  1178. 200
  1179. </entry>
  1180. <entry>
  1181. OK
  1182. </entry>
  1183. </row>
  1184. <row>
  1185. <entry>
  1186. 202
  1187. </entry>
  1188. <entry>
  1189. OK
  1190. </entry>
  1191. </row>
  1192. </tbody>
  1193. </tgroup>
  1194. </table>
  1195. </para>
  1196. <para>
  1197. <table><title>3XX Redirection</title>
  1198. <tgroup cols='2'>
  1199. <tbody>
  1200. <row>
  1201. <entry>
  1202. 300
  1203. </entry>
  1204. <entry>
  1205. Multiple Choices
  1206. </entry>
  1207. </row>
  1208. <row>
  1209. <entry>
  1210. 301
  1211. </entry>
  1212. <entry>
  1213. Moved Permanently
  1214. </entry>
  1215. </row>
  1216. <row>
  1217. <entry>
  1218. 303
  1219. </entry>
  1220. <entry>
  1221. See Other
  1222. </entry>
  1223. </row>
  1224. <row>
  1225. <entry>
  1226. 305
  1227. </entry>
  1228. <entry>
  1229. Use Proxy
  1230. </entry>
  1231. </row>
  1232. <row>
  1233. <entry>
  1234. 380
  1235. </entry>
  1236. <entry>
  1237. Alternative Service
  1238. </entry>
  1239. </row>
  1240. </tbody>
  1241. </tgroup>
  1242. </table>
  1243. </para>
  1244. <para>
  1245. <table><title>4XX Client-Error</title>
  1246. <tgroup cols='2'>
  1247. <tbody>
  1248. <row>
  1249. <entry>
  1250. 400
  1251. </entry>
  1252. <entry>
  1253. Bad Request
  1254. </entry>
  1255. </row>
  1256. <row>
  1257. <entry>
  1258. 401
  1259. </entry>
  1260. <entry>
  1261. Unauthorized
  1262. </entry>
  1263. </row>
  1264. <row>
  1265. <entry>
  1266. 402
  1267. </entry>
  1268. <entry>
  1269. Payment Required
  1270. </entry>
  1271. </row>
  1272. <row>
  1273. <entry>
  1274. 403
  1275. </entry>
  1276. <entry>
  1277. Forbidden
  1278. </entry>
  1279. </row>
  1280. <row>
  1281. <entry>
  1282. 404
  1283. </entry>
  1284. <entry>
  1285. Not Found
  1286. </entry>
  1287. </row>
  1288. <row>
  1289. <entry>
  1290. 405
  1291. </entry>
  1292. <entry>
  1293. Method Not Allowed
  1294. </entry>
  1295. </row>
  1296. <row>
  1297. <entry>
  1298. 406
  1299. </entry>
  1300. <entry>
  1301. Not Acceptable
  1302. </entry>
  1303. </row>
  1304. <row>
  1305. <entry>
  1306. 407
  1307. </entry>
  1308. <entry>
  1309. Proxy Authentication Required
  1310. </entry>
  1311. </row>
  1312. <row>
  1313. <entry>
  1314. 408
  1315. </entry>
  1316. <entry>
  1317. Request Timeout
  1318. </entry>
  1319. </row>
  1320. <row>
  1321. <entry>
  1322. 409
  1323. </entry>
  1324. <entry>
  1325. Conflict
  1326. </entry>
  1327. </row>
  1328. <row>
  1329. <entry>
  1330. 410
  1331. </entry>
  1332. <entry>
  1333. Gone
  1334. </entry>
  1335. </row>
  1336. <row>
  1337. <entry>
  1338. 411
  1339. </entry>
  1340. <entry>
  1341. Length Required
  1342. </entry>
  1343. </row>
  1344. <row>
  1345. <entry>
  1346. 413
  1347. </entry>
  1348. <entry>
  1349. Request Entity Too Large
  1350. </entry>
  1351. </row>
  1352. <row>
  1353. <entry>
  1354. 414
  1355. </entry>
  1356. <entry>
  1357. Request-URI Too Large
  1358. </entry>
  1359. </row>
  1360. <row>
  1361. <entry>
  1362. 415
  1363. </entry>
  1364. <entry>
  1365. Unsupported Media Type
  1366. </entry>
  1367. </row>
  1368. <row>
  1369. <entry>
  1370. 420
  1371. </entry>
  1372. <entry>
  1373. Bad Extension
  1374. </entry>
  1375. </row>
  1376. <row>
  1377. <entry>
  1378. 480
  1379. </entry>
  1380. <entry>
  1381. Temporarily not available
  1382. </entry>
  1383. </row>
  1384. <row>
  1385. <entry>
  1386. 481
  1387. </entry>
  1388. <entry>
  1389. Call Leg/Transaction does not exist
  1390. </entry>
  1391. </row>
  1392. <row>
  1393. <entry>
  1394. 482
  1395. </entry>
  1396. <entry>
  1397. Loop Detected
  1398. </entry>
  1399. </row>
  1400. <row>
  1401. <entry>
  1402. 483
  1403. </entry>
  1404. <entry>
  1405. Too Many Hops
  1406. </entry>
  1407. </row>
  1408. <row>
  1409. <entry>
  1410. 484
  1411. </entry>
  1412. <entry>
  1413. Address Incomplete
  1414. </entry>
  1415. </row>
  1416. <row>
  1417. <entry>
  1418. 485
  1419. </entry>
  1420. <entry>
  1421. Ambiguous
  1422. </entry>
  1423. </row>
  1424. <row>
  1425. <entry>
  1426. 486
  1427. </entry>
  1428. <entry>
  1429. Busy Here
  1430. </entry>
  1431. </row>
  1432. <row>
  1433. <entry>
  1434. 487
  1435. </entry>
  1436. <entry>
  1437. Request Terminated
  1438. </entry>
  1439. </row>
  1440. <row>
  1441. <entry>
  1442. 488
  1443. </entry>
  1444. <entry>
  1445. Not Acceptable Here
  1446. </entry>
  1447. </row>
  1448. <row>
  1449. <entry>
  1450. 489
  1451. </entry>
  1452. <entry>
  1453. Bad Event
  1454. </entry>
  1455. </row>
  1456. <row>
  1457. <entry>
  1458. 491
  1459. </entry>
  1460. <entry>
  1461. Request Pending
  1462. </entry>
  1463. </row>
  1464. <row>
  1465. <entry>
  1466. 493
  1467. </entry>
  1468. <entry>
  1469. Undecipherable
  1470. </entry>
  1471. </row>
  1472. </tbody>
  1473. </tgroup>
  1474. </table>
  1475. </para>
  1476. <para>
  1477. <table><title>5XX Server-Error</title>
  1478. <tgroup cols='2'>
  1479. <tbody>
  1480. <row>
  1481. <entry>
  1482. 500
  1483. </entry>
  1484. <entry>
  1485. Internal Server Error
  1486. </entry>
  1487. </row>
  1488. <row>
  1489. <entry>
  1490. 501
  1491. </entry>
  1492. <entry>
  1493. Not Implemented
  1494. </entry>
  1495. </row>
  1496. <row>
  1497. <entry>
  1498. 502
  1499. </entry>
  1500. <entry>
  1501. Bad Gateway
  1502. </entry>
  1503. </row>
  1504. <row>
  1505. <entry>
  1506. 503
  1507. </entry>
  1508. <entry>
  1509. Service Unavailable
  1510. </entry>
  1511. </row>
  1512. <row>
  1513. <entry>
  1514. 504
  1515. </entry>
  1516. <entry>
  1517. Gateway Time-out
  1518. </entry>
  1519. </row>
  1520. <row>
  1521. <entry>
  1522. 505
  1523. </entry>
  1524. <entry>
  1525. SIP Version not supported
  1526. </entry>
  1527. </row>
  1528. <row>
  1529. <entry>
  1530. 513
  1531. </entry>
  1532. <entry>
  1533. Message Too Large
  1534. </entry>
  1535. </row>
  1536. <row>
  1537. <entry>
  1538. 580
  1539. </entry>
  1540. <entry>
  1541. Precondition Failure
  1542. </entry>
  1543. </row>
  1544. </tbody>
  1545. </tgroup>
  1546. </table>
  1547. </para>
  1548. <para>
  1549. <table><title>6XX Global-Failure</title>
  1550. <tgroup cols='2'>
  1551. <tbody>
  1552. <row>
  1553. <entry>
  1554. 600
  1555. </entry>
  1556. <entry>
  1557. Busy Everywhere
  1558. </entry>
  1559. </row>
  1560. <row>
  1561. <entry>
  1562. 603
  1563. </entry>
  1564. <entry>
  1565. Decline
  1566. </entry>
  1567. </row>
  1568. <row>
  1569. <entry>
  1570. 604
  1571. </entry>
  1572. <entry>
  1573. Does Note Exist Anywhere
  1574. </entry>
  1575. </row>
  1576. <row>
  1577. <entry>
  1578. 606
  1579. </entry>
  1580. <entry>
  1581. Not Acceptable
  1582. </entry>
  1583. </row>
  1584. </tbody>
  1585. </tgroup>
  1586. </table>
  1587. </para>
  1588. </section>
  1589. </section>