c048bc0c1cfa091c5a32b005d78406918989f39f
[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=no          # (cmd. line: -D)
13 port=5080
14 #listen=127.0.0.1
15 listen=192.168.99.100
16 loop_checks=1
17 # for more info: sip_router -h
18
19 #modules
20 loadmodule "modules/print/print.so"
21 #loadmodule "modules/tm/tm.so"
22
23 route{
24         if ( t_lookup_request()) {
25                 if ( method=="ACK" )    {
26                         t_release();
27 #                       forward(195.37.77.100, 5090 );
28 #                       forward(195.37.78.146, 5060 );
29 # once it supports ACK too
30 #                       t_forward(195.37.77.100, 5090 );
31                         t_forward("195.37.78.146", "5060" );
32                 } else {
33                         t_retransmit_reply();
34                 };
35                 t_unref();
36         } else {
37                 if (method=="ACK") {
38 #                       forward(195.37.77.100, 5090 );
39                         forward(195.37.78.146, 5060 );
40                 } else {
41                         t_add_transaction();
42                         if (method=="CANCEL") {
43                                 t_send_reply( "200", "glad to cancel");
44                         } else {
45                                 t_send_reply("100", "trying -- your call is important to us");
46                         };
47 #                       t_forward("195.37.77.100", "5090" );
48                         t_forward("195.37.78.146", "5060" );
49                         t_unref();
50                 };
51         };
52                 
53 }