GPLization banner introduced to *.[hc] files
[sip-router] / test / xx.cfg
1 # forwarding to Cisco phone
2 #
3 # $Id$
4 #
5
6
7 debug=9          # debug level (cmd line: -dddddddddd)
8 log_stderror=yes # (cmd line: -E)
9 check_via=yes     # (cmd. line: -v)
10 dns=on           # (cmd. line: -r)
11 rev_dns=yes      # (cmd. line: -R)
12 fork=yes
13 children=4
14 #fork=no          # (cmd. line: -D)
15 port=5080
16 #listen=127.0.0.1
17 listen=192.168.99.100
18 loop_checks=1
19 # for more info: sip_router -h
20
21 #modules
22 loadmodule "modules/print/print.so"
23 #loadmodule "modules/tm/tm.so"
24
25
26 route[0]{
27         if ( t_lookup_request()) {
28                 if ( method=="ACK" )    {
29                         t_release();
30 #                       forward(195.37.77.100, 5090 );
31 #                       forward(195.37.78.146, 5060 );
32 # once it supports ACK too
33 #                       t_forward(195.37.77.100, 5090 );
34                         t_forward("195.37.78.146", "5060" );
35                 } else {
36                         t_retransmit_reply();
37                 };
38                 t_unref();
39         } else {
40                 if (method=="ACK") {
41 #                       forward(195.37.77.100, 5090 );
42                         forward(195.37.78.146, 5060 );
43                 } else {
44                         t_add_transaction();
45                         if (method=="CANCEL") {
46                                 t_send_reply( "200", "glad to cancel");
47                         } else {
48                                 t_send_reply("100", "trying -- your call is important to us");
49                         };
50 #                       t_forward("195.37.77.100", "5090" );
51                         t_forward("195.37.78.146", "5060" );
52                         break;
53                         t_unref();
54                 };
55         };
56                 
57 }
58
59 #route[0] {
60 #       forward(195.37.78.146, 5060);
61 #       drop;
62 #}