1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,67 +0,0 @@ |
1 |
-debug=9 # debug level (cmd line: -dddddddddd) |
|
2 |
-check_via=yes # (cmd. line: -v) |
|
3 |
-dns=on # (cmd. line: -r) |
|
4 |
-rev_dns=yes # (cmd. line: -R) |
|
5 |
-fork=no # (cmd. line: -D) |
|
6 |
-children=10 |
|
7 |
-log_stderror=yes # (cmd line: -E) |
|
8 |
-#port=5080 |
|
9 |
-#listen=127.0.0.1 |
|
10 |
-loop_checks=1 |
|
11 |
-# for more info: sip_router -h |
|
12 |
- |
|
13 |
-#modules |
|
14 |
-loadmodule "modules/print/print.so" |
|
15 |
-loadmodule "modules/tm/tm.so" |
|
16 |
- |
|
17 |
-route{ |
|
18 |
- if ( t_lookup_request()) { |
|
19 |
- if ( method=="ACK" ) { |
|
20 |
- log("SER: ACK received -> t_release\n"); |
|
21 |
- if (! t_forward("iptel.org", "5060" )) { |
|
22 |
- log("SER: WARNING: bad forward\n"); |
|
23 |
- }; |
|
24 |
- if (! t_release()) { |
|
25 |
- log("SER: WARNING: bad t_release\n"); |
|
26 |
- }; |
|
27 |
- } else { |
|
28 |
- if (! t_retransmit_reply()) { |
|
29 |
- log("SER: WARNING: bad t_retransmit_reply\n"); |
|
30 |
- }; |
|
31 |
- log("SER: yet another annoying retranmission\n"); |
|
32 |
- }; |
|
33 |
- } else { |
|
34 |
- if (! t_add_transaction()){ |
|
35 |
- log("ERROR in ser: t_add_transaction\n"); |
|
36 |
- if (method=="BYE") { |
|
37 |
- forward("iptel.org", 5060); |
|
38 |
- }else{ |
|
39 |
- forward("iptel.org", 5060 ); |
|
40 |
- }; |
|
41 |
- } else { |
|
42 |
- if (method=="CANCEL") { |
|
43 |
- log("SER: new CANCEL\n"); |
|
44 |
- if (! t_send_reply( "200", "glad to cancel")){ |
|
45 |
- log("SER:ERROR: t_send_reply\n"); |
|
46 |
- }; |
|
47 |
- } else { |
|
48 |
- log("SER: new transaction\n"); |
|
49 |
- if (! t_send_reply("100", "trying -- your call is important to us") |
|
50 |
- ){ |
|
51 |
- log("SER: ERROR: t_send_reply (100)\n"); |
|
52 |
- }; |
|
53 |
- }; |
|
54 |
- if (method=="BYE") { |
|
55 |
- log("SER: BYE received, HACK: forwarding to client\n"); |
|
56 |
- if (! t_forward("iptel.org", "5060")){ |
|
57 |
- log("SER:ERROR: t_forward (..., 5555)\n"); |
|
58 |
- }; |
|
59 |
- }else{ |
|
60 |
- if (! t_forward("iptel.org", "5060" )){ |
|
61 |
- log("SER:ERROR: t_forward (..., 6666)\n"); |
|
62 |
- }; |
|
63 |
- }; |
|
64 |
- }; |
|
65 |
- }; |
|
66 |
- |
|
67 |
-} |
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-debug=3 # debug level (cmd line: -dddddddddd) |
|
1 |
+debug=9 # debug level (cmd line: -dddddddddd) |
|
2 | 2 |
check_via=yes # (cmd. line: -v) |
3 | 3 |
dns=on # (cmd. line: -r) |
4 | 4 |
rev_dns=yes # (cmd. line: -R) |
... | ... |
@@ -12,13 +12,13 @@ loop_checks=1 |
12 | 12 |
|
13 | 13 |
#modules |
14 | 14 |
loadmodule "modules/print/print.so" |
15 |
-#loadmodule "modules/tm/tm.so" |
|
15 |
+loadmodule "modules/tm/tm.so" |
|
16 | 16 |
|
17 | 17 |
route{ |
18 | 18 |
if ( t_lookup_request()) { |
19 | 19 |
if ( method=="ACK" ) { |
20 | 20 |
log("SER: ACK received -> t_release\n"); |
21 |
- if (! t_forward("195.37.78.233", "6666" )) { |
|
21 |
+ if (! t_forward("iptel.org", "5060" )) { |
|
22 | 22 |
log("SER: WARNING: bad forward\n"); |
23 | 23 |
}; |
24 | 24 |
if (! t_release()) { |
... | ... |
@@ -34,9 +34,9 @@ route{ |
34 | 34 |
if (! t_add_transaction()){ |
35 | 35 |
log("ERROR in ser: t_add_transaction\n"); |
36 | 36 |
if (method=="BYE") { |
37 |
- forward("195.37.78.233", 5555); |
|
37 |
+ forward("iptel.org", 5060); |
|
38 | 38 |
}else{ |
39 |
- forward("195.37.78.233", 6666 ); |
|
39 |
+ forward("iptel.org", 5060 ); |
|
40 | 40 |
}; |
41 | 41 |
} else { |
42 | 42 |
if (method=="CANCEL") { |
... | ... |
@@ -53,11 +53,11 @@ route{ |
53 | 53 |
}; |
54 | 54 |
if (method=="BYE") { |
55 | 55 |
log("SER: BYE received, HACK: forwarding to client\n"); |
56 |
- if (! t_forward("195.37.78.233", "5555")){ |
|
56 |
+ if (! t_forward("iptel.org", "5060")){ |
|
57 | 57 |
log("SER:ERROR: t_forward (..., 5555)\n"); |
58 | 58 |
}; |
59 | 59 |
}else{ |
60 |
- if (! t_forward("195.37.78.233", "6666" )){ |
|
60 |
+ if (! t_forward("iptel.org", "5060" )){ |
|
61 | 61 |
log("SER:ERROR: t_forward (..., 6666)\n"); |
62 | 62 |
}; |
63 | 63 |
}; |
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-debug=9 # debug level (cmd line: -dddddddddd) |
|
1 |
+debug=3 # debug level (cmd line: -dddddddddd) |
|
2 | 2 |
check_via=yes # (cmd. line: -v) |
3 | 3 |
dns=on # (cmd. line: -r) |
4 | 4 |
rev_dns=yes # (cmd. line: -R) |
... | ... |
@@ -15,16 +15,10 @@ loadmodule "modules/print/print.so" |
15 | 15 |
#loadmodule "modules/tm/tm.so" |
16 | 16 |
|
17 | 17 |
route{ |
18 |
- #rewritehost("iptel.org"); |
|
19 |
-# forward(uri:host,uri:port); |
|
20 |
-# forward(127.0.0.1, 5090); |
|
21 |
-# sethost("127.0.0.1"); |
|
22 |
-# setport("5090"); |
|
23 |
- |
|
24 | 18 |
if ( t_lookup_request()) { |
25 | 19 |
if ( method=="ACK" ) { |
26 | 20 |
log("SER: ACK received -> t_release\n"); |
27 |
- if (! t_forward("127.0.0.1", "5090" )) { |
|
21 |
+ if (! t_forward("195.37.78.233", "6666" )) { |
|
28 | 22 |
log("SER: WARNING: bad forward\n"); |
29 | 23 |
}; |
30 | 24 |
if (! t_release()) { |
... | ... |
@@ -38,39 +32,36 @@ route{ |
38 | 32 |
}; |
39 | 33 |
} else { |
40 | 34 |
if (! t_add_transaction()){ |
41 |
- log("SER: ERROR: t_add_transaction\n"); |
|
42 |
- }; |
|
43 |
- if (method=="CANCEL") { |
|
44 |
- log("SER: new CANCEL\n"); |
|
45 |
- # XXX ... it wants me to put status code in "" |
|
46 |
- if (! t_send_reply( "200", "glad to cancel")){ |
|
47 |
- log("SER:ERROR: t_send_reply\n"); |
|
35 |
+ log("ERROR in ser: t_add_transaction\n"); |
|
36 |
+ if (method=="BYE") { |
|
37 |
+ forward("195.37.78.233", 5555); |
|
38 |
+ }else{ |
|
39 |
+ forward("195.37.78.233", 6666 ); |
|
48 | 40 |
}; |
49 | 41 |
} else { |
50 |
- log("SER: new transaction\n"); |
|
51 |
- if (! t_send_reply("100", "trying -- your call is important to us") |
|
52 |
- ){ |
|
53 |
- log("SER: ERROR: t_send_reply (100)\n"); |
|
42 |
+ if (method=="CANCEL") { |
|
43 |
+ log("SER: new CANCEL\n"); |
|
44 |
+ if (! t_send_reply( "200", "glad to cancel")){ |
|
45 |
+ log("SER:ERROR: t_send_reply\n"); |
|
46 |
+ }; |
|
47 |
+ } else { |
|
48 |
+ log("SER: new transaction\n"); |
|
49 |
+ if (! t_send_reply("100", "trying -- your call is important to us") |
|
50 |
+ ){ |
|
51 |
+ log("SER: ERROR: t_send_reply (100)\n"); |
|
52 |
+ }; |
|
54 | 53 |
}; |
55 |
- }; |
|
56 |
- #rewritehost("iptel.org"); |
|
57 |
- # XXX ... it wants me to put port nr in "" |
|
58 |
- #t_forward("benetnash.fokus.gmd.de", "5080" ); |
|
59 |
- if (method=="BYE") { |
|
60 |
- log("SER: BYE received, HACK: forwarding to client\n"); |
|
61 |
- if (! t_forward("127.0.0.1", "5000")){ |
|
62 |
- log("SER:ERROR: t_forward (..., 5555)\n"); |
|
63 |
- }; |
|
64 |
- |
|
65 |
- }else{ |
|
66 |
- if (! t_forward("127.0.0.1", "5090" )){ |
|
67 |
- log("SER:ERROR: t_forward (..., 6666)\n"); |
|
54 |
+ if (method=="BYE") { |
|
55 |
+ log("SER: BYE received, HACK: forwarding to client\n"); |
|
56 |
+ if (! t_forward("195.37.78.233", "5555")){ |
|
57 |
+ log("SER:ERROR: t_forward (..., 5555)\n"); |
|
58 |
+ }; |
|
59 |
+ }else{ |
|
60 |
+ if (! t_forward("195.37.78.233", "6666" )){ |
|
61 |
+ log("SER:ERROR: t_forward (..., 6666)\n"); |
|
62 |
+ }; |
|
68 | 63 |
}; |
69 | 64 |
}; |
70 |
- #t_forward_uri(); |
|
71 |
- # XXX ... it doesn't like default port numbers |
|
72 |
- # t_forward("fox.iptel.org" ); |
|
73 |
- # XXX t_forward_uri ... not done yet |
|
74 | 65 |
}; |
75 | 66 |
|
76 | 67 |
} |
... | ... |
@@ -2,11 +2,11 @@ debug=9 # debug level (cmd line: -dddddddddd) |
2 | 2 |
check_via=yes # (cmd. line: -v) |
3 | 3 |
dns=on # (cmd. line: -r) |
4 | 4 |
rev_dns=yes # (cmd. line: -R) |
5 |
-fork=yes # (cmd. line: -D) |
|
6 |
-children=4 |
|
5 |
+fork=no # (cmd. line: -D) |
|
6 |
+children=10 |
|
7 | 7 |
log_stderror=yes # (cmd line: -E) |
8 | 8 |
#port=5080 |
9 |
-listen=127.0.0.1 |
|
9 |
+#listen=127.0.0.1 |
|
10 | 10 |
loop_checks=1 |
11 | 11 |
# for more info: sip_router -h |
12 | 12 |
|
... | ... |
@@ -2,11 +2,11 @@ debug=9 # debug level (cmd line: -dddddddddd) |
2 | 2 |
check_via=yes # (cmd. line: -v) |
3 | 3 |
dns=on # (cmd. line: -r) |
4 | 4 |
rev_dns=yes # (cmd. line: -R) |
5 |
-fork=no # (cmd. line: -D) |
|
6 |
-#children=4 |
|
5 |
+fork=yes # (cmd. line: -D) |
|
6 |
+children=4 |
|
7 | 7 |
log_stderror=yes # (cmd line: -E) |
8 | 8 |
#port=5080 |
9 |
-#listen=127.0.0.1 |
|
9 |
+listen=127.0.0.1 |
|
10 | 10 |
loop_checks=1 |
11 | 11 |
# for more info: sip_router -h |
12 | 12 |
|
... | ... |
@@ -24,7 +24,7 @@ route{ |
24 | 24 |
if ( t_lookup_request()) { |
25 | 25 |
if ( method=="ACK" ) { |
26 | 26 |
log("SER: ACK received -> t_release\n"); |
27 |
- if (! t_forward("195.37.78.233", "6666" )) { |
|
27 |
+ if (! t_forward("127.0.0.1", "5090" )) { |
|
28 | 28 |
log("SER: WARNING: bad forward\n"); |
29 | 29 |
}; |
30 | 30 |
if (! t_release()) { |
... | ... |
@@ -58,12 +58,12 @@ route{ |
58 | 58 |
#t_forward("benetnash.fokus.gmd.de", "5080" ); |
59 | 59 |
if (method=="BYE") { |
60 | 60 |
log("SER: BYE received, HACK: forwarding to client\n"); |
61 |
- if (! t_forward("195.37.78.233", "5555")){ |
|
61 |
+ if (! t_forward("127.0.0.1", "5000")){ |
|
62 | 62 |
log("SER:ERROR: t_forward (..., 5555)\n"); |
63 | 63 |
}; |
64 | 64 |
|
65 | 65 |
}else{ |
66 |
- if (! t_forward("195.37.78.233", "6666" )){ |
|
66 |
+ if (! t_forward("127.0.0.1", "5090" )){ |
|
67 | 67 |
log("SER:ERROR: t_forward (..., 6666)\n"); |
68 | 68 |
}; |
69 | 69 |
}; |
... | ... |
@@ -1,12 +1,12 @@ |
1 |
-debug=3 # debug level (cmd line: -dddddddddd) |
|
1 |
+debug=9 # debug level (cmd line: -dddddddddd) |
|
2 | 2 |
check_via=yes # (cmd. line: -v) |
3 | 3 |
dns=on # (cmd. line: -r) |
4 | 4 |
rev_dns=yes # (cmd. line: -R) |
5 |
-fork=no # (cmd. line: -D) |
|
6 |
-children=4 |
|
5 |
+fork=no # (cmd. line: -D) |
|
6 |
+#children=4 |
|
7 | 7 |
log_stderror=yes # (cmd line: -E) |
8 | 8 |
#port=5080 |
9 |
-listen=127.0.0.1 |
|
9 |
+#listen=127.0.0.1 |
|
10 | 10 |
loop_checks=1 |
11 | 11 |
# for more info: sip_router -h |
12 | 12 |
|
... | ... |
@@ -24,7 +24,7 @@ route{ |
24 | 24 |
if ( t_lookup_request()) { |
25 | 25 |
if ( method=="ACK" ) { |
26 | 26 |
log("SER: ACK received -> t_release\n"); |
27 |
- if (! t_forward("127.0.0.1", "5090" )) { |
|
27 |
+ if (! t_forward("195.37.78.233", "6666" )) { |
|
28 | 28 |
log("SER: WARNING: bad forward\n"); |
29 | 29 |
}; |
30 | 30 |
if (! t_release()) { |
... | ... |
@@ -58,13 +58,13 @@ route{ |
58 | 58 |
#t_forward("benetnash.fokus.gmd.de", "5080" ); |
59 | 59 |
if (method=="BYE") { |
60 | 60 |
log("SER: BYE received, HACK: forwarding to client\n"); |
61 |
- if (! t_forward("127.0.0.1", "5000")){ |
|
62 |
- log("SER:ERROR: t_forward (..., 5000)\n"); |
|
61 |
+ if (! t_forward("195.37.78.233", "5555")){ |
|
62 |
+ log("SER:ERROR: t_forward (..., 5555)\n"); |
|
63 | 63 |
}; |
64 |
- |
|
64 |
+ |
|
65 | 65 |
}else{ |
66 |
- if (! t_forward("127.0.0.1", "5090" )){ |
|
67 |
- log("SER:ERROR: t_forward (..., 5090)\n"); |
|
66 |
+ if (! t_forward("195.37.78.233", "6666" )){ |
|
67 |
+ log("SER:ERROR: t_forward (..., 6666)\n"); |
|
68 | 68 |
}; |
69 | 69 |
}; |
70 | 70 |
#t_forward_uri(); |
... | ... |
@@ -1,12 +1,12 @@ |
1 |
-debug=9 # debug level (cmd line: -dddddddddd) |
|
1 |
+debug=3 # debug level (cmd line: -dddddddddd) |
|
2 | 2 |
check_via=yes # (cmd. line: -v) |
3 | 3 |
dns=on # (cmd. line: -r) |
4 | 4 |
rev_dns=yes # (cmd. line: -R) |
5 |
-fork=no # (cmd. line: -D) |
|
6 |
-#children=5 |
|
5 |
+fork=yes # (cmd. line: -D) |
|
6 |
+children=4 |
|
7 | 7 |
log_stderror=yes # (cmd line: -E) |
8 | 8 |
#port=5080 |
9 |
-#listen=192.168.99.100 |
|
9 |
+listen=127.0.0.1 |
|
10 | 10 |
loop_checks=1 |
11 | 11 |
# for more info: sip_router -h |
12 | 12 |
|
... | ... |
@@ -16,35 +16,58 @@ loadmodule "modules/tm/tm.so" |
16 | 16 |
|
17 | 17 |
route{ |
18 | 18 |
#rewritehost("iptel.org"); |
19 |
- log("trying forward to uri"); |
|
20 | 19 |
# forward(uri:host,uri:port); |
21 | 20 |
# forward(127.0.0.1, 5090); |
22 |
- log("after forward"); |
|
21 |
+# sethost("127.0.0.1"); |
|
22 |
+# setport("5090"); |
|
23 | 23 |
|
24 | 24 |
if ( t_lookup_request()) { |
25 | 25 |
if ( method=="ACK" ) { |
26 | 26 |
log("SER: ACK received -> t_release\n"); |
27 |
- t_forward("iptel.org", "5060" ); |
|
28 |
- t_release(); |
|
27 |
+ if (! t_forward("127.0.0.1", "5090" )) { |
|
28 |
+ log("SER: WARNING: bad forward\n"); |
|
29 |
+ }; |
|
30 |
+ if (! t_release()) { |
|
31 |
+ log("SER: WARNING: bad t_release\n"); |
|
32 |
+ }; |
|
29 | 33 |
} else { |
30 |
- t_retransmit_reply(); |
|
34 |
+ if (! t_retransmit_reply()) { |
|
35 |
+ log("SER: WARNING: bad t_retransmit_reply\n"); |
|
36 |
+ }; |
|
31 | 37 |
log("SER: yet another annoying retranmission\n"); |
32 | 38 |
}; |
33 | 39 |
} else { |
34 |
- t_add_transaction(); |
|
40 |
+ if (! t_add_transaction()){ |
|
41 |
+ log("SER: ERROR: t_add_transaction\n"); |
|
42 |
+ }; |
|
35 | 43 |
if (method=="CANCEL") { |
36 | 44 |
log("SER: new CANCEL\n"); |
37 | 45 |
# XXX ... it wants me to put status code in "" |
38 |
- t_send_reply( "200", "glad to cancel"); |
|
46 |
+ if (! t_send_reply( "200", "glad to cancel")){ |
|
47 |
+ log("SER:ERROR: t_send_reply\n"); |
|
48 |
+ }; |
|
39 | 49 |
} else { |
40 | 50 |
log("SER: new transaction\n"); |
41 |
- t_send_reply("100", "trying -- your call is important to us"); |
|
51 |
+ if (! t_send_reply("100", "trying -- your call is important to us") |
|
52 |
+ ){ |
|
53 |
+ log("SER: ERROR: t_send_reply (100)\n"); |
|
54 |
+ }; |
|
42 | 55 |
}; |
43 | 56 |
#rewritehost("iptel.org"); |
44 | 57 |
# XXX ... it wants me to put port nr in "" |
45 | 58 |
#t_forward("benetnash.fokus.gmd.de", "5080" ); |
46 |
- #t_forward("iptel.org", "5060" ); |
|
47 |
- t_forward_uri(); |
|
59 |
+ if (method=="BYE") { |
|
60 |
+ log("SER: BYE received, HACK: forwarding to client\n"); |
|
61 |
+ if (! t_forward("127.0.0.1", "5000")){ |
|
62 |
+ log("SER:ERROR: t_forward (..., 5000)\n"); |
|
63 |
+ }; |
|
64 |
+ |
|
65 |
+ }else{ |
|
66 |
+ if (! t_forward("127.0.0.1", "5090" )){ |
|
67 |
+ log("SER:ERROR: t_forward (..., 5090)\n"); |
|
68 |
+ }; |
|
69 |
+ }; |
|
70 |
+ #t_forward_uri(); |
|
48 | 71 |
# XXX ... it doesn't like default port numbers |
49 | 72 |
# t_forward("fox.iptel.org" ); |
50 | 73 |
# XXX t_forward_uri ... not done yet |
... | ... |
@@ -24,6 +24,7 @@ route{ |
24 | 24 |
if ( t_lookup_request()) { |
25 | 25 |
if ( method=="ACK" ) { |
26 | 26 |
log("SER: ACK received -> t_release\n"); |
27 |
+ t_forward("iptel.org", "5060" ); |
|
27 | 28 |
t_release(); |
28 | 29 |
} else { |
29 | 30 |
t_retransmit_reply(); |
... | ... |
@@ -39,7 +40,7 @@ route{ |
39 | 40 |
log("SER: new transaction\n"); |
40 | 41 |
t_send_reply("100", "trying -- your call is important to us"); |
41 | 42 |
}; |
42 |
- rewritehost("iptel.org"); |
|
43 |
+ #rewritehost("iptel.org"); |
|
43 | 44 |
# XXX ... it wants me to put port nr in "" |
44 | 45 |
#t_forward("benetnash.fokus.gmd.de", "5080" ); |
45 | 46 |
#t_forward("iptel.org", "5060" ); |
... | ... |
@@ -48,5 +49,5 @@ route{ |
48 | 49 |
# t_forward("fox.iptel.org" ); |
49 | 50 |
# XXX t_forward_uri ... not done yet |
50 | 51 |
}; |
51 |
- |
|
52 |
+ |
|
52 | 53 |
} |
... | ... |
@@ -42,8 +42,8 @@ route{ |
42 | 42 |
rewritehost("iptel.org"); |
43 | 43 |
# XXX ... it wants me to put port nr in "" |
44 | 44 |
#t_forward("benetnash.fokus.gmd.de", "5080" ); |
45 |
- t_forward("iptel.org", "5060" ); |
|
46 |
- #t_forward_uri(); |
|
45 |
+ #t_forward("iptel.org", "5060" ); |
|
46 |
+ t_forward_uri(); |
|
47 | 47 |
# XXX ... it doesn't like default port numbers |
48 | 48 |
# t_forward("fox.iptel.org" ); |
49 | 49 |
# XXX t_forward_uri ... not done yet |
... | ... |
@@ -14,6 +14,7 @@ loadmodule "modules/print/print.so" |
14 | 14 |
loadmodule "modules/tm/tm.so" |
15 | 15 |
|
16 | 16 |
route{ |
17 |
+ #rewritehost("iptel.org"); |
|
17 | 18 |
log("trying forward to uri"); |
18 | 19 |
# forward(uri:host,uri:port); |
19 | 20 |
# forward(127.0.0.1, 5090); |
... | ... |
@@ -37,10 +38,11 @@ route{ |
37 | 38 |
log("SER: new transaction\n"); |
38 | 39 |
t_send_reply("100", "trying -- your call is important to us"); |
39 | 40 |
}; |
40 |
- #rewritehost("xy.com"); |
|
41 |
+ rewritehost("iptel.org"); |
|
41 | 42 |
# XXX ... it wants me to put port nr in "" |
42 | 43 |
#t_forward("benetnash.fokus.gmd.de", "5080" ); |
43 | 44 |
t_forward("iptel.org", "5060" ); |
45 |
+ #t_forward_uri(); |
|
44 | 46 |
# XXX ... it doesn't like default port numbers |
45 | 47 |
# t_forward("fox.iptel.org" ); |
46 | 48 |
# XXX t_forward_uri ... not done yet |
... | ... |
@@ -40,7 +40,7 @@ route{ |
40 | 40 |
#rewritehost("xy.com"); |
41 | 41 |
# XXX ... it wants me to put port nr in "" |
42 | 42 |
#t_forward("benetnash.fokus.gmd.de", "5080" ); |
43 |
- t_forward("localhost", "5080" ); |
|
43 |
+ t_forward("iptel.org", "5060" ); |
|
44 | 44 |
# XXX ... it doesn't like default port numbers |
45 | 45 |
# t_forward("fox.iptel.org" ); |
46 | 46 |
# XXX t_forward_uri ... not done yet |
... | ... |
@@ -21,9 +21,8 @@ route{ |
21 | 21 |
|
22 | 22 |
if ( t_lookup_request()) { |
23 | 23 |
if ( method=="ACK" ) { |
24 |
- # XXX ... t_release not implemented yet |
|
25 |
- log("SER: t_release\n"); |
|
26 |
- #t_release(); |
|
24 |
+ log("SER: ACK received -> t_release\n"); |
|
25 |
+ t_put_on_wait(); |
|
27 | 26 |
} else { |
28 | 27 |
t_retransmit_reply(); |
29 | 28 |
log("SER: yet another annoying retranmission\n"); |
... | ... |
@@ -4,13 +4,14 @@ dns=on # (cmd. line: -r) |
4 | 4 |
rev_dns=yes # (cmd. line: -R) |
5 | 5 |
fork=no # (cmd. line: -D) |
6 | 6 |
log_stderror=yes # (cmd line: -E) |
7 |
-port=5080 |
|
8 |
-listen=192.168.99.100 |
|
7 |
+#port=5080 |
|
8 |
+#listen=192.168.99.100 |
|
9 | 9 |
loop_checks=1 |
10 | 10 |
# for more info: sip_router -h |
11 | 11 |
|
12 | 12 |
#modules |
13 | 13 |
loadmodule "modules/tm/tm.so" |
14 |
+loadmodule "modules/print/print.so" |
|
14 | 15 |
|
15 | 16 |
route{ |
16 | 17 |
log("trying forward to uri"); |
... | ... |
@@ -5,7 +5,7 @@ rev_dns=yes # (cmd. line: -R) |
5 | 5 |
fork=no # (cmd. line: -D) |
6 | 6 |
log_stderror=yes # (cmd line: -E) |
7 | 7 |
port=5080 |
8 |
-listen=127.0.0.1 |
|
8 |
+listen=192.168.99.100 |
|
9 | 9 |
loop_checks=1 |
10 | 10 |
# for more info: sip_router -h |
11 | 11 |
|
... | ... |
@@ -21,21 +21,21 @@ route{ |
21 | 21 |
if ( t_lookup_request()) { |
22 | 22 |
if ( method=="ACK" ) { |
23 | 23 |
# XXX ... t_release not implemented yet |
24 |
- log("t_release"); |
|
24 |
+ log("SER: t_release\n"); |
|
25 | 25 |
#t_release(); |
26 | 26 |
} else { |
27 | 27 |
t_retransmit_reply(); |
28 |
- log("yet another annoying retranmission"); |
|
28 |
+ log("SER: yet another annoying retranmission\n"); |
|
29 | 29 |
}; |
30 | 30 |
} else { |
31 | 31 |
t_add_transaction(); |
32 | 32 |
if (method=="CANCEL") { |
33 |
- log("new CANCEL"); |
|
33 |
+ log("SER: new CANCEL\n"); |
|
34 | 34 |
# XXX ... it wants me to put status code in "" |
35 | 35 |
t_send_reply( "200", "glad to cancel"); |
36 | 36 |
} else { |
37 |
- log("new transaction"); |
|
38 |
- #t_send_reply("100", "trying -- your call is important to us"); |
|
37 |
+ log("SER: new transaction\n"); |
|
38 |
+ t_send_reply("100", "trying -- your call is important to us"); |
|
39 | 39 |
}; |
40 | 40 |
#rewritehost("xy.com"); |
41 | 41 |
# XXX ... it wants me to put port nr in "" |
... | ... |
@@ -14,7 +14,7 @@ loadmodule "modules/tm/tm.so" |
14 | 14 |
route{ |
15 | 15 |
log("trying forward to uri"); |
16 | 16 |
# forward(uri:host,uri:port); |
17 |
- forward(127.0.0.1, 5090); |
|
17 |
+# forward(127.0.0.1, 5090); |
|
18 | 18 |
log("after forward"); |
19 | 19 |
|
20 | 20 |
if ( t_lookup_request()) { |
... | ... |
@@ -34,11 +34,12 @@ route{ |
34 | 34 |
t_send_reply( "200", "glad to cancel"); |
35 | 35 |
} else { |
36 | 36 |
log("new transaction"); |
37 |
- t_send_reply("100", "trying -- your call is important to us"); |
|
37 |
+ #t_send_reply("100", "trying -- your call is important to us"); |
|
38 | 38 |
}; |
39 |
- rewritehost("xy.com"); |
|
39 |
+ #rewritehost("xy.com"); |
|
40 | 40 |
# XXX ... it wants me to put port nr in "" |
41 |
- t_forward("fox.iptel.org", "5062" ); |
|
41 |
+ #t_forward("benetnash.fokus.gmd.de", "5080" ); |
|
42 |
+ t_forward("localhost", "5080" ); |
|
42 | 43 |
# XXX ... it doesn't like default port numbers |
43 | 44 |
# t_forward("fox.iptel.org" ); |
44 | 45 |
# XXX t_forward_uri ... not done yet |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,47 @@ |
1 |
+debug=9 # debug level (cmd line: -dddddddddd) |
|
2 |
+check_via=yes # (cmd. line: -v) |
|
3 |
+dns=on # (cmd. line: -r) |
|
4 |
+rev_dns=yes # (cmd. line: -R) |
|
5 |
+fork=no # (cmd. line: -D) |
|
6 |
+log_stderror=yes # (cmd line: -E) |
|
7 |
+port=5080 |
|
8 |
+listen=127.0.0.1 |
|
9 |
+# for more info: sip_router -h |
|
10 |
+ |
|
11 |
+#modules |
|
12 |
+loadmodule "modules/tm/tm.so" |
|
13 |
+ |
|
14 |
+route{ |
|
15 |
+ log("trying forward to uri"); |
|
16 |
+# forward(uri:host,uri:port); |
|
17 |
+ forward(127.0.0.1, 5090); |
|
18 |
+ log("after forward"); |
|
19 |
+ |
|
20 |
+ if ( t_lookup_request()) { |
|
21 |
+ if ( method=="ACK" ) { |
|
22 |
+ # XXX ... t_release not implemented yet |
|
23 |
+ log("t_release"); |
|
24 |
+ #t_release(); |
|
25 |
+ } else { |
|
26 |
+ t_retransmit_reply(); |
|
27 |
+ log("yet another annoying retranmission"); |
|
28 |
+ }; |
|
29 |
+ } else { |
|
30 |
+ t_add_transaction(); |
|
31 |
+ if (method=="CANCEL") { |
|
32 |
+ log("new CANCEL"); |
|
33 |
+ # XXX ... it wants me to put status code in "" |
|
34 |
+ t_send_reply( "200", "glad to cancel"); |
|
35 |
+ } else { |
|
36 |
+ log("new transaction"); |
|
37 |
+ t_send_reply("100", "trying -- your call is important to us"); |
|
38 |
+ }; |
|
39 |
+ rewritehost("xy.com"); |
|
40 |
+ # XXX ... it wants me to put port nr in "" |
|
41 |
+ t_forward("fox.iptel.org", "5062" ); |
|
42 |
+ # XXX ... it doesn't like default port numbers |
|
43 |
+ # t_forward("fox.iptel.org" ); |
|
44 |
+ # t_forward_uri ... not done yet |
|
45 |
+ }; |
|
46 |
+ |
|
47 |
+} |