SipStack.java 7.9 KB

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