1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.doubango.tinyWRAP;
public class SipStack extends SafeObject {
private long swigCPtr;
protected SipStack(long cPtr, boolean cMemoryOwn) {
super(tinyWRAPJNI.SWIGSipStackUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(SipStack obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPJNI.delete_SipStack(swigCPtr);
}
swigCPtr = 0;
super.delete();
}
public SipStack(SipCallback callback, String realm_uri, String impi_uri, String impu_uri) {
this(tinyWRAPJNI.new_SipStack(SipCallback.getCPtr(callback), callback, realm_uri, impi_uri, impu_uri), true);
}
public boolean start() {
return tinyWRAPJNI.SipStack_start(swigCPtr, this);
}
public boolean setDebugCallback(DDebugCallback callback) {
return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, DDebugCallback.getCPtr(callback), callback);
}
public boolean setRealm(String realm_uri) {
return tinyWRAPJNI.SipStack_setRealm(swigCPtr, this, realm_uri);
}
public boolean setIMPI(String impi) {
return tinyWRAPJNI.SipStack_setIMPI(swigCPtr, this, impi);
}
public boolean setIMPU(String impu_uri) {
return tinyWRAPJNI.SipStack_setIMPU(swigCPtr, this, impu_uri);
}
public boolean setPassword(String password) {
return tinyWRAPJNI.SipStack_setPassword(swigCPtr, this, password);
}
public boolean setAMF(String amf) {
return tinyWRAPJNI.SipStack_setAMF(swigCPtr, this, amf);
}
public boolean setOperatorId(String opid) {
return tinyWRAPJNI.SipStack_setOperatorId(swigCPtr, this, opid);
}
public boolean setProxyCSCF(String fqdn, int port, String transport, String ipversion) {
return tinyWRAPJNI.SipStack_setProxyCSCF(swigCPtr, this, fqdn, port, transport, ipversion);
}
public boolean setLocalIP(String ip) {
return tinyWRAPJNI.SipStack_setLocalIP(swigCPtr, this, ip);
}
public boolean setLocalPort(int port) {
return tinyWRAPJNI.SipStack_setLocalPort(swigCPtr, this, port);
}
public boolean setEarlyIMS(boolean enabled) {
return tinyWRAPJNI.SipStack_setEarlyIMS(swigCPtr, this, enabled);
}
public boolean addHeader(String name, String value) {
return tinyWRAPJNI.SipStack_addHeader(swigCPtr, this, name, value);
}
public boolean removeHeader(String name) {
return tinyWRAPJNI.SipStack_removeHeader(swigCPtr, this, name);
}
public boolean addDnsServer(String ip) {
return tinyWRAPJNI.SipStack_addDnsServer(swigCPtr, this, ip);
}
public boolean setDnsDiscovery(boolean enabled) {
return tinyWRAPJNI.SipStack_setDnsDiscovery(swigCPtr, this, enabled);
}
public boolean setAoR(String ip, int port) {
return tinyWRAPJNI.SipStack_setAoR(swigCPtr, this, ip, port);
}
public boolean setSigCompParams(long dms, long sms, long cpb, boolean enablePresDict) {
return tinyWRAPJNI.SipStack_setSigCompParams(swigCPtr, this, dms, sms, cpb, enablePresDict);
}
public boolean addSigCompCompartment(String compId) {
return tinyWRAPJNI.SipStack_addSigCompCompartment(swigCPtr, this, compId);
}
public boolean removeSigCompCompartment(String compId) {
return tinyWRAPJNI.SipStack_removeSigCompCompartment(swigCPtr, this, compId);
}
public boolean setSTUNServer(String ip, int port) {
return tinyWRAPJNI.SipStack_setSTUNServer(swigCPtr, this, ip, port);
}
public boolean setSTUNCred(String login, String password) {
return tinyWRAPJNI.SipStack_setSTUNCred(swigCPtr, this, login, password);
}
public boolean setTLSSecAgree(boolean enabled) {
return tinyWRAPJNI.SipStack_setTLSSecAgree(swigCPtr, this, enabled);
}
public boolean setSSLCretificates(String privKey, String pubKey, String caKey) {
return tinyWRAPJNI.SipStack_setSSLCretificates(swigCPtr, this, privKey, pubKey, caKey);
}
public boolean setIPSecSecAgree(boolean enabled) {
return tinyWRAPJNI.SipStack_setIPSecSecAgree(swigCPtr, this, enabled);
}
public boolean setIPSecParameters(String algo, String ealgo, String mode, String proto) {
return tinyWRAPJNI.SipStack_setIPSecParameters(swigCPtr, this, algo, ealgo, mode, proto);
}
public String dnsENUM(String service, String e164num, String domain) {
return tinyWRAPJNI.SipStack_dnsENUM(swigCPtr, this, service, e164num, domain);
}
public String dnsNaptrSrv(String domain, String service, int[] OUTPUT) {
return tinyWRAPJNI.SipStack_dnsNaptrSrv(swigCPtr, this, domain, service, OUTPUT);
}
public String dnsSrv(String service, int[] OUTPUT) {
return tinyWRAPJNI.SipStack_dnsSrv(swigCPtr, this, service, OUTPUT);
}
public String getLocalIPnPort(String protocol, int[] OUTPUT) {
return tinyWRAPJNI.SipStack_getLocalIPnPort(swigCPtr, this, protocol, OUTPUT);
}
public String getPreferredIdentity() {
return tinyWRAPJNI.SipStack_getPreferredIdentity(swigCPtr, this);
}
public boolean isValid() {
return tinyWRAPJNI.SipStack_isValid(swigCPtr, this);
}
public boolean stop() {
return tinyWRAPJNI.SipStack_stop(swigCPtr, this);
}
public static void setCodecs(tdav_codec_id_t codecs) {
tinyWRAPJNI.SipStack_setCodecs(codecs.swigValue());
}
public static void setCodecs_2(int codecs) {
tinyWRAPJNI.SipStack_setCodecs_2(codecs);
}
public static boolean isCodecSupported(tdav_codec_id_t codec) {
return tinyWRAPJNI.SipStack_isCodecSupported(codec.swigValue());
}
}
|