CallSession.java 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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 CallSession extends InviteSession {
  10. private long swigCPtr;
  11. protected CallSession(long cPtr, boolean cMemoryOwn) {
  12. super(tinyWRAPJNI.CallSession_SWIGUpcast(cPtr), cMemoryOwn);
  13. swigCPtr = cPtr;
  14. }
  15. protected static long getCPtr(CallSession 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_CallSession(swigCPtr);
  26. }
  27. swigCPtr = 0;
  28. }
  29. super.delete();
  30. }
  31. public CallSession(SipStack pStack) {
  32. this(tinyWRAPJNI.new_CallSession(SipStack.getCPtr(pStack), pStack), true);
  33. }
  34. public boolean callAudio(String remoteUriString, ActionConfig config) {
  35. return tinyWRAPJNI.CallSession_callAudio__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config);
  36. }
  37. public boolean callAudio(String remoteUriString) {
  38. return tinyWRAPJNI.CallSession_callAudio__SWIG_1(swigCPtr, this, remoteUriString);
  39. }
  40. public boolean callAudio(SipUri remoteUri, ActionConfig config) {
  41. return tinyWRAPJNI.CallSession_callAudio__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config);
  42. }
  43. public boolean callAudio(SipUri remoteUri) {
  44. return tinyWRAPJNI.CallSession_callAudio__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri);
  45. }
  46. public boolean callAudioVideo(String remoteUriString, ActionConfig config) {
  47. return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config);
  48. }
  49. public boolean callAudioVideo(String remoteUriString) {
  50. return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_1(swigCPtr, this, remoteUriString);
  51. }
  52. public boolean callAudioVideo(SipUri remoteUri, ActionConfig config) {
  53. return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config);
  54. }
  55. public boolean callAudioVideo(SipUri remoteUri) {
  56. return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri);
  57. }
  58. public boolean callVideo(String remoteUriString, ActionConfig config) {
  59. return tinyWRAPJNI.CallSession_callVideo__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config);
  60. }
  61. public boolean callVideo(String remoteUriString) {
  62. return tinyWRAPJNI.CallSession_callVideo__SWIG_1(swigCPtr, this, remoteUriString);
  63. }
  64. public boolean callVideo(SipUri remoteUri, ActionConfig config) {
  65. return tinyWRAPJNI.CallSession_callVideo__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config);
  66. }
  67. public boolean callVideo(SipUri remoteUri) {
  68. return tinyWRAPJNI.CallSession_callVideo__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri);
  69. }
  70. public boolean call(String remoteUriString, twrap_media_type_t media, ActionConfig config) {
  71. return tinyWRAPJNI.CallSession_call__SWIG_0(swigCPtr, this, remoteUriString, media.swigValue(), ActionConfig.getCPtr(config), config);
  72. }
  73. public boolean call(String remoteUriString, twrap_media_type_t media) {
  74. return tinyWRAPJNI.CallSession_call__SWIG_1(swigCPtr, this, remoteUriString, media.swigValue());
  75. }
  76. public boolean call(SipUri remoteUri, twrap_media_type_t media, ActionConfig config) {
  77. return tinyWRAPJNI.CallSession_call__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, media.swigValue(), ActionConfig.getCPtr(config), config);
  78. }
  79. public boolean call(SipUri remoteUri, twrap_media_type_t media) {
  80. return tinyWRAPJNI.CallSession_call__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, media.swigValue());
  81. }
  82. public boolean setSessionTimer(long timeout, String refresher) {
  83. return tinyWRAPJNI.CallSession_setSessionTimer(swigCPtr, this, timeout, refresher);
  84. }
  85. public boolean set100rel(boolean enabled) {
  86. return tinyWRAPJNI.CallSession_set100rel(swigCPtr, this, enabled);
  87. }
  88. public boolean setRtcp(boolean enabled) {
  89. return tinyWRAPJNI.CallSession_setRtcp(swigCPtr, this, enabled);
  90. }
  91. public boolean setRtcpMux(boolean enabled) {
  92. return tinyWRAPJNI.CallSession_setRtcpMux(swigCPtr, this, enabled);
  93. }
  94. public boolean setSRtpMode(tmedia_srtp_mode_t mode) {
  95. return tinyWRAPJNI.CallSession_setSRtpMode(swigCPtr, this, mode.swigValue());
  96. }
  97. public boolean setAvpfMode(tmedia_mode_t mode) {
  98. return tinyWRAPJNI.CallSession_setAvpfMode(swigCPtr, this, mode.swigValue());
  99. }
  100. public boolean setICE(boolean enabled) {
  101. return tinyWRAPJNI.CallSession_setICE(swigCPtr, this, enabled);
  102. }
  103. public boolean setICEStun(boolean enabled) {
  104. return tinyWRAPJNI.CallSession_setICEStun(swigCPtr, this, enabled);
  105. }
  106. public boolean setICETurn(boolean enabled) {
  107. return tinyWRAPJNI.CallSession_setICETurn(swigCPtr, this, enabled);
  108. }
  109. public boolean setSTUNServer(String hostname, int port) {
  110. return tinyWRAPJNI.CallSession_setSTUNServer(swigCPtr, this, hostname, port);
  111. }
  112. public boolean setSTUNCred(String username, String password) {
  113. return tinyWRAPJNI.CallSession_setSTUNCred(swigCPtr, this, username, password);
  114. }
  115. public boolean setVideoFps(int fps) {
  116. return tinyWRAPJNI.CallSession_setVideoFps(swigCPtr, this, fps);
  117. }
  118. public boolean setVideoBandwidthUploadMax(int max) {
  119. return tinyWRAPJNI.CallSession_setVideoBandwidthUploadMax(swigCPtr, this, max);
  120. }
  121. public boolean setVideoBandwidthDownloadMax(int max) {
  122. return tinyWRAPJNI.CallSession_setVideoBandwidthDownloadMax(swigCPtr, this, max);
  123. }
  124. public boolean setVideoPrefSize(tmedia_pref_video_size_t pref_video_size) {
  125. return tinyWRAPJNI.CallSession_setVideoPrefSize(swigCPtr, this, pref_video_size.swigValue());
  126. }
  127. public boolean setQoS(tmedia_qos_stype_t type, tmedia_qos_strength_t strength) {
  128. return tinyWRAPJNI.CallSession_setQoS(swigCPtr, this, type.swigValue(), strength.swigValue());
  129. }
  130. public boolean hold(ActionConfig config) {
  131. return tinyWRAPJNI.CallSession_hold__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
  132. }
  133. public boolean hold() {
  134. return tinyWRAPJNI.CallSession_hold__SWIG_1(swigCPtr, this);
  135. }
  136. public boolean resume(ActionConfig config) {
  137. return tinyWRAPJNI.CallSession_resume__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
  138. }
  139. public boolean resume() {
  140. return tinyWRAPJNI.CallSession_resume__SWIG_1(swigCPtr, this);
  141. }
  142. public boolean transfer(String referToUriString, ActionConfig config) {
  143. return tinyWRAPJNI.CallSession_transfer__SWIG_0(swigCPtr, this, referToUriString, ActionConfig.getCPtr(config), config);
  144. }
  145. public boolean transfer(String referToUriString) {
  146. return tinyWRAPJNI.CallSession_transfer__SWIG_1(swigCPtr, this, referToUriString);
  147. }
  148. public boolean acceptTransfer(ActionConfig config) {
  149. return tinyWRAPJNI.CallSession_acceptTransfer__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
  150. }
  151. public boolean acceptTransfer() {
  152. return tinyWRAPJNI.CallSession_acceptTransfer__SWIG_1(swigCPtr, this);
  153. }
  154. public boolean rejectTransfer(ActionConfig config) {
  155. return tinyWRAPJNI.CallSession_rejectTransfer__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
  156. }
  157. public boolean rejectTransfer() {
  158. return tinyWRAPJNI.CallSession_rejectTransfer__SWIG_1(swigCPtr, this);
  159. }
  160. public boolean sendDTMF(int number) {
  161. return tinyWRAPJNI.CallSession_sendDTMF(swigCPtr, this, number);
  162. }
  163. public long getSessionTransferId() {
  164. return tinyWRAPJNI.CallSession_getSessionTransferId(swigCPtr, this);
  165. }
  166. public boolean sendT140Data(tmedia_t140_data_type_t data_type, java.nio.ByteBuffer data_ptr, long data_size) {
  167. return tinyWRAPJNI.CallSession_sendT140Data__SWIG_0(swigCPtr, this, data_type.swigValue(), data_ptr, data_size);
  168. }
  169. public boolean sendT140Data(tmedia_t140_data_type_t data_type, java.nio.ByteBuffer data_ptr) {
  170. return tinyWRAPJNI.CallSession_sendT140Data__SWIG_1(swigCPtr, this, data_type.swigValue(), data_ptr);
  171. }
  172. public boolean sendT140Data(tmedia_t140_data_type_t data_type) {
  173. return tinyWRAPJNI.CallSession_sendT140Data__SWIG_2(swigCPtr, this, data_type.swigValue());
  174. }
  175. public boolean setT140Callback(T140Callback pT140Callback) {
  176. return tinyWRAPJNI.CallSession_setT140Callback(swigCPtr, this, T140Callback.getCPtr(pT140Callback), pT140Callback);
  177. }
  178. }