summaryrefslogtreecommitdiffstats
path: root/bindings/java/CallSession.java
blob: 802d05bf8e0a2c45d9aad9e2f91447dba733dd38 (plain)
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
/* ----------------------------------------------------------------------------
 * 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 CallSession extends InviteSession {
  private long swigCPtr;

  protected CallSession(long cPtr, boolean cMemoryOwn) {
    super(tinyWRAPJNI.SWIGCallSessionUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected static long getCPtr(CallSession obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      tinyWRAPJNI.delete_CallSession(swigCPtr);
    }
    swigCPtr = 0;
    super.delete();
  }

  public CallSession(SipStack Stack) {
    this(tinyWRAPJNI.new_CallSession(SipStack.getCPtr(Stack), Stack), true);
  }

  public boolean callAudio(String remoteUri, ActionConfig config) {
    return tinyWRAPJNI.CallSession_callAudio__SWIG_0(swigCPtr, this, remoteUri, ActionConfig.getCPtr(config), config);
  }

  public boolean callAudio(String remoteUri) {
    return tinyWRAPJNI.CallSession_callAudio__SWIG_1(swigCPtr, this, remoteUri);
  }

  public boolean callAudioVideo(String remoteUri, ActionConfig config) {
    return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_0(swigCPtr, this, remoteUri, ActionConfig.getCPtr(config), config);
  }

  public boolean callAudioVideo(String remoteUri) {
    return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_1(swigCPtr, this, remoteUri);
  }

  public boolean callVideo(String remoteUri, ActionConfig config) {
    return tinyWRAPJNI.CallSession_callVideo__SWIG_0(swigCPtr, this, remoteUri, ActionConfig.getCPtr(config), config);
  }

  public boolean callVideo(String remoteUri) {
    return tinyWRAPJNI.CallSession_callVideo__SWIG_1(swigCPtr, this, remoteUri);
  }

  public boolean setSessionTimer(long timeout, String refresher) {
    return tinyWRAPJNI.CallSession_setSessionTimer(swigCPtr, this, timeout, refresher);
  }

  public boolean set100rel(boolean enabled) {
    return tinyWRAPJNI.CallSession_set100rel(swigCPtr, this, enabled);
  }

  public boolean setQoS(tmedia_qos_stype_t type, tmedia_qos_strength_t strength) {
    return tinyWRAPJNI.CallSession_setQoS(swigCPtr, this, type.swigValue(), strength.swigValue());
  }

  public boolean hold(ActionConfig config) {
    return tinyWRAPJNI.CallSession_hold__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
  }

  public boolean hold() {
    return tinyWRAPJNI.CallSession_hold__SWIG_1(swigCPtr, this);
  }

  public boolean resume(ActionConfig config) {
    return tinyWRAPJNI.CallSession_resume__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
  }

  public boolean resume() {
    return tinyWRAPJNI.CallSession_resume__SWIG_1(swigCPtr, this);
  }

  public boolean sendDTMF(int number) {
    return tinyWRAPJNI.CallSession_sendDTMF(swigCPtr, this, number);
  }

}
OpenPOWER on IntegriCloud