Browse code

examples: moved to misc directory

Daniel-Constantin Mierla authored on 07/12/2016 13:56:54
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,28 +0,0 @@
1
-# $Id$
2
-
3
-# ------------------ module loading ----------------------------------
4
-
5
-loadmodule "modules/textops/textops.so"
6
-loadmodule "modules/sl/sl.so"
7
-loadmodule "modules/tm/tm.so"
8
-
9
-# ----------------- setting module-specific parameters ---------------
10
-
11
-route{
12
-	# if we do not get a positive reply, continue at reply_route[2]
13
-	t_on_failure("2");
14
-	# forward the request to all destinations in destination set now 
15
-	t_relay();
16
-}
17
-
18
-failure_route[2] {
19
-	# request failed (no reply, busy, whatever) ... forward it again
20
-	# to pbx's voicemail at phone number 6000 via Cisco gateway at
21
-	# 192.168.10.10; append proprietary CC-Diversion header field with
22
-	# original request uri in it, so that the gateway and voicemail
23
-	# know, whom the request was originally intended for
24
-	append_branch("sip:6000@192.168.10.10");
25
-	append_urihf("CC-Diversion: ", "\r\n");
26
-	t_relay();
27
-}
28
-
Browse code

examples aligned to 8.11

Jiri Kuthan authored on 03/06/2003 03:18:12
Showing 1 changed files
... ...
@@ -10,12 +10,12 @@ loadmodule "modules/tm/tm.so"
10 10
 
11 11
 route{
12 12
 	# if we do not get a positive reply, continue at reply_route[2]
13
-	t_on_negative("2");
13
+	t_on_failure("2");
14 14
 	# forward the request to all destinations in destination set now 
15 15
 	t_relay();
16 16
 }
17 17
 
18
-reply_route[2] {
18
+failure_route[2] {
19 19
 	# request failed (no reply, busy, whatever) ... forward it again
20 20
 	# to pbx's voicemail at phone number 6000 via Cisco gateway at
21 21
 	# 192.168.10.10; append proprietary CC-Diversion header field with
... ...
@@ -23,5 +23,6 @@ reply_route[2] {
23 23
 	# know, whom the request was originally intended for
24 24
 	append_branch("sip:6000@192.168.10.10");
25 25
 	append_urihf("CC-Diversion: ", "\r\n");
26
+	t_relay();
26 27
 }
27 28
 
Browse code

examples with pbx/voicemail added; more on authetnication policy

Jiri Kuthan authored on 19/01/2003 20:03:55
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,27 @@
1
+# $Id$
2
+
3
+# ------------------ module loading ----------------------------------
4
+
5
+loadmodule "modules/textops/textops.so"
6
+loadmodule "modules/sl/sl.so"
7
+loadmodule "modules/tm/tm.so"
8
+
9
+# ----------------- setting module-specific parameters ---------------
10
+
11
+route{
12
+	# if we do not get a positive reply, continue at reply_route[2]
13
+	t_on_negative("2");
14
+	# forward the request to all destinations in destination set now 
15
+	t_relay();
16
+}
17
+
18
+reply_route[2] {
19
+	# request failed (no reply, busy, whatever) ... forward it again
20
+	# to pbx's voicemail at phone number 6000 via Cisco gateway at
21
+	# 192.168.10.10; append proprietary CC-Diversion header field with
22
+	# original request uri in it, so that the gateway and voicemail
23
+	# know, whom the request was originally intended for
24
+	append_branch("sip:6000@192.168.10.10");
25
+	append_urihf("CC-Diversion: ", "\r\n");
26
+}
27
+