Browse code

core: relocated some folders from root and utils to misc

- utils keeps only the applications related to kamailio c code
- the other are now in misc/tools
- utils/misc/vim moved to misc/extra/
- obsolete and scripts folders moved to misc/

Daniel-Constantin Mierla authored on 07/12/2016 11:46:38
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-# first sort out iptel.org requests from those destined somewhere else
2
-####################################################################################
3
-
4
-port=5080
5
-
6
-route[0] {
7
-
8
-forward( 127.0.0.1, 9 );
9
-
10
-}
Browse code

tested and ifdef-ed the Stats hack; to be done:L put it in shmem

Jiri Kuthan authored on 07/11/2001 19:52:42
Showing 1 changed files
... ...
@@ -1,8 +1,10 @@
1 1
 # first sort out iptel.org requests from those destined somewhere else
2 2
 ####################################################################################
3 3
 
4
+port=5080
5
+
4 6
 route[0] {
5 7
 
6
-forward( uri:host, uri:port );
8
+forward( 127.0.0.1, 9 );
7 9
 
8 10
 }
Browse code

nasty stats added

Jiri Kuthan authored on 07/11/2001 18:41:08
Showing 1 changed files
... ...
@@ -2,67 +2,7 @@
2 2
 ####################################################################################
3 3
 
4 4
 route[0] {
5
-# request for iptel.org with IP address in it ... fix it and proceed
6
-# note: may result in troubles as authentication covers URI
7
-uri=~"^sip:.*195\.37\.77\.101" rewritehost("iptel.org"); route(1);
8 5
 
9
-# request for iptel.org ... proceed
10
-uri=~"iptel.org" route(1);
11
-
12
-# requests to somewhere else
13
-# - REGISTERs denied
14
-method=="REGISTER" log("attempt to relay REGISTERs"); drop;
15
-
16
-# - anything else relayed via our outbound proxy
17
-uri=~"."  forward("benetnash.fokus.gmd.de", 9);
18
-}
19
-
20
-
21
-# iptel.org traffic
22
-####################################################################################
23
-
24
-route [1] {
25
-
26
-# recognize traffic we want to authenticate -- handled first to make sure 
27
-# it will be captured before we proceed to non-authenticating routes;
28
-# authentication for registrations or calls via Telekom which start
29
-# with optional + and 0
30
-
31
-#PROFILE
32
-(method=='REGISTER' | uri=~"sip:+?0[0-9]*@iptel\.org") forward("benetnash.fokus.gmd.de", 9);
33
-
34
-# dealing with voicemail 
35
-# we need to switch traffic to voicemail directly before CSPS
36
-# would screw it up -- it cannot deal with port numbers
37
-
38
-(uri=~'mail.iptel.org' | uri=~'iptel.org:6060' ) forward("benetnash.fokus.gmd.de", 9);
39
-
40
-# default route: go to non-authenicating proxy
41
-#PROFILE
42
-(method=~".")					forward("benetnash.fokus.gmd.de", 9 );
6
+forward( uri:host, uri:port );
43 7
 
44 8
 }
45
-
46
-# We split traffic to authenticating and non-authenticating
47
-# SIP proxies here using sip_router. We only authenticate REGISTERs
48
-# and PSTN destinations, everything else is not authenticated.
49
-#
50
-# This is a work-around for CSPS's authenticate all-or-nothing
51
-# policy which would eliminate non-iptel.org users calling us.
52
-# Both proxies run at separate hosts (because they would otherwise
53
-# conflict with each other).
54
-#
55
-# I chose to put the non-authentication proxy on the public host
56
-# because we use it for outbound routing -- that would not work
57
-# if the proxy would be in non-routable realm. Drawback:
58
-# SQL and Cisco synchronization noise between dog and fox.
59
-# Note that this
60
-# leaves a non-authenticating port 5060 which could be misued
61
-# to steal REGISTERs. It would be perhaps a good idea to make
62
-# it available only for requests from sip_router.
63
-#
64
-#                        /--REGISTERs----dog:5061,w/auth
65
-#      iptel.org:5060---/                             ||   proprietary Cisco contact DB sharing
66
-#                        \                            ||   and MySQL
67
-#                        \---anything_else----iptel.org:5061,w/o/auth
68
-
Browse code

Tools for automated network profiling.

Jiri Kuthan authored on 06/10/2001 22:20:55
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,68 @@
1
+# first sort out iptel.org requests from those destined somewhere else
2
+####################################################################################
3
+
4
+route[0] {
5
+# request for iptel.org with IP address in it ... fix it and proceed
6
+# note: may result in troubles as authentication covers URI
7
+uri=~"^sip:.*195\.37\.77\.101" rewritehost("iptel.org"); route(1);
8
+
9
+# request for iptel.org ... proceed
10
+uri=~"iptel.org" route(1);
11
+
12
+# requests to somewhere else
13
+# - REGISTERs denied
14
+method=="REGISTER" log("attempt to relay REGISTERs"); drop;
15
+
16
+# - anything else relayed via our outbound proxy
17
+uri=~"."  forward("benetnash.fokus.gmd.de", 9);
18
+}
19
+
20
+
21
+# iptel.org traffic
22
+####################################################################################
23
+
24
+route [1] {
25
+
26
+# recognize traffic we want to authenticate -- handled first to make sure 
27
+# it will be captured before we proceed to non-authenticating routes;
28
+# authentication for registrations or calls via Telekom which start
29
+# with optional + and 0
30
+
31
+#PROFILE
32
+(method=='REGISTER' | uri=~"sip:+?0[0-9]*@iptel\.org") forward("benetnash.fokus.gmd.de", 9);
33
+
34
+# dealing with voicemail 
35
+# we need to switch traffic to voicemail directly before CSPS
36
+# would screw it up -- it cannot deal with port numbers
37
+
38
+(uri=~'mail.iptel.org' | uri=~'iptel.org:6060' ) forward("benetnash.fokus.gmd.de", 9);
39
+
40
+# default route: go to non-authenicating proxy
41
+#PROFILE
42
+(method=~".")					forward("benetnash.fokus.gmd.de", 9 );
43
+
44
+}
45
+
46
+# We split traffic to authenticating and non-authenticating
47
+# SIP proxies here using sip_router. We only authenticate REGISTERs
48
+# and PSTN destinations, everything else is not authenticated.
49
+#
50
+# This is a work-around for CSPS's authenticate all-or-nothing
51
+# policy which would eliminate non-iptel.org users calling us.
52
+# Both proxies run at separate hosts (because they would otherwise
53
+# conflict with each other).
54
+#
55
+# I chose to put the non-authentication proxy on the public host
56
+# because we use it for outbound routing -- that would not work
57
+# if the proxy would be in non-routable realm. Drawback:
58
+# SQL and Cisco synchronization noise between dog and fox.
59
+# Note that this
60
+# leaves a non-authenticating port 5060 which could be misued
61
+# to steal REGISTERs. It would be perhaps a good idea to make
62
+# it available only for requests from sip_router.
63
+#
64
+#                        /--REGISTERs----dog:5061,w/auth
65
+#      iptel.org:5060---/                             ||   proprietary Cisco contact DB sharing
66
+#                        \                            ||   and MySQL
67
+#                        \---anything_else----iptel.org:5061,w/o/auth
68
+