Browse code

* Core, etc, documentation: renamed ser to sip-router

* Renamed ser to sip-router in Makefile, etc files and some core files.
* Renamed some etc files from ser based name to sip-router based name.

Juha Heinanen authored on 24/06/2009 12:44:10
Showing 15 changed files
... ...
@@ -3,30 +3,30 @@ $Id$
3 3
 
4 4
      ===========================================
5 5
 
6
-     SIP Express Router (ser) Installation Notes
6
+     SIP Router (sip-router) Installation Notes
7 7
 
8
-             http://www.iptel.org/ser/
8
+             http://sip-router.org
9 9
 
10 10
      ===========================================
11 11
 
12
-  This memo gives you hints how to set up SER quickly. To 
13
-  understand how SER works and how to configure it properly,
14
-  read admin's guide available from SER website. We also
15
-  urge you to read latest ISSUES (available from SER website 
12
+  This memo gives you hints how to set up SIP Router quickly. To 
13
+  understand how SIP Router works and how to configure it properly,
14
+  read admin's guide available from SIP Router website. We also
15
+  urge you to read latest ISSUES (available from SIP Router website 
16 16
   too) and check for potential problems in this release.
17 17
   Users of previous releases are encouraged to read NEWS to
18
-  learn how to move to this new SER version.
18
+  learn how to move to this new SIP Router version.
19 19
   
20 20
 
21 21
 TOC
22 22
 
23 23
 1. Supported Architectures and Requirements
24
-2. Howto Build ser From Source Distribution
24
+2. Howto Build sip-router From Source Distribution
25 25
 3. Quick-Start Installation Guide
26 26
    A) Getting Help
27 27
    B) Disclaimers
28 28
    C) Quick Start
29
-   D) ser with Persistent Data Storage
29
+   D) sip-router with Persistent Data Storage
30 30
 4. Troubleshooting
31 31
 
32 32
 
... ...
@@ -35,10 +35,10 @@ TOC
35 35
 -------------------------------------------
36 36
 
37 37
 Supported operating systems: Linux, FreeBSD, NetBSD, OpenBSD, Solaris, Darwin
38
-Partially supported: Windows+Cygwin (core + static modules only, no IPv6,
39
- no TCP, no dynamic modules)
38
+Partially supported: Windows+Cygwin (core + static modules only, no
39
+  IPv6, no TCP, no dynamic modules)
40 40
 Supported architectures: i386, x86_64 (amd64), armv4l, sparc64, powerpc,
41
- powerpc64
41
+  powerpc64
42 42
 Experimental architectures: mips1, mips2, sparc32, alpha
43 43
 
44 44
 (for other architectures the Makefiles might need to be edited)
... ...
@@ -53,7 +53,7 @@ Requirements:
53 53
 - bison or yacc (Berkley yacc)
54 54
 - flex
55 55
 - GNU make (on Linux this is the standard "make", on *BSD and Solaris is
56
- called "gmake") version >= 3.80 (recommended 3.81).
56
+  called "gmake") version >= 3.80 (recommended 3.81).
57 57
 - sed and tr (used in the makefiles)
58 58
 - GNU tar ("gtar" on Solaris) and gzip if you want "make tar" to work
59 59
 - GNU install, BSD install or Solaris install if you want "make
... ...
@@ -61,9 +61,9 @@ Requirements:
61 61
 - libmysqlclient & libz (zlib) if you want mysql support (the mysql module)
62 62
 - libexpat if you want the jabber gateway support (the jabber module)
63 63
 - libxml2 if you want to compile the cpl-c (CPL support) or pa (presence) 
64
-modules
64
+   modules
65 65
 - libradiusclient-ng (> 5.0) if you need radius support (the auth_radius,
66
-group_radius, uri_radius and avp_radius modules)
66
+  group_radius, uri_radius and avp_radius modules)
67 67
 - libpq if you need postgres support (the postgres module)
68 68
 
69 69
 
... ...
@@ -84,7 +84,7 @@ OS Notes:
84 84
   NOTE: you'll need to add radiusclient_ng=4 to the gmake command line if you
85 85
   use the 0.4.* version.
86 86
   
87
-  Compile example (all the modules and ser in a tar.gz):
87
+  Compile example (all the modules and sip-router in a tar.gz):
88 88
      gmake bin radiusclient_ng=4 include_modules="mysql jabber cpl-c auth_radius group_radius uri_radius postgres pa"
89 89
 
90 90
   OpenBSD 3.7
... ...
@@ -95,7 +95,7 @@ OS Notes:
95 95
    http://download.berlios.de/radiusclient-ng/radiusclient-ng-0.5.1.tar.gz
96 96
    (you need to download and install it, since there is no "official" 
97 97
    openbsd port for it) for libradiusclient-ng 
98
-  Compile example (all the modules and ser in a tar.gz):
98
+  Compile example (all the modules and sip-router in a tar.gz):
99 99
      gmake bin include_modules="mysql jabber cpl-c auth_radius group_radius uri_radius pa"
100 100
 
101 101
   NetBSD 2.0
... ...
@@ -104,7 +104,7 @@ OS Notes:
104 104
   - libxml2-2.6.19 (/usr/pkgsrc/textproc/libxml2) for libxml2
105 105
   - radiusclient-ng-0.5.1 (see OpenBSD)
106 106
   
107
-  Compile example (all the modules and ser in a tar.gz):
107
+  Compile example (all the modules and sip-router in a tar.gz):
108 108
      gmake bin include_modules="mysql jabber cpl-c auth_radius group_radius uri_radius pa"
109 109
 
110 110
  Solaris 10
... ...
@@ -118,7 +118,7 @@ OS Notes:
118 118
   Needed packages:
119 119
   [TODO]
120 120
   
121
-  Compile example (all the modules and ser in a tar.gz):
121
+  Compile example (all the modules and sip-router in a tar.gz):
122 122
      gmake bin INSTALL=install include_modules="mysql jabber cpl-c auth_radius group_radius uri_radius postgres pa"
123 123
 
124 124
  Linux
... ...
@@ -131,20 +131,21 @@ OS Notes:
131 131
       - libxml2-dev for libxml2
132 132
       - libradiusclient-ng-dev for libradiusclient (you can download the 
133 133
       package from http://apt.sip-router.org/debian/dists/unstable/main/binary-i386/libradiusclient-ng-dev_0.5.1-0.5_i386.deb ).
134
-      NOTE: you can get up-to-date ser packages or libradiusclient packages
134
+      NOTE: you can get up-to-date sip-router packages or libradiusclient packages
135 135
       from http://apt.sip-router.org: add to your /etc/apt/sources.list the
136 136
       following lines:
137 137
          deb http://apt.sip-router.org/debian testing main contrib non-free
138 138
          deb http://apt.sip-router.org/debian unstable main contrib non-free
139 139
       and then: apt-get update; apt-get install libradiusclient-ng-dev
140 140
       (or, if you want to use the pre-built modules:
141
-       apt-get install ser ser-cpl-module ser-jabber-module ser-mysq-module ser-pa-module ser-postgres-module ser-radius-modules )
141
+       apt-get install sip-router sip-router-cpl-module sip-router-jabber-module sip-router-mysq-module sip-router-pa-module sip-router-postgres-module sip-router-radius-modules )
142 142
 
143 143
  Cygwin  (alpha state, partial support)
144 144
 
145
- make sure make, bison, flex, minires and minires-devel (needed for the resolver functions) are installed. 
145
+ make sure make, bison, flex, minires and minires-devel (needed for the
146
+ resolver functions) are installed.
146 147
  
147
- Only building ser's core and some static modules is supported for now.
148
+ Only building sip-router's core and some static modules is supported for now.
148 149
  Stuff known not to work:
149 150
            - IPv6 (cygwin doesn't support it yet)
150 151
            - TCP (the tcp code heavily depends on file descriptor passing 
... ...
@@ -153,20 +154,21 @@ OS Notes:
153 153
              backlinking doesn't work in windows by design)
154 154
 
155 155
 
156
-  Compile example (all the modules and ser in a tar.gz):
156
+  Compile example (all the modules and sip-router in a tar.gz):
157 157
      make bin include_modules="mysql jabber cpl-c auth_radius group_radius uri_radius postgres pa"
158 158
 
159 159
 
160
-2. Howto Build ser From Source Distribution
160
+2. Howto Build sip-router From Source Distribution
161 161
 -------------------------------------------
162 162
 
163 163
 (NOTE: if make doesn't work try gmake  instead)
164 164
 
165
-SER is split in four main parts: The core, the modules, the utilties, and scripts/examples
166
-When you build, you can decide to build only the core, the modules, both, or all.
165
+SIP Router is split in four main parts: The core, the modules, the
166
+utilties, and scripts/examples.  When you build, you can decide to build
167
+only the core, the modules, both, or all.
167 168
 
168
-Compile SER core only:
169
-make   #builds only ser core, equivalent to make ser
169
+Compile SIP Router core only:
170
+make   #builds only sip-router core, equivalent to make sip-router
170 171
 
171 172
 Compile modules except some explicitly excepted (see below)
172 173
 make modules  
... ...
@@ -183,11 +185,11 @@ avp_radius, postgres, pa.
183 183
 Including groups of modules (available in >0.9.x):
184 184
 Instead of compiling the default modules only, you can specify groups of
185 185
 modules to include, according to their status:
186
-standard - Modules in this group are considered a standard part of SER (due to widespread usage)
186
+standard - Modules in this group are considered a standard part of SIP Router (due to widespread usage)
187 187
     but they have no dependencies (note that some of these interplay with external systems.
188 188
     However, they don't have compile or link dependencies).
189 189
 
190
-standard-dep -  Modules in this group are considered a standard part of SER (due to widespread usage)
190
+standard-dep -  Modules in this group are considered a standard part of SIP Router (due to widespread usage)
191 191
     but they have dependencies that most be satisfied for compilation.
192 192
     NOTE! All presence modules (dialog, pa, presence_b2b, rls, xcap) have been included in this
193 193
     group due to interdependencies
... ...
@@ -224,14 +226,18 @@ You can also explicitly skip modules using skip_modules. Let's say you want all
224 224
  and standard-dep modules except domain:
225 225
 make group_include="standard standard-dep" skip_modules="domain" all
226 226
 
227
-NOTE!!! As this mechanism is very powerful, you may be uncertain which modules wwill be included.
228
-Just replace all (or modules) with print-modules and you will see which modules will be included
229
-and excluded, ex:
227
+NOTE!!! As this mechanism is very powerful, you may be uncertain which
228
+modules wwill be included.
229
+Just replace all (or modules) with print-modules and you will see which
230
+modules will be included and excluded, ex:
231
+
230 232
 make print-modules
233
+
231 234
 will show which modules are excluded by default.
232 235
 
233
-If you want to install or to build a binary package (a tar.gz with ser and
234
- the modules), substitute "all" in the above command with "install" or "bin".
236
+If you want to install or to build a binary package (a tar.gz with
237
+sip-router and the modules), substitute "all" in the above command with
238
+"install" or "bin".
235 239
 
236 240
 
237 241
 More compile examples:
... ...
@@ -421,22 +427,23 @@ make prefix=/usr/local  install
421 421
 
422 422
 Note: If you use prefix parameter in make install then you also need
423 423
 to use this parameter in previous make commands, i.e. make, make modules,
424
-or make all. If you fail to do this then SER will look for the default
424
+or make all. If you fail to do this then SIP Router will look for the default
425 425
 configuration file in a wrong directory, because the directory of the
426
-default configuration file is hard coded into ser during compile time. 
426
+default configuration file is hard coded into sip-router during compile time. 
427 427
 When you use a different prefix parameter when installing then the 
428
-directory hard coded in ser and the directory in which the file will be 
428
+directory hard coded in sip-router and the directory in which the file will be 
429 429
 installed by make install will not match. (You can specify exact location
430
-of the configuration file using -f parameter of ser).
430
+of the configuration file using -f parameter of sip-router).
431 431
 
432 432
 For example, if you do the following:
433 433
 make all
434 434
 make prefix=/ install
435 435
 
436 436
 Then the installation will put the default configuration file into
437
-/etc/ser/ser.cfg (because prefix is /), but ser will look for the file
438
-in /usr/local/etc/ser/ser.cfg (because there was no prefix parameter
439
-in make all and /usr/local is the default value of prefix).
437
+/etc/sip-router/sip-router.cfg (because prefix is /), but sip-router
438
+will look for the file in /usr/local/etc/sip-router/sip-router.cfg
439
+(because there was no prefix parameter make all and /usr/local is the
440
+default value of prefix).
440 441
 
441 442
 Workaround is trivial, use the same parameters in all make commands:
442 443
 make prefix=/ all
... ...
@@ -452,17 +459,18 @@ That applies to other make parameters as well (for example parameters
452 452
 
453 453
 A) Getting Help
454 454
 
455
-This guide gives you instructions on how to set up the SIP Express 
456
-Router (ser) on your box quickly. In case the default configuration
457
-does not fly, check documentation at ser site
458
-  http://www.iptel.org/ser/
459
-to learn how to configure SER for your site.
455
+This guide gives you instructions on how to set up the SIP Router
456
+(sip-router) on your box quickly. In case the default configuration
457
+does not fly, check documentation at sip-router site
458
+  http://sip-router.org
459
+to learn how to configure SIP Router for your site.
460 460
 
461 461
 If the documentation does not resolve your problem you may try contacting 
462
-our user forum by E-mail at serusers@lists.iptel.org -- that is the mailing 
463
-list of ser community. To participate in the mailing list, subscribe at the 
464
-following web address:
465
-  http://lists.iptel.org/mailman/listinfo/serusers
462
+our user forum by E-mail at sr-users@lists.sip-router.org -- that is the
463
+mailing list of ser community. To participate in the mailing list,
464
+subscribe at the following web address:
465
+
466
+  http://lists.sip-router.org/cgi-bin/mailman/listinfo
466 467
 
467 468
 To participate in our commercial support program, contact info@iptel.org.
468 469
 The support program will provide you with most timely and accurate help
... ...
@@ -482,14 +490,19 @@ dependencies on MySQL which is needed for storing user credentials.)
482 482
 C) Quick Start
483 483
 
484 484
 The following step-by step guide gives you instructions how to install the 
485
-sql-free distribution of ser. If you need persistence and authentication, 
486
-then you have to install additional MySql support -- proceed to section D)
487
-after you are finished with C).
488
-
489
-1) Download an RPM or debian package from our site
490
-    http://www.iptel.org/ser
491
-If you don't use an rpm or debian based distribution, try our tar.gz'ed binaries
492
- (ser-$(version)_$(os)_$(arch).tar.gz, e.g: ser-0.8.8_linux_i386.tar.gz).
485
+sql-free distribution of sip-router. If you need persistence and
486
+authentication, then you have to install additional MySql support --
487
+proceed to section D) after you are finished with C).
488
+
489
+1) Download an RPM or debian package from site
490
+
491
+    ****** site not available yet
492
+
493
+If you don't use an rpm or debian based distribution, try our tar.gz'ed
494
+binaries
495
+
496
+  ******* not available yet
497
+
493 498
 If you use Solaris 8 you can try our solaris package.
494 499
 If you use Gentoo Linux you do not have to download a package.
495 500
 
... ...
@@ -499,13 +512,13 @@ RPM:
499 499
 debian:
500 500
     dpkg -i <package_name>
501 501
 gentoo:
502
-    emerge ser
502
+    emerge sip-router
503 503
 	(or if use only stable packets:
504
-	 ACCEPT_KEYWORDS="~x86" emerge ser)
504
+	 ACCEPT_KEYWORDS="~x86" emerge sip-router)
505 505
 tar.gz:
506 506
     cd /; tar zxvf <package_name>_os_arch.tar.gz
507 507
     (it will install in /usr/local/, and the configuration file in
508
-     /usr/local/etc/ser/ser.cfg)
508
+     /usr/local/etc/sip-router/sip-router.cfg)
509 509
 Solaris:
510 510
     gunzip <package_name>.gz ; pkgadd -d <package_name>
511 511
 *BSD:
... ...
@@ -513,15 +526,15 @@ Solaris:
513 513
     
514 514
 3) start the server
515 515
 RPM + gentoo:
516
-    /etc/init.d/ser start
516
+    /etc/init.d/sip-router start
517 517
 debian:
518
-    ser is started automatically after the install
519
-    (in case something fails you can start it with /etc/init.d/ser start)
518
+    sip-router is started automatically after the install
519
+    (in case something fails you can start it with /etc/init.d/sip-router start)
520 520
 tar.gz:
521 521
     the tar.gz does not include an init.d script, you'll have to create one of
522 522
     your own or adapt one from the source distribution (debian/init.d,
523
-    rpm/ser.init.*, gentoo/ser.init)
524
-    You can start ser directly with /usr/local/sbin/ser.
523
+    rpm/sip-router.init.*, gentoo/sip-router.init)
524
+    You can start sip-router directly with /usr/local/sbin/sip-router.
525 525
 Solaris:
526 526
     see tar.gz.
527 527
     
... ...
@@ -552,20 +565,23 @@ Solaris:
552 552
 
553 553
 
554 554
 
555
-D) ser with Persistent Data Storage
555
+D) sip-router with Persistent Data Storage
556 556
 
557 557
 The default configuration is very simple and features many simplifications. 
558 558
 In particular, it does not authenticate users and loses User Location database 
559 559
 on reboot. To provide persistence, keep user credentials and remember users' 
560
-locations across reboots, ser can be configured to use MySQL. Before you proceed, 
561
-you need to make sure MySQL is installed on your box. Your MySQL server must be 
562
-configured to deal with a large number of connection. To increase it, set the 
563
-following line in [mysqld] section of your configuration file:
560
+locations across reboots, ser can be configured to use MySQL. Before you
561
+proceed, you need to make sure MySQL is installed on your box. Your
562
+MySQL server must be configured to deal with a large number of
563
+connection. To increase it, set the following line in [mysqld] section
564
+of your configuration file:
564 565
 
565 566
    set-variable    = max_connections=500
566 567
 
567
-1) Download the package containing mysql support for ser from: 
568
-    http://www.iptel.org/ser/
568
+1) Download the package containing mysql support for sip-router from: 
569
+    
570
+    **** site not available yet
571
+
569 572
     (rpm and deb provided, most of the binary tar.gz distributions and the 
570 573
      solaris package include it; if it is not present you'll have to rebuild
571 574
      from the source).
... ...
@@ -576,23 +592,23 @@ following line in [mysqld] section of your configuration file:
576 576
     or
577 577
     dpkg -i <package_name>
578 578
 	or
579
-	emerge ser
579
+	emerge sip-router
580 580
 	(if do not want to put 'mysql' into your USE variable you can type:
581
-	 USE="mysql" emerge ser)
581
+	 USE="mysql" emerge sip-router)
582 582
 3) create MySQL tables
583
-	- if you have a previously installed SER on your system, use
584
-    	/usr/sbin/ser_mysql.sh reinstall 
585
-	  to convert your SER database into new structures
583
+	- if you have a previously installed SIP Router on your system, use
584
+    	/usr/sbin/sip-router_mysql.sh reinstall 
585
+	  to convert your SIP Router database into new structures
586 586
 	- otherwise, if this is your very first installation, use
587
-    	/usr/sbin/ser_mysql.sh create
588
-	  to create SER database structures
587
+    	/usr/sbin/sip-router_mysql.sh create
588
+	  to create SIP Router database structures
589 589
    (you will be prompted for password of MySql "root" user)
590
-4) configure ser to use SQL
591
-    uncomment all lines in configuration file ser.cfg which are related to 
590
+4) configure sip-router to use SQL
591
+    uncomment all lines in configuration file sip-router.cfg which are related to 
592 592
     authentication:
593
-    - loadmodule "/usr/lib/ser/modules/mysql.so"
594
-    - loadmodule "/usr/lib/ser/modules/auth.so"
595
-    - loadmodule "/usr/lib/ser/modules/auth_db.so"
593
+    - loadmodule "/usr/lib/sip-router/modules/mysql.so"
594
+    - loadmodule "/usr/lib/sip-router/modules/auth.so"
595
+    - loadmodule "/usr/lib/sip-router/modules/auth_db.so"
596 596
     - modparam("usrloc", "db_mode", 2)
597 597
     - modparam("auth", "calculate_ha1", yes)
598 598
     - modparam("auth_db", "password_column", "password")
... ...
@@ -609,7 +625,7 @@ following line in [mysqld] section of your configuration file:
609 609
         break;
610 610
       }
611 611
 6) restart the server
612
-    /etc/init.d/ser restart
612
+    /etc/init.d/sip-router restart
613 613
 7) you can now start  managing the server using the serctl utility; 
614 614
    you need to first set the environment variable SIP_DOMAIN to your 
615 615
    local SIP realm, e.g.,
... ...
@@ -633,17 +649,19 @@ challenged request at all and pops up authentication window again. If you
633 633
 want to authenticate WM, you need to set up your realm value to equal server 
634 634
 name. If your server has no name, IP address can be used as realm too.
635 635
 
636
-Q: SIP requests are replied by ser with "483 Too Many Hops" or 
636
+Q: SIP requests are replied by sip-router with "483 Too Many Hops" or 
637 637
    "513 Message Too Large"
638 638
 
639 639
 A: In both cases, the reason is probably an error in request routing script 
640 640
    which caused an infinite loop. You can easily verify whether this happens 
641
-   by watching SIP traffic on loopback interface. A typical reason for misrouting 
642
-   is a failure to match local domain correctly. If a server fails to recognize 
643
-   a request for itself, it will try to forward it to current URI in believe it 
644
-   would forward them to a foreign domain. Alas, it forwards the request to itself 
645
-   again. This continues to happen until value of max_forwards header field reaches 
646
-   zero or the request grows too big. Solutions is easy: make sure that domain matching 
647
-   is correctly configured. A quick way to achieve that is to introduce a config
648
-   option to ser.cfg: alias=domainname, where domainname shall be replaced with
649
-   name of domain, which you wish to server and which appears in request-URIs.
641
+   by watching SIP traffic on loopback interface. A typical reason for
642
+   misrouting is a failure to match local domain correctly. If a server
643
+   fails to recognize a request for itself, it will try to forward it to
644
+   current URI in believe it would forward them to a foreign
645
+   domain. Alas, it forwards the request to itself again. This continues
646
+   to happen until value of max_forwards header field reaches zero or
647
+   the request grows too big. Solutions is easy: make sure that domain
648
+   matching is correctly configured. A quick way to achieve that is to
649
+   introduce a config option to sip-router.cfg: alias=domainname, where
650
+   domainname shall be replaced with name of domain, which you wish to
651
+   server and which appears in request-URIs.
... ...
@@ -89,8 +89,8 @@ include Makefile.targets
89 89
 #  an utility fails
90 90
 err_fail?=1
91 91
 
92
-# whether or not to install ser.cfg or just ser.cfg.default
93
-# (ser.cfg will never be overwritten by make install, this is usefull
92
+# whether or not to install sip-router.cfg or just sip-router.cfg.default
93
+# (sip-router.cfg will never be overwritten by make install, this is usefull
94 94
 #  when creating packages)
95 95
 skip_cfg_install?=
96 96
 
... ...
@@ -338,7 +338,7 @@ utils_bin_install=	utils/gen_ha1/gen_ha1 utils/sercmd/sercmd
338 338
 utils_script_install=
339 339
 
340 340
 # This is the list of files to be installed into the arch-independent
341
-# shared directory (by default /usr/local/share/ser)
341
+# shared directory (by default /usr/local/share/sip-router)
342 342
 share_install= scripts/mysql/my_create.sql \
343 343
 			   scripts/mysql/my_data.sql   \
344 344
 			   scripts/mysql/my_drop.sql
... ...
@@ -613,7 +613,7 @@ utils:
613 613
 	done; true
614 614
 
615 615
 
616
-dbg: ser
616
+dbg: sip-router
617 617
 	gdb -command debug.gdb
618 618
 
619 619
 .PHONY: tar
... ...
@@ -625,9 +625,9 @@ tar:
625 625
 	$(TAR) -C .. \
626 626
 		--exclude=$(notdir $(CURDIR))/test* \
627 627
 		--exclude=$(notdir $(CURDIR))/tmp* \
628
-		--exclude=$(notdir $(CURDIR))/debian/ser \
629
-		--exclude=$(notdir $(CURDIR))/debian/ser-* \
630
-		--exclude=$(notdir $(CURDIR))/ser_tls* \
628
+		--exclude=$(notdir $(CURDIR))/debian/sip-router \
629
+		--exclude=$(notdir $(CURDIR))/debian/sip-router-* \
630
+		--exclude=$(notdir $(CURDIR))/sip-router_tls* \
631 631
 		--exclude=CVS* \
632 632
 		--exclude=.svn* \
633 633
 		--exclude=.cvsignore \
... ...
@@ -639,7 +639,7 @@ tar:
639 639
 		--exclude=*.[do] \
640 640
 		--exclude=*.so \
641 641
 		--exclude=*.il \
642
-		--exclude=$(notdir $(CURDIR))/ser \
642
+		--exclude=$(notdir $(CURDIR))/sip-router \
643 643
 		--exclude=*.gz \
644 644
 		--exclude=*.bz2 \
645 645
 		--exclude=*.tar \
... ...
@@ -660,10 +660,10 @@ tar:
660 660
 # binary dist. tar.gz
661 661
 .PHONY: bin
662 662
 bin:
663
-	mkdir -p tmp/ser/usr/local
664
-	$(MAKE) install basedir=tmp/ser $(mk_params)
665
-	$(TAR) -C tmp/ser/ -zcf ../$(NAME)-$(RELEASE)_$(OS)_$(ARCH).tar.gz .
666
-	rm -rf tmp/ser
663
+	mkdir -p tmp/sip-router/usr/local
664
+	$(MAKE) install basedir=tmp/sip-router $(mk_params)
665
+	$(TAR) -C tmp/sip-router/ -zcf ../$(NAME)-$(RELEASE)_$(OS)_$(ARCH).tar.gz .
666
+	rm -rf tmp/sip-router
667 667
 
668 668
 .PHONY: deb
669 669
 deb:
... ...
@@ -677,18 +677,18 @@ deb:
677 677
 
678 678
 .PHONY: sunpkg
679 679
 sunpkg:
680
-	mkdir -p tmp/ser
681
-	mkdir -p tmp/ser_sun_pkg
682
-	$(MAKE) install basedir=tmp/ser prefix=/usr/local $(mk_params)
680
+	mkdir -p tmp/sip-router
681
+	mkdir -p tmp/sip-router_sun_pkg
682
+	$(MAKE) install basedir=tmp/sip-router prefix=/usr/local $(mk_params)
683 683
 	(cd pkg/solaris; \
684
-	pkgmk -r ../../tmp/ser/usr/local -o -d ../../tmp/ser_sun_pkg/ -v "$(RELEASE)" ;\
684
+	pkgmk -r ../../tmp/sip-router/usr/local -o -d ../../tmp/sip-router_sun_pkg/ -v "$(RELEASE)" ;\
685 685
 	cd ../..)
686 686
 	cat /dev/null > ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local
687
-	pkgtrans -s tmp/ser_sun_pkg/ ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local \
688
-		IPTELser
687
+	pkgtrans -s tmp/sip-router_sun_pkg/ ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local \
688
+		IPTELsip-router
689 689
 	gzip -9 ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local
690
-	rm -rf tmp/ser
691
-	rm -rf tmp/ser_sun_pkg
690
+	rm -rf tmp/sip-router
691
+	rm -rf tmp/sip-router_sun_pkg
692 692
 
693 693
 
694 694
 .PHONY: install
... ...
@@ -698,8 +698,8 @@ install: install-bin install-every-module install-cfg \
698 698
 
699 699
 .PHONY: dbinstall
700 700
 dbinstall:
701
-	-@echo "Initializing ser database"
702
-	scripts/mysql/ser_mysql.sh create
701
+	-@echo "Initializing sip-router database"
702
+	scripts/mysql/sip-router_mysql.sh create
703 703
 	-@echo "Done"
704 704
 
705 705
 .PHONY: README
... ...
@@ -743,32 +743,32 @@ $(man_prefix)/$(man_dir)/man5:
743 743
 # note: sed with POSIX.1 regex doesn't support |, + or ? (darwin, solaris ...) 
744 744
 install-cfg: $(cfg_prefix)/$(cfg_dir)
745 745
 		sed $(foreach m,$(modules_dirs),\
746
-				-e "s#/usr/[^:]*lib/ser/$(m)\([:/\"]\)#$($(m)_target)\1#g") \
747
-			< etc/ser-basic.cfg > $(cfg_prefix)/$(cfg_dir)ser.cfg.sample
748
-		chmod 644 $(cfg_prefix)/$(cfg_dir)ser.cfg.sample
746
+				-e "s#/usr/[^:]*lib/sip-router/$(m)\([:/\"]\)#$($(m)_target)\1#g") \
747
+			< etc/sip-router-basic.cfg > $(cfg_prefix)/$(cfg_dir)sip-router.cfg.sample
748
+		chmod 644 $(cfg_prefix)/$(cfg_dir)sip-router.cfg.sample
749 749
 		if [ -z "${skip_cfg_install}" -a \
750
-				! -f $(cfg_prefix)/$(cfg_dir)ser.cfg ]; then \
751
-			mv -f $(cfg_prefix)/$(cfg_dir)ser.cfg.sample \
752
-				$(cfg_prefix)/$(cfg_dir)ser.cfg; \
750
+				! -f $(cfg_prefix)/$(cfg_dir)sip-router.cfg ]; then \
751
+			mv -f $(cfg_prefix)/$(cfg_dir)sip-router.cfg.sample \
752
+				$(cfg_prefix)/$(cfg_dir)sip-router.cfg; \
753 753
 		fi
754 754
 		sed $(foreach m,$(modules_dirs),\
755
-			-e "s#/usr/[^:]*lib/ser/$(m)\([:/\"]\)#$($(m)_target)\1#g") \
756
-			< etc/ser-oob.cfg \
757
-			> $(cfg_prefix)/$(cfg_dir)ser-advanced.cfg.sample
758
-		chmod 644 $(cfg_prefix)/$(cfg_dir)ser-advanced.cfg.sample
755
+			-e "s#/usr/[^:]*lib/sip-router/$(m)\([:/\"]\)#$($(m)_target)\1#g") \
756
+			< etc/sip-router-oob.cfg \
757
+			> $(cfg_prefix)/$(cfg_dir)sip-router-advanced.cfg.sample
758
+		chmod 644 $(cfg_prefix)/$(cfg_dir)sip-router-advanced.cfg.sample
759 759
 		if [ -z "${skip_cfg_install}" -a \
760
-				! -f $(cfg_prefix)/$(cfg_dir)ser-advanced.cfg ]; then \
761
-			mv -f $(cfg_prefix)/$(cfg_dir)ser-advanced.cfg.sample \
762
-				$(cfg_prefix)/$(cfg_dir)ser-advanced.cfg; \
760
+				! -f $(cfg_prefix)/$(cfg_dir)sip-router-advanced.cfg ]; then \
761
+			mv -f $(cfg_prefix)/$(cfg_dir)sip-router-advanced.cfg.sample \
762
+				$(cfg_prefix)/$(cfg_dir)sip-router-advanced.cfg; \
763 763
 		fi
764 764
 		# radius dictionary
765
-		$(INSTALL_TOUCH) $(cfg_prefix)/$(cfg_dir)/dictionary.ser
766
-		$(INSTALL_CFG) etc/dictionary.ser $(cfg_prefix)/$(cfg_dir)
765
+		$(INSTALL_TOUCH) $(cfg_prefix)/$(cfg_dir)/dictionary.sip-router
766
+		$(INSTALL_CFG) etc/dictionary.sip-router $(cfg_prefix)/$(cfg_dir)
767 767
 
768 768
 		# TLS configuration
769 769
 		$(INSTALL_TOUCH) $(cfg_prefix)/$(cfg_dir)/tls.cfg
770 770
 		$(INSTALL_CFG) modules/tls/tls.cfg $(cfg_prefix)/$(cfg_dir)
771
-		modules/tls/ser_cert.sh -d $(cfg_prefix)/$(cfg_dir)
771
+		modules/tls/sip-router_cert.sh -d $(cfg_prefix)/$(cfg_dir)
772 772
 
773 773
 install-bin: $(bin_prefix)/$(bin_dir) $(NAME)
774 774
 		$(INSTALL_TOUCH) $(bin_prefix)/$(bin_dir)/$(NAME)
... ...
@@ -833,8 +833,8 @@ install-utils: utils $(bin_prefix)/$(bin_dir)
833 833
 	# FIXME: This is a hack, this should be (and will be) done properly in
834 834
     # per-module Makefiles
835 835
 	sed -e "s#^DEFAULT_SCRIPT_DIR.*#DEFAULT_SCRIPT_DIR=\"$(share_prefix)/$(share_dir)\"#g" \
836
-		< scripts/mysql/ser_mysql.sh > $(bin_prefix)/$(bin_dir)/ser_mysql.sh
837
-	chmod 755 $(bin_prefix)/$(bin_dir)/ser_mysql.sh
836
+		< scripts/mysql/sip-router_mysql.sh > $(bin_prefix)/$(bin_dir)/sip-router_mysql.sh
837
+	chmod 755 $(bin_prefix)/$(bin_dir)/sip-router_mysql.sh
838 838
 
839 839
 
840 840
 install-modules-all: install-every-module install-every-module-doc
... ...
@@ -853,23 +853,23 @@ install-doc: $(doc_prefix)/$(doc_dir) install-every-module-doc
853 853
 	$(INSTALL_DOC) README $(doc_prefix)/$(doc_dir)
854 854
 
855 855
 
856
-install-ser-man: $(man_prefix)/$(man_dir)/man8 $(man_prefix)/$(man_dir)/man5
857
-		sed -e "s#/etc/ser/ser\.cfg#$(cfg_target)ser.cfg#g" \
856
+install-sip-router-man: $(man_prefix)/$(man_dir)/man8 $(man_prefix)/$(man_dir)/man5
857
+		sed -e "s#/etc/sip-router/sip-router\.cfg#$(cfg_target)sip-router.cfg#g" \
858 858
 			-e "s#/usr/sbin/#$(bin_target)#g" \
859 859
 			$(foreach m,$(modules_dirs),\
860
-				-e "s#/usr/lib/ser/$(m)\([^_]\)#$($(m)_target)\1#g") \
861
-			-e "s#/usr/share/doc/ser/#$(doc_target)#g" \
862
-			< ser.8 >  $(man_prefix)/$(man_dir)/man8/ser.8
863
-		chmod 644  $(man_prefix)/$(man_dir)/man8/ser.8
864
-		sed -e "s#/etc/ser/ser\.cfg#$(cfg_target)ser.cfg#g" \
860
+				-e "s#/usr/lib/sip-router/$(m)\([^_]\)#$($(m)_target)\1#g") \
861
+			-e "s#/usr/share/doc/sip-router/#$(doc_target)#g" \
862
+			< sip-router.8 >  $(man_prefix)/$(man_dir)/man8/sip-router.8
863
+		chmod 644  $(man_prefix)/$(man_dir)/man8/sip-router.8
864
+		sed -e "s#/etc/sip-router/sip-router\.cfg#$(cfg_target)sip-router.cfg#g" \
865 865
 			-e "s#/usr/sbin/#$(bin_target)#g" \
866 866
 			$(foreach m,$(modules_dirs),\
867
-				-e "s#/usr/lib/ser/$(m)\([^_]\)#$($(m)_target)\1#g") \
868
-			-e "s#/usr/share/doc/ser/#$(doc_target)#g" \
869
-			< ser.cfg.5 >  $(man_prefix)/$(man_dir)/man5/ser.cfg.5
870
-		chmod 644  $(man_prefix)/$(man_dir)/man5/ser.cfg.5
867
+				-e "s#/usr/lib/sip-router/$(m)\([^_]\)#$($(m)_target)\1#g") \
868
+			-e "s#/usr/share/doc/sip-router/#$(doc_target)#g" \
869
+			< sip-router.cfg.5 >  $(man_prefix)/$(man_dir)/man5/sip-router.cfg.5
870
+		chmod 644  $(man_prefix)/$(man_dir)/man5/sip-router.cfg.5
871 871
 
872
-install-man:  install-ser-man install-every-module-man
872
+install-man:  install-sip-router-man install-every-module-man
873 873
 
874 874
 
875 875
 
... ...
@@ -887,7 +887,7 @@ proper-libs realclean-libs distclean-libs maintainer-clean-libs:
887 887
 clean: clean-modules
888 888
 # clean utils on make clean
889 889
 clean: clean-utils
890
-# cleaning in libs always when cleaning ser
890
+# cleaning in libs always when cleaning sip-router
891 891
 clean: clean-libs
892 892
 
893 893
 # proper/distclean a.s.o modules, utils and libs too
... ...
@@ -100,7 +100,7 @@ export makefile_defs
100 100
 
101 101
 $(info normal Makefile.defs exec)
102 102
 # main binary name
103
-MAIN_NAME=ser
103
+MAIN_NAME=sip-router
104 104
 
105 105
 #version number
106 106
 VERSION = 2
... ...
@@ -44,7 +44,7 @@
44 44
 #define SIP_PORT  5060
45 45
 #define SIPS_PORT 5061
46 46
 
47
-#define CFG_FILE CFG_DIR "ser.cfg"
47
+#define CFG_FILE CFG_DIR "sip-router.cfg"
48 48
 
49 49
 #define TLS_PKEY_FILE "cert.pem" 
50 50
 #define TLS_CERT_FILE "cert.pem"
... ...
@@ -21,7 +21,7 @@ dns=no           # (cmd. line: -r)
21 21
 rev_dns=no      # (cmd. line: -R)
22 22
 port=5060
23 23
 children=4
24
-fifo="/tmp/ser_fifo"
24
+fifo="/tmp/sip-router_fifo"
25 25
 
26 26
 # ------------------ module loading ----------------------------------
27 27
 
... ...
@@ -49,8 +49,8 @@ loadmodule "./modules/auth_db/auth_db.so"
49 49
 # Uncomment this if you want to use SQL database 
50 50
 # for persistent storage and comment the previous line
51 51
 modparam("usrloc", "db_mode", 1)
52
-modparam("usrloc", "db_url", "/home/janakj/ser")
53
-modparam("auth_db", "db_url", "/home/janakj/ser")
52
+modparam("usrloc", "db_url", "/home/janakj/sip-router")
53
+modparam("auth_db", "db_url", "/home/janakj/sip-router")
54 54
 
55 55
 # -- auth params --
56 56
 # Uncomment if you are using auth module
57 57
similarity index 100%
58 58
rename from etc/dictionary.ser
59 59
rename to etc/dictionary.sip-router
... ...
@@ -33,28 +33,28 @@ dns=no           # (cmd. line: -r)
33 33
 rev_dns=no      # (cmd. line: -R)
34 34
 port=5060
35 35
 children=4
36
-fifo="/tmp/ser_fifo"
36
+fifo="/tmp/sip-router_fifo"
37 37
 
38 38
 # ------------------ module loading ----------------------------------
39 39
 
40 40
 # Uncomment this if you want to use SQL database
41
-#loadmodule "/usr/local/lib/ser/modules/mysql.so"
41
+#loadmodule "/usr/local/lib/sip-router/modules/mysql.so"
42 42
 
43
-loadmodule "/usr/local/lib/ser/modules/sl.so"
44
-loadmodule "/usr/local/lib/ser/modules/tm.so"
45
-loadmodule "/usr/local/lib/ser/modules/rr.so"
46
-loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
47
-loadmodule "/usr/local/lib/ser/modules/usrloc.so"
48
-loadmodule "/usr/local/lib/ser/modules/registrar.so"
49
-loadmodule "/usr/local/lib/ser/modules/textops.so"
43
+loadmodule "/usr/local/lib/sip-router/modules/sl.so"
44
+loadmodule "/usr/local/lib/sip-router/modules/tm.so"
45
+loadmodule "/usr/local/lib/sip-router/modules/rr.so"
46
+loadmodule "/usr/local/lib/sip-router/modules/maxfwd.so"
47
+loadmodule "/usr/local/lib/sip-router/modules/usrloc.so"
48
+loadmodule "/usr/local/lib/sip-router/modules/registrar.so"
49
+loadmodule "/usr/local/lib/sip-router/modules/textops.so"
50 50
 
51 51
 # Uncomment this if you want digest authentication
52 52
 # mysql.so must be loaded !
53
-#loadmodule "/usr/local/lib/ser/modules/auth.so"
54
-#loadmodule "/usr/local/lib/ser/modules/auth_db.so"
53
+#loadmodule "/usr/local/lib/sip-router/modules/auth.so"
54
+#loadmodule "/usr/local/lib/sip-router/modules/auth_db.so"
55 55
 
56 56
 # !! Nathelper
57
-loadmodule "/usr/local/lib/ser/modules/nathelper.so"
57
+loadmodule "/usr/local/lib/sip-router/modules/nathelper.so"
58 58
 
59 59
 # ----------------- setting module-specific parameters ---------------
60 60
 
... ...
@@ -3,7 +3,7 @@
3 3
 #
4 4
 # (c) 2003 iptel.org
5 5
 #
6
-# Rules to process ser.cfg templates
6
+# Rules to process sip-router.cfg templates
7 7
 #
8 8
 
9 9
 #id generator, usage: gen_id(`name'))
10 10
similarity index 90%
11 11
rename from etc/ser-basic.cfg
12 12
rename to etc/sip-router-basic.cfg
... ...
@@ -3,7 +3,7 @@
3 3
 #
4 4
 # This a very basic config file w aliases and anamed route but
5 5
 # w/o authentication, accounting, database, multi-domain support etc.
6
-# Please refer to ser.cfg for a more complete example
6
+# Please refer to sip-router.cfg for a more complete example
7 7
 #
8 8
 
9 9
 # ----------- global configuration parameters ------------------------
... ...
@@ -23,8 +23,8 @@ dns=no          # (cmd. line: -r)
23 23
 rev_dns=no      # (cmd. line: -R)
24 24
 #port=5060
25 25
 #children=4
26
-#user=ser
27
-#group=ser
26
+#user=sip-router
27
+#group=sip-router
28 28
 #disable_core=yes #disables core dumping
29 29
 #open_fd_limit=1024 # sets the open file descriptors limit
30 30
 #mhomed=yes  # usefull for multihomed hosts, small performance penalty
... ...
@@ -36,7 +36,7 @@ rev_dns=no      # (cmd. line: -R)
36 36
 # ------------------ module loading ----------------------------------
37 37
 
38 38
 #loadpath "modules:modules_s"
39
-loadpath "/usr/lib/ser/modules:/usr/lib/ser/modules_s"
39
+loadpath "/usr/lib/sip-router/modules:/usr/lib/sip-router/modules_s"
40 40
 
41 41
 loadmodule "sl"
42 42
 loadmodule "tm"
... ...
@@ -59,11 +59,11 @@ modparam("usrloc", "db_mode",   0)
59 59
 modparam("rr", "enable_full_lr", 1)
60 60
 
61 61
 # ctl params
62
-# by default ctl listens on unixs:/tmp/ser_ctl if no other address is
62
+# by default ctl listens on unixs:/tmp/sip-router_ctl if no other address is
63 63
 # specified in modparams; this is also the default for sercmd
64
-modparam("ctl", "binrpc", "unixs:/tmp/ser_ctl")
64
+modparam("ctl", "binrpc", "unixs:/tmp/sip-router_ctl")
65 65
 # listen on the "standard" fifo for backward compatibility
66
-modparam("ctl", "fifo", "fifo:/tmp/ser_fifo")
66
+modparam("ctl", "fifo", "fifo:/tmp/sip-router_fifo")
67 67
 # listen on tcp, localhost
68 68
 #modparam("ctl", "binrpc", "tcp:localhost:2046")
69 69
 
70 70
similarity index 98%
71 71
rename from etc/ser-oob.cfg
72 72
rename to etc/sip-router-oob.cfg
... ...
@@ -16,7 +16,7 @@
16 16
 # multicast).
17 17
 #
18 18
 # If you look for a simpler version with a lot less dependencies
19
-# please refer to the ser-basic.cfg file in your SER distribution.
19
+# please refer to the sip-router-basic.cfg file in your SER distribution.
20 20
 #
21 21
 # Requirements:
22 22
 # ---------------
... ...
@@ -59,7 +59,7 @@
59 59
 # script, according to values entered by user at installation time in
60 60
 # debconf configuration. These values are then applied automatically to
61 61
 # this file each time the 'ser-oob' package is upgraded or reconfigured by
62
-# calling 'dpkg-reconfigure ser-oob'.
62
+# calling 'dpkg-reconfigure sip-router-oob'.
63 63
 #
64 64
 # The parts of this configuration file that may be altered by debconf are
65 65
 # enclosed between '#DEBCONF-something-START' and '#DEBCONF-something-END'
... ...
@@ -133,7 +133,7 @@ server_id=0
133 133
 #DEBCONF-SERVERID-END
134 134
 
135 135
 # Uncomment these lines to enter debugging mode or start SER with
136
-# ser -ED
136
+# sip-router -ED
137 137
 #
138 138
 #fork=no
139 139
 #log_stderror=yes
... ...
@@ -143,8 +143,8 @@ dns=no                  # (cmd. line: -r)
143 143
 rev_dns=no              # (cmd. line: -R)
144 144
 #port=5060
145 145
 #children=4
146
-#user=ser
147
-#group=ser
146
+#user=sip-router
147
+#group=sip-router
148 148
 #disable_core=yes       # disables core dumping
149 149
 open_files_limit=20480  # sets the open file descriptors limit
150 150
 #mhomed=yes             # usefull for multihomed hosts, small performance
... ...
@@ -195,7 +195,7 @@ dns_cache_min_ttl=60
195 195
 dns_cache_max_ttl=86400 # 1 day
196 196
 dns_cache_mem=2048 # 2 MB
197 197
 dns_cache_gc_interval=60  # garbage collection every minute
198
-# ser 2.1 specific options
198
+# sip-router 2.1 specific options
199 199
 # dns_try_naptr=yes
200 200
 # dns_srv_lb=yes  # srv based load balancing
201 201
 # dns_udp_pref=3  # prefer udp (when resolving naptr record)
... ...
@@ -210,7 +210,7 @@ use_dst_blacklist=on
210 210
 dst_blacklist_mem=1024 # 1 MB
211 211
 dst_blacklist_expire=300  # blacklist default time
212 212
 dst_blacklist_gc_interval=150 # 2.5 min
213
-# for ser 2.1 to the above add tm blst_503* parameters and/or use the
213
+# for sip-router 2.1 to the above add tm blst_503* parameters and/or use the
214 214
 # blst module (see NEWS)
215 215
 
216 216
 # ------------------- TCP Parameters ----------------------------------------
... ...
@@ -255,7 +255,7 @@ rtp_proxy.enabled = "detect" desc "indicates whether the RTP Proxy is enabled or
255 255
 # ------------------ Module Loading -----------------------------------------
256 256
 
257 257
 #loadpath "modules:modules_s"
258
-loadpath "/usr/lib/ser/modules:/usr/lib/ser/modules_s"
258
+loadpath "/usr/lib/sip-router/modules:/usr/lib/sip-router/modules_s"
259 259
 
260 260
 # load a SQL database for authentication, domains, user AVPs etc.
261 261
 loadmodule "db_mysql"
... ...
@@ -316,12 +316,12 @@ avpflags
316 316
 #
317 317
 #DEBCONF-DBURL-START
318 318
 modparam("speeddial|auth_db|usrloc|domain|uri_db|gflags|avp_db|db_ops",
319
-         "db_url", "mysql://ser:heslo@127.0.0.1/ser")
319
+         "db_url", "mysql://sip-router:heslo@127.0.0.1/sip-router")
320 320
 #DEBCONF-DBURL-END
321 321
 
322 322
 # specify the path to your database for accounting
323 323
 #DEBCONF-DBURLACC-START
324
-modparam("acc_db", "db_url", "mysql://ser:heslo@127.0.0.1/ser")
324
+modparam("acc_db", "db_url", "mysql://sip-router:heslo@127.0.0.1/sip-router")
325 325
 #DEBCONF-DBURLACC-END
326 326
 
327 327
 
... ...
@@ -429,11 +429,11 @@ modparam("domain", "load_domain_attrs", 1)
429 429
 
430 430
 # -- ctl --
431 431
 
432
-# By default, ctl listens on unixs:/tmp/ser_ctl if no other address is
432
+# By default, ctl listens on unixs:/tmp/sip-router_ctl if no other address is
433 433
 # specified in modparams; this is also the default for sercmd.
434
-modparam("ctl", "binrpc", "unixs:/tmp/ser_ctl")
434
+modparam("ctl", "binrpc", "unixs:/tmp/sip-router_ctl")
435 435
 # Listen on the "standard" fifo for backward compatibility.
436
-modparam("ctl", "fifo", "fifo:/tmp/ser_fifo")
436
+modparam("ctl", "fifo", "fifo:/tmp/sip-router_fifo")
437 437
 # Listen on tcp on localhost.
438 438
 #modparam("ctl", "binrpc", "tcp:localhost:2046")
439 439
 
440 440
similarity index 100%
441 441
rename from etc/ser.cfg
442 442
rename to etc/sip-router.cfg
443 443
similarity index 93%
444 444
rename from etc/ser.cfg.m4
445 445
rename to etc/sip-router.cfg.m4
... ...
@@ -18,7 +18,7 @@ declare(failure, PSTN_FAILURE, _1_FAILURE)
18 18
 #
19 19
 # $Id$
20 20
 #
21
-# ser.cfg m4 template
21
+# sip-router.cfg m4 template
22 22
 #
23 23
 
24 24
 #
... ...
@@ -30,14 +30,14 @@ declare(failure, PSTN_FAILURE, _1_FAILURE)
30 30
 fork=yes
31 31
 port=5060
32 32
 log_stderror=no
33
-fifo="/tmp/ser_fifo"
33
+fifo="/tmp/sip-router_fifo"
34 34
 
35 35
 # uncomment to enter testing mode
36 36
 /*
37 37
 fork=no
38 38
 port=5064
39 39
 log_stderror=yes
40
-fifo="/tmp/ser_fifox"
40
+fifo="/tmp/sip-router_fifox"
41 41
  */
42 42
 
43 43
 debug=3
... ...
@@ -54,26 +54,26 @@ children=16
54 54
 # decimal value in there, e.g. dec(rw|rw|rw)=dec(666)=438
55 55
 fifo_mode=0666
56 56
 
57
-loadmodule "/usr/local/lib/ser/modules/tm.so"
58
-loadmodule "/usr/local/lib/ser/modules/sl.so"
59
-loadmodule "/usr/local/lib/ser/modules/acc.so"
60
-loadmodule "/usr/local/lib/ser/modules/rr.so"
61
-loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
62
-loadmodule "/usr/local/lib/ser/modules/mysql.so"
63
-loadmodule "/usr/local/lib/ser/modules/usrloc.so"
64
-loadmodule "/usr/local/lib/ser/modules/registrar.so"
65
-loadmodule "/usr/local/lib/ser/modules/auth.so"
66
-loadmodule "/usr/local/lib/ser/modules/auth_db.so"
67
-loadmodule "/usr/local/lib/ser/modules/textops.so"
68
-loadmodule "/usr/local/lib/ser/modules/uri.so"
69
-loadmodule "/usr/local/lib/ser/modules/group.so"
70
-loadmodule "/usr/local/lib/ser/modules/msilo.so"
71
-loadmodule "/usr/local/lib/ser/modules/nathelper.so"
72
-loadmodule "/usr/local/lib/ser/modules/enum.so"
73
-loadmodule "/usr/local/lib/ser/modules/domain.so"
74
-#loadmodule "/usr/local/lib/ser/modules/permissions.so"
75
-
76
-modparam("usrloc|acc|auth_db|group|msilo", "db_url", "sql://ser:heslo@localhost/ser")
57
+loadmodule "/usr/local/lib/sip-router/modules/tm.so"
58
+loadmodule "/usr/local/lib/sip-router/modules/sl.so"
59
+loadmodule "/usr/local/lib/sip-router/modules/acc.so"
60
+loadmodule "/usr/local/lib/sip-router/modules/rr.so"
61
+loadmodule "/usr/local/lib/sip-router/modules/maxfwd.so"
62
+loadmodule "/usr/local/lib/sip-router/modules/mysql.so"
63
+loadmodule "/usr/local/lib/sip-router/modules/usrloc.so"
64
+loadmodule "/usr/local/lib/sip-router/modules/registrar.so"
65
+loadmodule "/usr/local/lib/sip-router/modules/auth.so"
66
+loadmodule "/usr/local/lib/sip-router/modules/auth_db.so"
67
+loadmodule "/usr/local/lib/sip-router/modules/textops.so"
68
+loadmodule "/usr/local/lib/sip-router/modules/uri.so"
69
+loadmodule "/usr/local/lib/sip-router/modules/group.so"
70
+loadmodule "/usr/local/lib/sip-router/modules/msilo.so"
71
+loadmodule "/usr/local/lib/sip-router/modules/nathelper.so"
72
+loadmodule "/usr/local/lib/sip-router/modules/enum.so"
73
+loadmodule "/usr/local/lib/sip-router/modules/domain.so"
74
+#loadmodule "/usr/local/lib/sip-router/modules/permissions.so"
75
+
76
+modparam("usrloc|acc|auth_db|group|msilo", "db_url", "sql://sip-router:heslo@localhost/sip-router")
77 77
 
78 78
 # -- usrloc params --
79 79
 /* 0 -- dont use mysql, 1 -- write_through, 2--write_back */
... ...
@@ -10,19 +10,19 @@
10 10
 # chkconfig: 2345 20 80
11 11
 # description: controls execution of SIP router
12 12
 # processname: sr
13
-# config: /etc/ser/iptel.cfg
13
+# config: /etc/sip-router/iptel.cfg
14 14
 
15 15
 # Source function library.
16 16
 . /etc/rc.d/init.d/functions
17 17
 
18
-# we use a ser symlink -- that allows us to have a different name
19
-# in process table so that killalls does not start other sers
18
+# we use a sip-router symlink -- that allows us to have a different name
19
+# in process table so that killalls does not start other sip-routers
20 20
 # run from somewhere else
21 21
 
22 22
 BINNAME=sr
23 23
 HM=/home/srouter
24 24
 SERDIR=$HM/sip_router
25
-ETC=/etc/ser/iptel.cfg
25
+ETC=/etc/sip-router/iptel.cfg
26 26
 PIDFILE=/var/run/sr.pid
27 27
 NOTIFY=sr@iptel.org
28 28
 USR=510
... ...
@@ -38,9 +38,9 @@ MYDIR=$HM/core
38 38
 CORE=$MYDIR/core
39 39
 TMP=/tmp/srcore.$$
40 40
 
41
-ser_start() {
41
+sip-router_start() {
42 42
 	if [ -r $BIN -a -r $CORE ] ; then
43
-		echo "before startup ser core found on `date` at $HOSTNAME" > $TMP
43
+		echo "before startup sip-router core found on `date` at $HOSTNAME" > $TMP
44 44
 		echo "----------------------------------" >> $TMP
45 45
 		DATE=`date "+%Y-%m-%d--%H-%M"`
46 46
 		NEWCORE=$MYDIR/core.$DATE
... ...
@@ -48,8 +48,8 @@ ser_start() {
48 48
 		echo core stored in $NEWCORE >> $TMP
49 49
 		gdb $BIN $NEWCORE -x test/bt.gdb -batch >> $TMP
50 50
 		chmod a+r $NEWCORE
51
-		cd $SERDIR; tar czf $MYDIR/ser.$DATE.tgz .
52
-		mail -s "ser core found" $NOTIFY < $TMP
51
+		cd $SERDIR; tar czf $MYDIR/sip-router.$DATE.tgz .
52
+		mail -s "sip-router core found" $NOTIFY < $TMP
53 53
 		rm -f $TMP
54 54
 	fi
55 55
 	cd $MYDIR
... ...
@@ -60,7 +60,7 @@ ser_start() {
60 60
 	echo
61 61
 }
62 62
 
63
-ser_stop() {
63
+sip-router_stop() {
64 64
 	echo "Stopping SIP router: "
65 65
 	killproc $BINNAME
66 66
 	RETVAL=$?
... ...
@@ -69,14 +69,14 @@ ser_stop() {
69 69
 
70 70
 monit_start() {
71 71
    echo "Command Monit to start Ser..."
72
-   ${MONIT} -c ${MONITRC} start ser
72
+   ${MONIT} -c ${MONITRC} start sip-router
73 73
    RETVAL=$?
74 74
    echo
75 75
 }
76 76
 
77 77
 monit_stop() {
78 78
    echo "Command Monit to stop Ser..."
79
-   ${MONIT} -c ${MONITRC} stop ser
79
+   ${MONIT} -c ${MONITRC} stop sip-router
80 80
    RETVAL=$?
81 81
    echo
82 82
 }
... ...
@@ -84,15 +84,15 @@ monit_stop() {
84 84
 # See how we were called.
85 85
 case "$1" in
86 86
   serstart)
87
-	ser_start
87
+	sip-router_start
88 88
 	;;
89
-  serstop)
90
-    ser_stop
89
+  sip-routerstop)
90
+    sip-router_stop
91 91
 	;;
92
-  serrestart)
93
-	ser_stop
92
+  sip-routerrestart)
93
+	sip-router_stop
94 94
 	echo
95
-	ser_start
95
+	sip-router_start
96 96
 	;;
97 97
   start)
98 98
     monit_start
... ...
@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 /*
29
- * WARNING: Don't forget to update sip_router/etc/dictionary.ser if you 
29
+ * WARNING: Don't forget to update sip_router/etc/dictionary.sip-router if you 
30 30
  * update this file !
31 31
  */
32 32
 
... ...
@@ -1,12 +1,12 @@
1 1
 .\" $Id$
2
-.TH ser 8 15.07.2002 ser "Sip Express Router" 
2
+.TH sip-router 8 15.07.2002 sip-router "Sip Express Router" 
3 3
 .\" Process with
4
-.\" groff -man -Tascii ser.8
4
+.\" groff -man -Tascii sip-router.8
5 5
 .\"
6 6
 .SH NAME
7
-ser \- very fast and configurable sip proxy
7
+sip-router \- very fast and configurable sip proxy
8 8
 .SH SYNOPSIS
9
-.B ser
9
+.B sip-router
10 10
 [
11 11
 .B \-hcrRvdDEVT
12 12
 ] [
... ...
@@ -36,7 +36,7 @@ ser \- very fast and configurable sip proxy
36 36
 ]
37 37
 
38 38
 .SH DESCRIPTION
39
-.B ser 
39
+.B sip-router 
40 40
 or
41 41
 .BR Sip
42 42
 .BR Express 
... ...
@@ -68,7 +68,7 @@ Turns on debugging, multiple
68 68
 increase the debug level.
69 69
 .TP
70 70
 .BI \-D
71
-Runs ser in the foreground (it doesn't fork into daemon mode).
71
+Runs sip-router in the foreground (it doesn't fork into daemon mode).
72 72
 .TP
73 73
 .BI \-E
74 74
 Sends all the log messages to stderr.
... ...
@@ -83,7 +83,7 @@ Displays the version number.
83 83
 Reads the configuration from 
84 84
 .B " config\-file" 
85 85
 (default
86
-.I  /etc/ser/ser.cfg
86
+.I  /etc/sip-router/sip-router.cfg
87 87
 ).
88 88
 .TP
89 89
 .BI \-l " address"
... ...
@@ -111,60 +111,60 @@ Size of the shared memory which will be allocated (in Megabytes).
111 111
 .TP
112 112
 .BI \-w " working\-dir" 
113 113
 Specifies the working directory. In the very improbable event that 
114
-.B ser 
114
+.B sip-router 
115 115
 will crash, the core file will be generated here.
116 116
 .TP
117 117
 .BI \-t " chroot\-dir"
118 118
 Forces 
119
-.B ser 
119
+.B sip-router 
120 120
 to chroot after reading the config file.
121 121
 .TP
122 122
 .BI \-u " uid"
123 123
 Changes the user id under which 
124
-.B ser
124
+.B sip-router
125 125
 runs.
126 126
 .TP
127 127
 .BI \-g " gid"
128 128
 Changes the group id under which 
129
-.B ser
129
+.B sip-router
130 130
 runs.
131 131
 .TP
132 132
 .BI \-P " pid\-file"
133 133
 Creates a file containing the pid of the main
134
-.B ser
134
+.B sip-router
135 135
 process.
136 136
 .TP
137 137
 .BI \-L " modules\-dir"
138 138
 Specifies the directory where to look for
139
-.B ser
140
-modules (default: /usr/lib/ser/modules)
139
+.B sip-router
140
+modules (default: /usr/lib/sip-router/modules)
141 141
 
142 142
 .SH FILES
143 143
 .PD 0
144
-.B /usr/sbin/ser
144
+.B /usr/sbin/sip-router
145 145
 .br
146
-.B /etc/ser/ser.cfg
146
+.B /etc/sip-router/sip-router.cfg
147 147
 .br
148
-.B /usr/lib/ser/modules/*
148
+.B /usr/lib/sip-router/modules/*
149 149
 .PD
150 150
 .SH AUTHORS
151 151
 
152 152
 see 
153
-.B /usr/share/doc/ser/AUTHORS
153
+.B /usr/share/doc/sip-router/AUTHORS
154 154
 
155 155
 .SH SEE ALSO
156
-.BR ser.cfg(5)
156
+.BR sip-router.cfg(5)
157 157
 .PP
158
-Full documentation on ser, including configuration guidelines, FAQs and
158
+Full documentation on sip-router, including configuration guidelines, FAQs and
159 159
 licensing conditions, is available at
160
-.I http://www.iptel.org/ser/.
160
+.I http://sip-router.org.
161 161
 .PP 
162 162
 For reporting  bugs see
163 163
 .I
164
-http://www.iptel.org/ser/bugs/.
164
+http://sip-router.org/tracker/.
165 165
 .PP
166 166
 Mailing lists:
167 167
 .nf 
168
-serusers@iptel.org - ser user community
168
+sr-users@lists.sip-router.org - sip-router user community
169 169
 .nf 
170
-serdev@iptel.org - ser development, new features and unstable version
170
+sr-dev@lists.sip-router.org - sip-router development, new features and unstable version