*** empty log message ***
[sip-router] / test / th-uri.cfg
1
2 debug=9          # debug level (cmd line: -dddddddddd)
3 #fork=yes          # (cmd. line: -D)
4 fork=no
5 log_stderror=yes  # (cmd line: -E)
6 #log_stderror=no   # (cmd line: -E)
7
8
9 children=2
10 check_via=no      # (cmd. line: -v)
11 dns=off           # (cmd. line: -r)
12 rev_dns=off       # (cmd. line: -R)
13 port=5070
14 listen=193.175.132.142
15 # for more info: sip_router -h
16
17 #modules
18 loadmodule "modules/print/print.so"
19 loadmodule "modules/textops/textops.so"
20 loadmodule "modules/maxfwd/maxfwd.so"
21 loadmodule "modules/sl/sl.so"
22 loadmodule "modules/tm/tm.so"
23 loadmodule "modules/im/im.so"
24 loadmodule "modules/sms/sms.so"
25
26
27 modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=2;r=1] ")
28 modparam("sms","networks","D1[c=491710765000;m=10]")
29 modparam("sms","links","Falcom[D1] ")
30 #modparam("sms","domain","hope.fokus.gmd.de")
31 modparam("sms","max_sms_parts",3)
32 modparam("sms","use_contact",1)
33 modparam("sms","sms_report_type",2)
34
35 route{
36         if ( !mf_process_maxfwd_header("10") )
37         {
38                 sl_send_reply("483","To Many Hops");
39                 drop();
40         };
41
42         if (uri=~"sip:(\+[0-9]+@)?fesarius\.fokus\.gmd\.de"
43           | uri=~"sip:(\+[0-9]+@)?193\.175\.132\.142")
44         {
45                 if (method=="MESSAGE")
46                 {
47                         log("MESSAGE received -> sending as sms\n");
48                         if (sms_send_msg_to_net("D1"))
49                         {
50                                 sl_send_reply("200","Accepted");
51                         }else{
52                                 sl_send_reply("502","Bad gateway");
53                         };
54                 }else{
55                         log("NON_Message request received for sms gateway->dropt!\n");
56                         sl_send_reply("501","Not implemented");
57                 };
58                 break;
59         };
60
61
62         sl_send_reply("502","Not Implemented");
63         #forward(uri:host,uri:port);
64 }