modules/ims_qos: added patch for flow-description bug when request originates from...
[sip-router] / src / modules / app_java / kamailio_java_folder / java-untested / WrappedMethods.java
1 import java.lang.*;
2 import java.io.*;
3
4 import org.siprouter.*;
5 import org.siprouter.NativeInterface.*;
6
7 public class WrappedMethods extends NativeMethods
8 {
9         public static boolean is_method(String method)
10         {
11             if (KamExec("is_method", method) == -1)
12                 return false;
13             else
14                 return true;
15         }
16
17         public static boolean t_check_trans()
18         {
19             if (KamExec("t_check_trans") == -1)
20                 return false;
21             else
22                 return true;
23         }
24
25         public static boolean t_relay()
26         {
27             if (KamExec("t_relay") == -1)
28                 return false;
29             else
30                 return true;
31         }
32
33         public static void record_route()
34         {
35             KamExec("record_route");
36         }
37
38         public static void append_hf(String txt)
39         {
40             KamExec("append_hf", txt);
41         }
42
43         public static void append_hf(String txt, String hdr)
44         {
45             KamExec("append_hf", txt, hdr);
46         }
47
48         public static void remove_hf(String hname)
49         {
50             KamExec("remove_hf", hname);
51         }
52
53         public static void sl_send_reply(String replycode, String replymsg)
54         {
55             KamExec("sl_send_reply", replycode, replymsg);
56         }
57
58         public static void sl_reply_error()
59         {
60             KamExec("sl_reply_error");
61         }
62
63         public static boolean has_totag()
64         {
65             if (KamExec("has_totag") == -1)
66                 return false;
67             else
68                 return true;
69         }
70
71         public static boolean loose_route()
72         {
73             if (KamExec("loose_route") == -1)
74                 return false;
75             else
76                 return true;
77         }
78
79         public static boolean save(String location)
80         {
81             if (KamExec("save", location) == -1)
82                 return false;
83             else
84                 return true;
85         }
86
87 }