├── .gitignore
├── Pjsua2
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.jdt.core.prefs
├── AndroidManifest.xml
├── ic_launcher-web.png
├── jni
│ ├── Android.mk
│ └── Application.mk
├── libs
│ └── armeabi
│ │ └── libpjsua2.so
├── proguard-project.txt
├── project.properties
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ ├── drawable
│ │ └── bkg.xml
│ ├── layout
│ │ ├── activity_call.xml
│ │ ├── activity_main.xml
│ │ ├── dlg_account_config.xml
│ │ └── dlg_add_buddy.xml
│ ├── menu
│ │ ├── call.xml
│ │ └── main.xml
│ ├── values-sw600dp
│ │ └── dimens.xml
│ ├── values-sw720dp-land
│ │ └── dimens.xml
│ ├── values-v11
│ │ └── styles.xml
│ ├── values-v14
│ │ └── styles.xml
│ └── values
│ │ ├── colors.xml
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
└── src
│ └── org
│ └── pjsip
│ └── pjsua2
│ ├── Account.java
│ ├── AccountCallConfig.java
│ ├── AccountConfig.java
│ ├── AccountInfo.java
│ ├── AccountMediaConfig.java
│ ├── AccountMwiConfig.java
│ ├── AccountNatConfig.java
│ ├── AccountPresConfig.java
│ ├── AccountRegConfig.java
│ ├── AccountSipConfig.java
│ ├── AccountVideoConfig.java
│ ├── AudDevManager.java
│ ├── AudioDevInfo.java
│ ├── AudioDevInfoVector.java
│ ├── AudioMedia.java
│ ├── AudioMediaPlayer.java
│ ├── AudioMediaPlayerInfo.java
│ ├── AudioMediaRecorder.java
│ ├── AudioMediaVector.java
│ ├── AuthCredInfo.java
│ ├── AuthCredInfoVector.java
│ ├── Buddy.java
│ ├── BuddyConfig.java
│ ├── BuddyInfo.java
│ ├── BuddyVector.java
│ ├── Call.java
│ ├── CallInfo.java
│ ├── CallMediaInfo.java
│ ├── CallMediaInfoVector.java
│ ├── CallOpParam.java
│ ├── CallSendRequestParam.java
│ ├── CallSetting.java
│ ├── CallVidSetStreamParam.java
│ ├── CodecInfo.java
│ ├── CodecInfoVector.java
│ ├── ConfPortInfo.java
│ ├── ContainerNode.java
│ ├── Endpoint.java
│ ├── EpConfig.java
│ ├── Error.java
│ ├── FindBuddyMatch.java
│ ├── IntVector.java
│ ├── JbufState.java
│ ├── JsonDocument.java
│ ├── LogConfig.java
│ ├── LogEntry.java
│ ├── LogWriter.java
│ ├── MathStat.java
│ ├── Media.java
│ ├── MediaConfig.java
│ ├── MediaEvent.java
│ ├── MediaFmtChangedEvent.java
│ ├── MediaFormat.java
│ ├── MediaFormatAudio.java
│ ├── MediaFormatVector.java
│ ├── MediaFormatVideo.java
│ ├── MediaTransportInfo.java
│ ├── OnCallMediaEventParam.java
│ ├── OnCallMediaStateParam.java
│ ├── OnCallMediaTransportStateParam.java
│ ├── OnCallRedirectedParam.java
│ ├── OnCallReplaceRequestParam.java
│ ├── OnCallReplacedParam.java
│ ├── OnCallRxOfferParam.java
│ ├── OnCallSdpCreatedParam.java
│ ├── OnCallStateParam.java
│ ├── OnCallTransferRequestParam.java
│ ├── OnCallTransferStatusParam.java
│ ├── OnCallTsxStateParam.java
│ ├── OnCreateMediaTransportParam.java
│ ├── OnDtmfDigitParam.java
│ ├── OnIncomingCallParam.java
│ ├── OnIncomingSubscribeParam.java
│ ├── OnInstantMessageParam.java
│ ├── OnInstantMessageStatusParam.java
│ ├── OnMwiInfoParam.java
│ ├── OnNatCheckStunServersCompleteParam.java
│ ├── OnNatDetectionCompleteParam.java
│ ├── OnRegStartedParam.java
│ ├── OnRegStateParam.java
│ ├── OnSelectAccountParam.java
│ ├── OnStreamCreatedParam.java
│ ├── OnStreamDestroyedParam.java
│ ├── OnTimerParam.java
│ ├── OnTransportStateParam.java
│ ├── OnTypingIndicationParam.java
│ ├── PendingJob.java
│ ├── PersistentDocument.java
│ ├── PersistentObject.java
│ ├── PresNotifyParam.java
│ ├── PresenceStatus.java
│ ├── RtcpSdes.java
│ ├── RtcpStat.java
│ ├── RtcpStreamStat.java
│ ├── RxMsgEvent.java
│ ├── SWIGTYPE_p_p_void.java
│ ├── SWIGTYPE_p_pj_bool_t.java
│ ├── SWIGTYPE_p_pj_ssize_t.java
│ ├── SWIGTYPE_p_void.java
│ ├── SdpSession.java
│ ├── SendInstantMessageParam.java
│ ├── SendTypingIndicationParam.java
│ ├── SipEvent.java
│ ├── SipHeader.java
│ ├── SipHeaderVector.java
│ ├── SipMediaType.java
│ ├── SipMultipartPart.java
│ ├── SipMultipartPartVector.java
│ ├── SipRxData.java
│ ├── SipTransaction.java
│ ├── SipTxData.java
│ ├── SipTxOption.java
│ ├── StreamInfo.java
│ ├── StreamStat.java
│ ├── StringVector.java
│ ├── TimeVal.java
│ ├── TimerEvent.java
│ ├── TlsConfig.java
│ ├── ToneDesc.java
│ ├── ToneDescVector.java
│ ├── ToneDigit.java
│ ├── ToneDigitMapDigit.java
│ ├── ToneDigitMapVector.java
│ ├── ToneDigitVector.java
│ ├── ToneGenerator.java
│ ├── TransportConfig.java
│ ├── TransportInfo.java
│ ├── TsxStateEvent.java
│ ├── TxErrorEvent.java
│ ├── TxMsgEvent.java
│ ├── UaConfig.java
│ ├── UserEvent.java
│ ├── Version.java
│ ├── app
│ ├── CallActivity.java
│ ├── MainActivity.java
│ └── MyApp.java
│ ├── pj_constants_.java
│ ├── pj_file_access.java
│ ├── pj_log_decoration.java
│ ├── pj_qos_flag.java
│ ├── pj_qos_params.java
│ ├── pj_qos_type.java
│ ├── pj_qos_wmm_prio.java
│ ├── pj_ssl_cipher.java
│ ├── pj_stun_nat_type.java
│ ├── pj_turn_tp_type.java
│ ├── pjmedia_aud_dev_cap.java
│ ├── pjmedia_aud_dev_route.java
│ ├── pjmedia_dir.java
│ ├── pjmedia_event_type.java
│ ├── pjmedia_file_player_option.java
│ ├── pjmedia_file_writer_option.java
│ ├── pjmedia_format_id.java
│ ├── pjmedia_srtp_use.java
│ ├── pjmedia_tone_desc.java
│ ├── pjmedia_tone_digit.java
│ ├── pjmedia_tone_digit_map.java
│ ├── pjmedia_tp_proto.java
│ ├── pjmedia_type.java
│ ├── pjmedia_vid_dev_std_index.java
│ ├── pjmedia_vid_stream_rc_method.java
│ ├── pjrpid_activity.java
│ ├── pjsip_cred_data_type.java
│ ├── pjsip_dialog_cap_status.java
│ ├── pjsip_event_id_e.java
│ ├── pjsip_evsub_state.java
│ ├── pjsip_hdr_e.java
│ ├── pjsip_inv_state.java
│ ├── pjsip_redirect_op.java
│ ├── pjsip_role_e.java
│ ├── pjsip_ssl_method.java
│ ├── pjsip_status_code.java
│ ├── pjsip_transport_flags_e.java
│ ├── pjsip_transport_state.java
│ ├── pjsip_transport_type_e.java
│ ├── pjsip_tsx_state_e.java
│ ├── pjsua2.java
│ ├── pjsua2Constants.java
│ ├── pjsua2JNI.java
│ ├── pjsua_100rel_use.java
│ ├── pjsua_buddy_status.java
│ ├── pjsua_call_flag.java
│ ├── pjsua_call_hold_type.java
│ ├── pjsua_call_media_status.java
│ ├── pjsua_call_vid_strm_op.java
│ ├── pjsua_create_media_transport_flag.java
│ ├── pjsua_destroy_flag.java
│ ├── pjsua_invalid_id_const_.java
│ ├── pjsua_ipv6_use.java
│ ├── pjsua_med_tp_st.java
│ ├── pjsua_sip_timer_use.java
│ ├── pjsua_state.java
│ ├── pjsua_stun_use.java
│ └── pjsua_vid_req_keyframe_method.java
├── README.md
└── pjsua
├── .classpath
├── .project
├── .settings
├── org.eclipse.core.resources.prefs
└── org.eclipse.jdt.core.prefs
├── AndroidManifest.xml
├── jni
├── Android.mk
├── pjsua.i
├── pjsua_app_callback.cpp
├── pjsua_app_callback.h
├── pjsua_wrap.cpp
└── pjsua_wrap.h
├── libs
└── armeabi
│ └── libpjsua.so
├── lint.xml
├── obj
└── local
│ └── armeabi
│ ├── libpjsua.so
│ ├── libstdc++.a
│ └── objs
│ └── pjsua
│ ├── pjsua_app_callback.o
│ ├── pjsua_app_callback.o.d
│ ├── pjsua_wrap.o
│ └── pjsua_wrap.o.d
├── proguard-project.txt
├── project.properties
├── res
├── drawable-hdpi
│ └── main_image.png
├── drawable-ldpi
│ └── main_image.png
├── drawable-mdpi
│ └── main_image.png
├── drawable-xhdpi
│ └── main_image.png
├── layout
│ └── activity_main.xml
├── values-v11
│ └── styles.xml
├── values-v14
│ └── styles.xml
└── values
│ ├── strings.xml
│ └── styles.xml
└── src
└── org
└── pjsip
└── pjsua
├── MainActivity.java
├── PjsuaAppCallback.java
├── pjsua.java
└── pjsuaJNI.java
/.gitignore:
--------------------------------------------------------------------------------
1 | # built application files
2 | *.apk
3 | *.ap_
4 |
5 | # files for the dex VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # generated files
12 | bin/
13 | gen/
14 |
15 | # Local configuration file (sdk path, etc)
16 | local.properties
17 |
18 | # Eclipse project files
19 | .classpath
20 | .project
21 | .metadata/
22 | .recommenders/
23 |
24 | # Proguard folder generated by Eclipse
25 | proguard/
26 |
27 | # Intellij project files
28 | *.iml
29 | *.ipr
30 | *.iws
31 | .idea/
32 |
--------------------------------------------------------------------------------
/Pjsua2/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Pjsua2/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Pjsua2
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Pjsua2/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/Pjsua2/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.source=1.6
5 |
--------------------------------------------------------------------------------
/Pjsua2/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
29 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/Pjsua2/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/Pjsua2/ic_launcher-web.png
--------------------------------------------------------------------------------
/Pjsua2/jni/Android.mk:
--------------------------------------------------------------------------------
1 | include ../../../../../build.mak
2 |
3 | LOCAL_PATH := $(PJDIR)/pjsip-apps/src/swig/java/android
4 | include $(CLEAR_VARS)
5 |
6 | LOCAL_MODULE := libpjsua2
7 | LOCAL_CFLAGS := $(APP_CXXFLAGS) -frtti -fexceptions
8 | LOCAL_LDFLAGS := $(APP_LDXXFLAGS)
9 | LOCAL_LDLIBS := $(APP_LDXXLIBS)
10 | #LOCAL_SHARED_LIBRARIES := $(APP_LDXXLIBS)
11 | LOCAL_SRC_FILES := ../output/pjsua2_wrap.cpp
12 |
13 | include $(BUILD_SHARED_LIBRARY)
14 |
--------------------------------------------------------------------------------
/Pjsua2/jni/Application.mk:
--------------------------------------------------------------------------------
1 | APP_STL := gnustl_static
2 | APP_PLATFORM := android-11
3 |
--------------------------------------------------------------------------------
/Pjsua2/libs/armeabi/libpjsua2.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/Pjsua2/libs/armeabi/libpjsua2.so
--------------------------------------------------------------------------------
/Pjsua2/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/Pjsua2/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 |
--------------------------------------------------------------------------------
/Pjsua2/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/Pjsua2/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Pjsua2/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/Pjsua2/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Pjsua2/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/Pjsua2/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Pjsua2/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/Pjsua2/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Pjsua2/res/drawable/bkg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Pjsua2/res/layout/activity_call.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
19 |
20 |
26 |
27 |
33 |
34 |
40 |
41 |
--------------------------------------------------------------------------------
/Pjsua2/res/layout/dlg_add_buddy.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Pjsua2/res/menu/call.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/Pjsua2/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/Pjsua2/res/values-sw600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Pjsua2/res/values-sw720dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | 128dp
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Pjsua2/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Pjsua2/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Pjsua2/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #B8F2F5
4 | #E8FEFF
5 |
--------------------------------------------------------------------------------
/Pjsua2/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Pjsua2/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Pjsua2
5 | Settings
6 | Call
7 | Hello world!
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Pjsua2/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/AccountMwiConfig.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class AccountMwiConfig extends PersistentObject {
12 | private long swigCPtr;
13 |
14 | protected AccountMwiConfig(long cPtr, boolean cMemoryOwn) {
15 | super(pjsua2JNI.AccountMwiConfig_SWIGUpcast(cPtr), cMemoryOwn);
16 | swigCPtr = cPtr;
17 | }
18 |
19 | protected static long getCPtr(AccountMwiConfig obj) {
20 | return (obj == null) ? 0 : obj.swigCPtr;
21 | }
22 |
23 | protected void finalize() {
24 | delete();
25 | }
26 |
27 | public synchronized void delete() {
28 | if (swigCPtr != 0) {
29 | if (swigCMemOwn) {
30 | swigCMemOwn = false;
31 | pjsua2JNI.delete_AccountMwiConfig(swigCPtr);
32 | }
33 | swigCPtr = 0;
34 | }
35 | super.delete();
36 | }
37 |
38 | public void setEnabled(boolean value) {
39 | pjsua2JNI.AccountMwiConfig_enabled_set(swigCPtr, this, value);
40 | }
41 |
42 | public boolean getEnabled() {
43 | return pjsua2JNI.AccountMwiConfig_enabled_get(swigCPtr, this);
44 | }
45 |
46 | public void setExpirationSec(long value) {
47 | pjsua2JNI.AccountMwiConfig_expirationSec_set(swigCPtr, this, value);
48 | }
49 |
50 | public long getExpirationSec() {
51 | return pjsua2JNI.AccountMwiConfig_expirationSec_get(swigCPtr, this);
52 | }
53 |
54 | public void readObject(ContainerNode node) throws java.lang.Exception {
55 | pjsua2JNI.AccountMwiConfig_readObject(swigCPtr, this, ContainerNode.getCPtr(node), node);
56 | }
57 |
58 | public void writeObject(ContainerNode node) throws java.lang.Exception {
59 | pjsua2JNI.AccountMwiConfig_writeObject(swigCPtr, this, ContainerNode.getCPtr(node), node);
60 | }
61 |
62 | public AccountMwiConfig() {
63 | this(pjsua2JNI.new_AccountMwiConfig(), true);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/AudioMediaVector.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class AudioMediaVector {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected AudioMediaVector(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(AudioMediaVector obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_AudioMediaVector(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public AudioMediaVector() {
39 | this(pjsua2JNI.new_AudioMediaVector__SWIG_0(), true);
40 | }
41 |
42 | public AudioMediaVector(long n) {
43 | this(pjsua2JNI.new_AudioMediaVector__SWIG_1(n), true);
44 | }
45 |
46 | public long size() {
47 | return pjsua2JNI.AudioMediaVector_size(swigCPtr, this);
48 | }
49 |
50 | public long capacity() {
51 | return pjsua2JNI.AudioMediaVector_capacity(swigCPtr, this);
52 | }
53 |
54 | public void reserve(long n) {
55 | pjsua2JNI.AudioMediaVector_reserve(swigCPtr, this, n);
56 | }
57 |
58 | public boolean isEmpty() {
59 | return pjsua2JNI.AudioMediaVector_isEmpty(swigCPtr, this);
60 | }
61 |
62 | public void clear() {
63 | pjsua2JNI.AudioMediaVector_clear(swigCPtr, this);
64 | }
65 |
66 | public void add(AudioMedia x) {
67 | pjsua2JNI.AudioMediaVector_add(swigCPtr, this, AudioMedia.getCPtr(x), x);
68 | }
69 |
70 | public AudioMedia get(int i) {
71 | long cPtr = pjsua2JNI.AudioMediaVector_get(swigCPtr, this, i);
72 | return (cPtr == 0) ? null : new AudioMedia(cPtr, false);
73 | }
74 |
75 | public void set(int i, AudioMedia val) {
76 | pjsua2JNI.AudioMediaVector_set(swigCPtr, this, i, AudioMedia.getCPtr(val), val);
77 | }
78 |
79 | }
80 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/AuthCredInfoVector.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class AuthCredInfoVector {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected AuthCredInfoVector(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(AuthCredInfoVector obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_AuthCredInfoVector(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public AuthCredInfoVector() {
39 | this(pjsua2JNI.new_AuthCredInfoVector__SWIG_0(), true);
40 | }
41 |
42 | public AuthCredInfoVector(long n) {
43 | this(pjsua2JNI.new_AuthCredInfoVector__SWIG_1(n), true);
44 | }
45 |
46 | public long size() {
47 | return pjsua2JNI.AuthCredInfoVector_size(swigCPtr, this);
48 | }
49 |
50 | public long capacity() {
51 | return pjsua2JNI.AuthCredInfoVector_capacity(swigCPtr, this);
52 | }
53 |
54 | public void reserve(long n) {
55 | pjsua2JNI.AuthCredInfoVector_reserve(swigCPtr, this, n);
56 | }
57 |
58 | public boolean isEmpty() {
59 | return pjsua2JNI.AuthCredInfoVector_isEmpty(swigCPtr, this);
60 | }
61 |
62 | public void clear() {
63 | pjsua2JNI.AuthCredInfoVector_clear(swigCPtr, this);
64 | }
65 |
66 | public void add(AuthCredInfo x) {
67 | pjsua2JNI.AuthCredInfoVector_add(swigCPtr, this, AuthCredInfo.getCPtr(x), x);
68 | }
69 |
70 | public AuthCredInfo get(int i) {
71 | return new AuthCredInfo(pjsua2JNI.AuthCredInfoVector_get(swigCPtr, this, i), false);
72 | }
73 |
74 | public void set(int i, AuthCredInfo val) {
75 | pjsua2JNI.AuthCredInfoVector_set(swigCPtr, this, i, AuthCredInfo.getCPtr(val), val);
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/BuddyConfig.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class BuddyConfig extends PersistentObject {
12 | private long swigCPtr;
13 |
14 | protected BuddyConfig(long cPtr, boolean cMemoryOwn) {
15 | super(pjsua2JNI.BuddyConfig_SWIGUpcast(cPtr), cMemoryOwn);
16 | swigCPtr = cPtr;
17 | }
18 |
19 | protected static long getCPtr(BuddyConfig obj) {
20 | return (obj == null) ? 0 : obj.swigCPtr;
21 | }
22 |
23 | protected void finalize() {
24 | delete();
25 | }
26 |
27 | public synchronized void delete() {
28 | if (swigCPtr != 0) {
29 | if (swigCMemOwn) {
30 | swigCMemOwn = false;
31 | pjsua2JNI.delete_BuddyConfig(swigCPtr);
32 | }
33 | swigCPtr = 0;
34 | }
35 | super.delete();
36 | }
37 |
38 | public void setUri(String value) {
39 | pjsua2JNI.BuddyConfig_uri_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getUri() {
43 | return pjsua2JNI.BuddyConfig_uri_get(swigCPtr, this);
44 | }
45 |
46 | public void setSubscribe(boolean value) {
47 | pjsua2JNI.BuddyConfig_subscribe_set(swigCPtr, this, value);
48 | }
49 |
50 | public boolean getSubscribe() {
51 | return pjsua2JNI.BuddyConfig_subscribe_get(swigCPtr, this);
52 | }
53 |
54 | public void readObject(ContainerNode node) throws java.lang.Exception {
55 | pjsua2JNI.BuddyConfig_readObject(swigCPtr, this, ContainerNode.getCPtr(node), node);
56 | }
57 |
58 | public void writeObject(ContainerNode node) throws java.lang.Exception {
59 | pjsua2JNI.BuddyConfig_writeObject(swigCPtr, this, ContainerNode.getCPtr(node), node);
60 | }
61 |
62 | public BuddyConfig() {
63 | this(pjsua2JNI.new_BuddyConfig(), true);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/BuddyVector.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class BuddyVector {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected BuddyVector(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(BuddyVector obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_BuddyVector(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public BuddyVector() {
39 | this(pjsua2JNI.new_BuddyVector__SWIG_0(), true);
40 | }
41 |
42 | public BuddyVector(long n) {
43 | this(pjsua2JNI.new_BuddyVector__SWIG_1(n), true);
44 | }
45 |
46 | public long size() {
47 | return pjsua2JNI.BuddyVector_size(swigCPtr, this);
48 | }
49 |
50 | public long capacity() {
51 | return pjsua2JNI.BuddyVector_capacity(swigCPtr, this);
52 | }
53 |
54 | public void reserve(long n) {
55 | pjsua2JNI.BuddyVector_reserve(swigCPtr, this, n);
56 | }
57 |
58 | public boolean isEmpty() {
59 | return pjsua2JNI.BuddyVector_isEmpty(swigCPtr, this);
60 | }
61 |
62 | public void clear() {
63 | pjsua2JNI.BuddyVector_clear(swigCPtr, this);
64 | }
65 |
66 | public void add(Buddy x) {
67 | pjsua2JNI.BuddyVector_add(swigCPtr, this, Buddy.getCPtr(x), x);
68 | }
69 |
70 | public Buddy get(int i) {
71 | long cPtr = pjsua2JNI.BuddyVector_get(swigCPtr, this, i);
72 | return (cPtr == 0) ? null : new Buddy(cPtr, false);
73 | }
74 |
75 | public void set(int i, Buddy val) {
76 | pjsua2JNI.BuddyVector_set(swigCPtr, this, i, Buddy.getCPtr(val), val);
77 | }
78 |
79 | }
80 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/CallSendRequestParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class CallSendRequestParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected CallSendRequestParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(CallSendRequestParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_CallSendRequestParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setMethod(String value) {
39 | pjsua2JNI.CallSendRequestParam_method_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getMethod() {
43 | return pjsua2JNI.CallSendRequestParam_method_get(swigCPtr, this);
44 | }
45 |
46 | public void setTxOption(SipTxOption value) {
47 | pjsua2JNI.CallSendRequestParam_txOption_set(swigCPtr, this, SipTxOption.getCPtr(value), value);
48 | }
49 |
50 | public SipTxOption getTxOption() {
51 | long cPtr = pjsua2JNI.CallSendRequestParam_txOption_get(swigCPtr, this);
52 | return (cPtr == 0) ? null : new SipTxOption(cPtr, false);
53 | }
54 |
55 | public CallSendRequestParam() {
56 | this(pjsua2JNI.new_CallSendRequestParam(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/CallVidSetStreamParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class CallVidSetStreamParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected CallVidSetStreamParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(CallVidSetStreamParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_CallVidSetStreamParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setMedIdx(int value) {
39 | pjsua2JNI.CallVidSetStreamParam_medIdx_set(swigCPtr, this, value);
40 | }
41 |
42 | public int getMedIdx() {
43 | return pjsua2JNI.CallVidSetStreamParam_medIdx_get(swigCPtr, this);
44 | }
45 |
46 | public void setDir(pjmedia_dir value) {
47 | pjsua2JNI.CallVidSetStreamParam_dir_set(swigCPtr, this, value.swigValue());
48 | }
49 |
50 | public pjmedia_dir getDir() {
51 | return pjmedia_dir.swigToEnum(pjsua2JNI.CallVidSetStreamParam_dir_get(swigCPtr, this));
52 | }
53 |
54 | public void setCapDev(int value) {
55 | pjsua2JNI.CallVidSetStreamParam_capDev_set(swigCPtr, this, value);
56 | }
57 |
58 | public int getCapDev() {
59 | return pjsua2JNI.CallVidSetStreamParam_capDev_get(swigCPtr, this);
60 | }
61 |
62 | public CallVidSetStreamParam() {
63 | this(pjsua2JNI.new_CallVidSetStreamParam(), true);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/CodecInfo.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class CodecInfo {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected CodecInfo(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(CodecInfo obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_CodecInfo(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setCodecId(String value) {
39 | pjsua2JNI.CodecInfo_codecId_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getCodecId() {
43 | return pjsua2JNI.CodecInfo_codecId_get(swigCPtr, this);
44 | }
45 |
46 | public void setPriority(short value) {
47 | pjsua2JNI.CodecInfo_priority_set(swigCPtr, this, value);
48 | }
49 |
50 | public short getPriority() {
51 | return pjsua2JNI.CodecInfo_priority_get(swigCPtr, this);
52 | }
53 |
54 | public void setDesc(String value) {
55 | pjsua2JNI.CodecInfo_desc_set(swigCPtr, this, value);
56 | }
57 |
58 | public String getDesc() {
59 | return pjsua2JNI.CodecInfo_desc_get(swigCPtr, this);
60 | }
61 |
62 | public CodecInfo() {
63 | this(pjsua2JNI.new_CodecInfo(), true);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/CodecInfoVector.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class CodecInfoVector {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected CodecInfoVector(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(CodecInfoVector obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_CodecInfoVector(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public CodecInfoVector() {
39 | this(pjsua2JNI.new_CodecInfoVector__SWIG_0(), true);
40 | }
41 |
42 | public CodecInfoVector(long n) {
43 | this(pjsua2JNI.new_CodecInfoVector__SWIG_1(n), true);
44 | }
45 |
46 | public long size() {
47 | return pjsua2JNI.CodecInfoVector_size(swigCPtr, this);
48 | }
49 |
50 | public long capacity() {
51 | return pjsua2JNI.CodecInfoVector_capacity(swigCPtr, this);
52 | }
53 |
54 | public void reserve(long n) {
55 | pjsua2JNI.CodecInfoVector_reserve(swigCPtr, this, n);
56 | }
57 |
58 | public boolean isEmpty() {
59 | return pjsua2JNI.CodecInfoVector_isEmpty(swigCPtr, this);
60 | }
61 |
62 | public void clear() {
63 | pjsua2JNI.CodecInfoVector_clear(swigCPtr, this);
64 | }
65 |
66 | public void add(CodecInfo x) {
67 | pjsua2JNI.CodecInfoVector_add(swigCPtr, this, CodecInfo.getCPtr(x), x);
68 | }
69 |
70 | public CodecInfo get(int i) {
71 | long cPtr = pjsua2JNI.CodecInfoVector_get(swigCPtr, this, i);
72 | return (cPtr == 0) ? null : new CodecInfo(cPtr, false);
73 | }
74 |
75 | public void set(int i, CodecInfo val) {
76 | pjsua2JNI.CodecInfoVector_set(swigCPtr, this, i, CodecInfo.getCPtr(val), val);
77 | }
78 |
79 | }
80 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/FindBuddyMatch.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class FindBuddyMatch {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected FindBuddyMatch(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(FindBuddyMatch obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_FindBuddyMatch(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | protected void swigDirectorDisconnect() {
39 | swigCMemOwn = false;
40 | delete();
41 | }
42 |
43 | public void swigReleaseOwnership() {
44 | swigCMemOwn = false;
45 | pjsua2JNI.FindBuddyMatch_change_ownership(this, swigCPtr, false);
46 | }
47 |
48 | public void swigTakeOwnership() {
49 | swigCMemOwn = true;
50 | pjsua2JNI.FindBuddyMatch_change_ownership(this, swigCPtr, true);
51 | }
52 |
53 | public boolean match(String token, Buddy buddy) {
54 | return (getClass() == FindBuddyMatch.class) ? pjsua2JNI.FindBuddyMatch_match(swigCPtr, this, token, Buddy.getCPtr(buddy), buddy) : pjsua2JNI.FindBuddyMatch_matchSwigExplicitFindBuddyMatch(swigCPtr, this, token, Buddy.getCPtr(buddy), buddy);
55 | }
56 |
57 | public FindBuddyMatch() {
58 | this(pjsua2JNI.new_FindBuddyMatch(), true);
59 | pjsua2JNI.FindBuddyMatch_director_connect(this, swigCPtr, swigCMemOwn, true);
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/IntVector.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class IntVector {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected IntVector(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(IntVector obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_IntVector(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public IntVector() {
39 | this(pjsua2JNI.new_IntVector__SWIG_0(), true);
40 | }
41 |
42 | public IntVector(long n) {
43 | this(pjsua2JNI.new_IntVector__SWIG_1(n), true);
44 | }
45 |
46 | public long size() {
47 | return pjsua2JNI.IntVector_size(swigCPtr, this);
48 | }
49 |
50 | public long capacity() {
51 | return pjsua2JNI.IntVector_capacity(swigCPtr, this);
52 | }
53 |
54 | public void reserve(long n) {
55 | pjsua2JNI.IntVector_reserve(swigCPtr, this, n);
56 | }
57 |
58 | public boolean isEmpty() {
59 | return pjsua2JNI.IntVector_isEmpty(swigCPtr, this);
60 | }
61 |
62 | public void clear() {
63 | pjsua2JNI.IntVector_clear(swigCPtr, this);
64 | }
65 |
66 | public void add(int x) {
67 | pjsua2JNI.IntVector_add(swigCPtr, this, x);
68 | }
69 |
70 | public int get(int i) {
71 | return pjsua2JNI.IntVector_get(swigCPtr, this, i);
72 | }
73 |
74 | public void set(int i, int val) {
75 | pjsua2JNI.IntVector_set(swigCPtr, this, i, val);
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/JsonDocument.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class JsonDocument extends PersistentDocument {
12 | private long swigCPtr;
13 |
14 | protected JsonDocument(long cPtr, boolean cMemoryOwn) {
15 | super(pjsua2JNI.JsonDocument_SWIGUpcast(cPtr), cMemoryOwn);
16 | swigCPtr = cPtr;
17 | }
18 |
19 | protected static long getCPtr(JsonDocument obj) {
20 | return (obj == null) ? 0 : obj.swigCPtr;
21 | }
22 |
23 | protected void finalize() {
24 | delete();
25 | }
26 |
27 | public synchronized void delete() {
28 | if (swigCPtr != 0) {
29 | if (swigCMemOwn) {
30 | swigCMemOwn = false;
31 | pjsua2JNI.delete_JsonDocument(swigCPtr);
32 | }
33 | swigCPtr = 0;
34 | }
35 | super.delete();
36 | }
37 |
38 | public JsonDocument() {
39 | this(pjsua2JNI.new_JsonDocument(), true);
40 | }
41 |
42 | public void loadFile(String filename) throws java.lang.Exception {
43 | pjsua2JNI.JsonDocument_loadFile(swigCPtr, this, filename);
44 | }
45 |
46 | public void loadString(String input) throws java.lang.Exception {
47 | pjsua2JNI.JsonDocument_loadString(swigCPtr, this, input);
48 | }
49 |
50 | public void saveFile(String filename) throws java.lang.Exception {
51 | pjsua2JNI.JsonDocument_saveFile(swigCPtr, this, filename);
52 | }
53 |
54 | public String saveString() throws java.lang.Exception {
55 | return pjsua2JNI.JsonDocument_saveString(swigCPtr, this);
56 | }
57 |
58 | public ContainerNode getRootContainer() {
59 | return new ContainerNode(pjsua2JNI.JsonDocument_getRootContainer(swigCPtr, this), false);
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/LogEntry.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class LogEntry {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected LogEntry(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(LogEntry obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_LogEntry(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setLevel(int value) {
39 | pjsua2JNI.LogEntry_level_set(swigCPtr, this, value);
40 | }
41 |
42 | public int getLevel() {
43 | return pjsua2JNI.LogEntry_level_get(swigCPtr, this);
44 | }
45 |
46 | public void setMsg(String value) {
47 | pjsua2JNI.LogEntry_msg_set(swigCPtr, this, value);
48 | }
49 |
50 | public String getMsg() {
51 | return pjsua2JNI.LogEntry_msg_get(swigCPtr, this);
52 | }
53 |
54 | public void setThreadId(int value) {
55 | pjsua2JNI.LogEntry_threadId_set(swigCPtr, this, value);
56 | }
57 |
58 | public int getThreadId() {
59 | return pjsua2JNI.LogEntry_threadId_get(swigCPtr, this);
60 | }
61 |
62 | public void setThreadName(String value) {
63 | pjsua2JNI.LogEntry_threadName_set(swigCPtr, this, value);
64 | }
65 |
66 | public String getThreadName() {
67 | return pjsua2JNI.LogEntry_threadName_get(swigCPtr, this);
68 | }
69 |
70 | public LogEntry() {
71 | this(pjsua2JNI.new_LogEntry(), true);
72 | }
73 |
74 | }
75 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/LogWriter.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class LogWriter {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected LogWriter(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(LogWriter obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_LogWriter(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | protected void swigDirectorDisconnect() {
39 | swigCMemOwn = false;
40 | delete();
41 | }
42 |
43 | public void swigReleaseOwnership() {
44 | swigCMemOwn = false;
45 | pjsua2JNI.LogWriter_change_ownership(this, swigCPtr, false);
46 | }
47 |
48 | public void swigTakeOwnership() {
49 | swigCMemOwn = true;
50 | pjsua2JNI.LogWriter_change_ownership(this, swigCPtr, true);
51 | }
52 |
53 | public void write(LogEntry entry) {
54 | pjsua2JNI.LogWriter_write(swigCPtr, this, LogEntry.getCPtr(entry), entry);
55 | }
56 |
57 | public LogWriter() {
58 | this(pjsua2JNI.new_LogWriter(), true);
59 | pjsua2JNI.LogWriter_director_connect(this, swigCPtr, swigCMemOwn, true);
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/MathStat.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class MathStat {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected MathStat(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(MathStat obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_MathStat(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setN(int value) {
39 | pjsua2JNI.MathStat_n_set(swigCPtr, this, value);
40 | }
41 |
42 | public int getN() {
43 | return pjsua2JNI.MathStat_n_get(swigCPtr, this);
44 | }
45 |
46 | public void setMax(int value) {
47 | pjsua2JNI.MathStat_max_set(swigCPtr, this, value);
48 | }
49 |
50 | public int getMax() {
51 | return pjsua2JNI.MathStat_max_get(swigCPtr, this);
52 | }
53 |
54 | public void setMin(int value) {
55 | pjsua2JNI.MathStat_min_set(swigCPtr, this, value);
56 | }
57 |
58 | public int getMin() {
59 | return pjsua2JNI.MathStat_min_get(swigCPtr, this);
60 | }
61 |
62 | public void setLast(int value) {
63 | pjsua2JNI.MathStat_last_set(swigCPtr, this, value);
64 | }
65 |
66 | public int getLast() {
67 | return pjsua2JNI.MathStat_last_get(swigCPtr, this);
68 | }
69 |
70 | public void setMean(int value) {
71 | pjsua2JNI.MathStat_mean_set(swigCPtr, this, value);
72 | }
73 |
74 | public int getMean() {
75 | return pjsua2JNI.MathStat_mean_get(swigCPtr, this);
76 | }
77 |
78 | public MathStat() {
79 | this(pjsua2JNI.new_MathStat(), true);
80 | }
81 |
82 | }
83 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/Media.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class Media {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected Media(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(Media obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_Media(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public pjmedia_type getType() {
39 | return pjmedia_type.swigToEnum(pjsua2JNI.Media_getType(swigCPtr, this));
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/MediaEvent.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class MediaEvent {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected MediaEvent(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(MediaEvent obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_MediaEvent(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setType(pjmedia_event_type value) {
39 | pjsua2JNI.MediaEvent_type_set(swigCPtr, this, value.swigValue());
40 | }
41 |
42 | public pjmedia_event_type getType() {
43 | return pjmedia_event_type.swigToEnum(pjsua2JNI.MediaEvent_type_get(swigCPtr, this));
44 | }
45 |
46 | public void setPjMediaEvent(SWIGTYPE_p_void value) {
47 | pjsua2JNI.MediaEvent_pjMediaEvent_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
48 | }
49 |
50 | public SWIGTYPE_p_void getPjMediaEvent() {
51 | long cPtr = pjsua2JNI.MediaEvent_pjMediaEvent_get(swigCPtr, this);
52 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
53 | }
54 |
55 | public MediaEvent() {
56 | this(pjsua2JNI.new_MediaEvent(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/MediaFmtChangedEvent.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class MediaFmtChangedEvent {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected MediaFmtChangedEvent(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(MediaFmtChangedEvent obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_MediaFmtChangedEvent(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setNewWidth(long value) {
39 | pjsua2JNI.MediaFmtChangedEvent_newWidth_set(swigCPtr, this, value);
40 | }
41 |
42 | public long getNewWidth() {
43 | return pjsua2JNI.MediaFmtChangedEvent_newWidth_get(swigCPtr, this);
44 | }
45 |
46 | public void setNewHeight(long value) {
47 | pjsua2JNI.MediaFmtChangedEvent_newHeight_set(swigCPtr, this, value);
48 | }
49 |
50 | public long getNewHeight() {
51 | return pjsua2JNI.MediaFmtChangedEvent_newHeight_get(swigCPtr, this);
52 | }
53 |
54 | public MediaFmtChangedEvent() {
55 | this(pjsua2JNI.new_MediaFmtChangedEvent(), true);
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/MediaFormat.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class MediaFormat {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected MediaFormat(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(MediaFormat obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_MediaFormat(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setId(long value) {
39 | pjsua2JNI.MediaFormat_id_set(swigCPtr, this, value);
40 | }
41 |
42 | public long getId() {
43 | return pjsua2JNI.MediaFormat_id_get(swigCPtr, this);
44 | }
45 |
46 | public void setType(pjmedia_type value) {
47 | pjsua2JNI.MediaFormat_type_set(swigCPtr, this, value.swigValue());
48 | }
49 |
50 | public pjmedia_type getType() {
51 | return pjmedia_type.swigToEnum(pjsua2JNI.MediaFormat_type_get(swigCPtr, this));
52 | }
53 |
54 | public MediaFormat() {
55 | this(pjsua2JNI.new_MediaFormat(), true);
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/MediaTransportInfo.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class MediaTransportInfo {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected MediaTransportInfo(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(MediaTransportInfo obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_MediaTransportInfo(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setSrcRtpName(String value) {
39 | pjsua2JNI.MediaTransportInfo_srcRtpName_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getSrcRtpName() {
43 | return pjsua2JNI.MediaTransportInfo_srcRtpName_get(swigCPtr, this);
44 | }
45 |
46 | public void setSrcRtcpName(String value) {
47 | pjsua2JNI.MediaTransportInfo_srcRtcpName_set(swigCPtr, this, value);
48 | }
49 |
50 | public String getSrcRtcpName() {
51 | return pjsua2JNI.MediaTransportInfo_srcRtcpName_get(swigCPtr, this);
52 | }
53 |
54 | public MediaTransportInfo() {
55 | this(pjsua2JNI.new_MediaTransportInfo(), true);
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnCallMediaEventParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnCallMediaEventParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnCallMediaEventParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnCallMediaEventParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnCallMediaEventParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setMedIdx(long value) {
39 | pjsua2JNI.OnCallMediaEventParam_medIdx_set(swigCPtr, this, value);
40 | }
41 |
42 | public long getMedIdx() {
43 | return pjsua2JNI.OnCallMediaEventParam_medIdx_get(swigCPtr, this);
44 | }
45 |
46 | public void setEv(MediaEvent value) {
47 | pjsua2JNI.OnCallMediaEventParam_ev_set(swigCPtr, this, MediaEvent.getCPtr(value), value);
48 | }
49 |
50 | public MediaEvent getEv() {
51 | long cPtr = pjsua2JNI.OnCallMediaEventParam_ev_get(swigCPtr, this);
52 | return (cPtr == 0) ? null : new MediaEvent(cPtr, false);
53 | }
54 |
55 | public OnCallMediaEventParam() {
56 | this(pjsua2JNI.new_OnCallMediaEventParam(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnCallMediaStateParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnCallMediaStateParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnCallMediaStateParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnCallMediaStateParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnCallMediaStateParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public OnCallMediaStateParam() {
39 | this(pjsua2JNI.new_OnCallMediaStateParam(), true);
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnCallRedirectedParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnCallRedirectedParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnCallRedirectedParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnCallRedirectedParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnCallRedirectedParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setTargetUri(String value) {
39 | pjsua2JNI.OnCallRedirectedParam_targetUri_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getTargetUri() {
43 | return pjsua2JNI.OnCallRedirectedParam_targetUri_get(swigCPtr, this);
44 | }
45 |
46 | public void setE(SipEvent value) {
47 | pjsua2JNI.OnCallRedirectedParam_e_set(swigCPtr, this, SipEvent.getCPtr(value), value);
48 | }
49 |
50 | public SipEvent getE() {
51 | long cPtr = pjsua2JNI.OnCallRedirectedParam_e_get(swigCPtr, this);
52 | return (cPtr == 0) ? null : new SipEvent(cPtr, false);
53 | }
54 |
55 | public OnCallRedirectedParam() {
56 | this(pjsua2JNI.new_OnCallRedirectedParam(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnCallReplacedParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnCallReplacedParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnCallReplacedParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnCallReplacedParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnCallReplacedParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setNewCallId(int value) {
39 | pjsua2JNI.OnCallReplacedParam_newCallId_set(swigCPtr, this, value);
40 | }
41 |
42 | public int getNewCallId() {
43 | return pjsua2JNI.OnCallReplacedParam_newCallId_get(swigCPtr, this);
44 | }
45 |
46 | public OnCallReplacedParam() {
47 | this(pjsua2JNI.new_OnCallReplacedParam(), true);
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnCallRxOfferParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnCallRxOfferParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnCallRxOfferParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnCallRxOfferParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnCallRxOfferParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setOffer(SdpSession value) {
39 | pjsua2JNI.OnCallRxOfferParam_offer_set(swigCPtr, this, SdpSession.getCPtr(value), value);
40 | }
41 |
42 | public SdpSession getOffer() {
43 | long cPtr = pjsua2JNI.OnCallRxOfferParam_offer_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SdpSession(cPtr, false);
45 | }
46 |
47 | public void setStatusCode(pjsip_status_code value) {
48 | pjsua2JNI.OnCallRxOfferParam_statusCode_set(swigCPtr, this, value.swigValue());
49 | }
50 |
51 | public pjsip_status_code getStatusCode() {
52 | return pjsip_status_code.swigToEnum(pjsua2JNI.OnCallRxOfferParam_statusCode_get(swigCPtr, this));
53 | }
54 |
55 | public void setOpt(CallSetting value) {
56 | pjsua2JNI.OnCallRxOfferParam_opt_set(swigCPtr, this, CallSetting.getCPtr(value), value);
57 | }
58 |
59 | public CallSetting getOpt() {
60 | long cPtr = pjsua2JNI.OnCallRxOfferParam_opt_get(swigCPtr, this);
61 | return (cPtr == 0) ? null : new CallSetting(cPtr, false);
62 | }
63 |
64 | public OnCallRxOfferParam() {
65 | this(pjsua2JNI.new_OnCallRxOfferParam(), true);
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnCallSdpCreatedParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnCallSdpCreatedParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnCallSdpCreatedParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnCallSdpCreatedParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnCallSdpCreatedParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setSdp(SdpSession value) {
39 | pjsua2JNI.OnCallSdpCreatedParam_sdp_set(swigCPtr, this, SdpSession.getCPtr(value), value);
40 | }
41 |
42 | public SdpSession getSdp() {
43 | long cPtr = pjsua2JNI.OnCallSdpCreatedParam_sdp_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SdpSession(cPtr, false);
45 | }
46 |
47 | public void setRemSdp(SdpSession value) {
48 | pjsua2JNI.OnCallSdpCreatedParam_remSdp_set(swigCPtr, this, SdpSession.getCPtr(value), value);
49 | }
50 |
51 | public SdpSession getRemSdp() {
52 | long cPtr = pjsua2JNI.OnCallSdpCreatedParam_remSdp_get(swigCPtr, this);
53 | return (cPtr == 0) ? null : new SdpSession(cPtr, false);
54 | }
55 |
56 | public OnCallSdpCreatedParam() {
57 | this(pjsua2JNI.new_OnCallSdpCreatedParam(), true);
58 | }
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnCallStateParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnCallStateParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnCallStateParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnCallStateParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnCallStateParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setE(SipEvent value) {
39 | pjsua2JNI.OnCallStateParam_e_set(swigCPtr, this, SipEvent.getCPtr(value), value);
40 | }
41 |
42 | public SipEvent getE() {
43 | long cPtr = pjsua2JNI.OnCallStateParam_e_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SipEvent(cPtr, false);
45 | }
46 |
47 | public OnCallStateParam() {
48 | this(pjsua2JNI.new_OnCallStateParam(), true);
49 | }
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnCallTransferRequestParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnCallTransferRequestParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnCallTransferRequestParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnCallTransferRequestParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnCallTransferRequestParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setDstUri(String value) {
39 | pjsua2JNI.OnCallTransferRequestParam_dstUri_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getDstUri() {
43 | return pjsua2JNI.OnCallTransferRequestParam_dstUri_get(swigCPtr, this);
44 | }
45 |
46 | public void setStatusCode(pjsip_status_code value) {
47 | pjsua2JNI.OnCallTransferRequestParam_statusCode_set(swigCPtr, this, value.swigValue());
48 | }
49 |
50 | public pjsip_status_code getStatusCode() {
51 | return pjsip_status_code.swigToEnum(pjsua2JNI.OnCallTransferRequestParam_statusCode_get(swigCPtr, this));
52 | }
53 |
54 | public void setOpt(CallSetting value) {
55 | pjsua2JNI.OnCallTransferRequestParam_opt_set(swigCPtr, this, CallSetting.getCPtr(value), value);
56 | }
57 |
58 | public CallSetting getOpt() {
59 | long cPtr = pjsua2JNI.OnCallTransferRequestParam_opt_get(swigCPtr, this);
60 | return (cPtr == 0) ? null : new CallSetting(cPtr, false);
61 | }
62 |
63 | public OnCallTransferRequestParam() {
64 | this(pjsua2JNI.new_OnCallTransferRequestParam(), true);
65 | }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnCallTsxStateParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnCallTsxStateParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnCallTsxStateParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnCallTsxStateParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnCallTsxStateParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setE(SipEvent value) {
39 | pjsua2JNI.OnCallTsxStateParam_e_set(swigCPtr, this, SipEvent.getCPtr(value), value);
40 | }
41 |
42 | public SipEvent getE() {
43 | long cPtr = pjsua2JNI.OnCallTsxStateParam_e_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SipEvent(cPtr, false);
45 | }
46 |
47 | public OnCallTsxStateParam() {
48 | this(pjsua2JNI.new_OnCallTsxStateParam(), true);
49 | }
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnCreateMediaTransportParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnCreateMediaTransportParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnCreateMediaTransportParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnCreateMediaTransportParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnCreateMediaTransportParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setMediaIdx(long value) {
39 | pjsua2JNI.OnCreateMediaTransportParam_mediaIdx_set(swigCPtr, this, value);
40 | }
41 |
42 | public long getMediaIdx() {
43 | return pjsua2JNI.OnCreateMediaTransportParam_mediaIdx_get(swigCPtr, this);
44 | }
45 |
46 | public void setMediaTp(SWIGTYPE_p_void value) {
47 | pjsua2JNI.OnCreateMediaTransportParam_mediaTp_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
48 | }
49 |
50 | public SWIGTYPE_p_void getMediaTp() {
51 | long cPtr = pjsua2JNI.OnCreateMediaTransportParam_mediaTp_get(swigCPtr, this);
52 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
53 | }
54 |
55 | public void setFlags(long value) {
56 | pjsua2JNI.OnCreateMediaTransportParam_flags_set(swigCPtr, this, value);
57 | }
58 |
59 | public long getFlags() {
60 | return pjsua2JNI.OnCreateMediaTransportParam_flags_get(swigCPtr, this);
61 | }
62 |
63 | public OnCreateMediaTransportParam() {
64 | this(pjsua2JNI.new_OnCreateMediaTransportParam(), true);
65 | }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnDtmfDigitParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnDtmfDigitParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnDtmfDigitParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnDtmfDigitParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnDtmfDigitParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setDigit(String value) {
39 | pjsua2JNI.OnDtmfDigitParam_digit_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getDigit() {
43 | return pjsua2JNI.OnDtmfDigitParam_digit_get(swigCPtr, this);
44 | }
45 |
46 | public OnDtmfDigitParam() {
47 | this(pjsua2JNI.new_OnDtmfDigitParam(), true);
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnIncomingCallParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnIncomingCallParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnIncomingCallParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnIncomingCallParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnIncomingCallParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setCallId(int value) {
39 | pjsua2JNI.OnIncomingCallParam_callId_set(swigCPtr, this, value);
40 | }
41 |
42 | public int getCallId() {
43 | return pjsua2JNI.OnIncomingCallParam_callId_get(swigCPtr, this);
44 | }
45 |
46 | public void setRdata(SipRxData value) {
47 | pjsua2JNI.OnIncomingCallParam_rdata_set(swigCPtr, this, SipRxData.getCPtr(value), value);
48 | }
49 |
50 | public SipRxData getRdata() {
51 | long cPtr = pjsua2JNI.OnIncomingCallParam_rdata_get(swigCPtr, this);
52 | return (cPtr == 0) ? null : new SipRxData(cPtr, false);
53 | }
54 |
55 | public OnIncomingCallParam() {
56 | this(pjsua2JNI.new_OnIncomingCallParam(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnMwiInfoParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnMwiInfoParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnMwiInfoParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnMwiInfoParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnMwiInfoParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setState(pjsip_evsub_state value) {
39 | pjsua2JNI.OnMwiInfoParam_state_set(swigCPtr, this, value.swigValue());
40 | }
41 |
42 | public pjsip_evsub_state getState() {
43 | return pjsip_evsub_state.swigToEnum(pjsua2JNI.OnMwiInfoParam_state_get(swigCPtr, this));
44 | }
45 |
46 | public void setRdata(SipRxData value) {
47 | pjsua2JNI.OnMwiInfoParam_rdata_set(swigCPtr, this, SipRxData.getCPtr(value), value);
48 | }
49 |
50 | public SipRxData getRdata() {
51 | long cPtr = pjsua2JNI.OnMwiInfoParam_rdata_get(swigCPtr, this);
52 | return (cPtr == 0) ? null : new SipRxData(cPtr, false);
53 | }
54 |
55 | public OnMwiInfoParam() {
56 | this(pjsua2JNI.new_OnMwiInfoParam(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnRegStartedParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnRegStartedParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnRegStartedParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnRegStartedParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnRegStartedParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setRenew(boolean value) {
39 | pjsua2JNI.OnRegStartedParam_renew_set(swigCPtr, this, value);
40 | }
41 |
42 | public boolean getRenew() {
43 | return pjsua2JNI.OnRegStartedParam_renew_get(swigCPtr, this);
44 | }
45 |
46 | public OnRegStartedParam() {
47 | this(pjsua2JNI.new_OnRegStartedParam(), true);
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnSelectAccountParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnSelectAccountParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnSelectAccountParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnSelectAccountParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnSelectAccountParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setRdata(SipRxData value) {
39 | pjsua2JNI.OnSelectAccountParam_rdata_set(swigCPtr, this, SipRxData.getCPtr(value), value);
40 | }
41 |
42 | public SipRxData getRdata() {
43 | long cPtr = pjsua2JNI.OnSelectAccountParam_rdata_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SipRxData(cPtr, false);
45 | }
46 |
47 | public void setAccountIndex(int value) {
48 | pjsua2JNI.OnSelectAccountParam_accountIndex_set(swigCPtr, this, value);
49 | }
50 |
51 | public int getAccountIndex() {
52 | return pjsua2JNI.OnSelectAccountParam_accountIndex_get(swigCPtr, this);
53 | }
54 |
55 | public OnSelectAccountParam() {
56 | this(pjsua2JNI.new_OnSelectAccountParam(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnStreamCreatedParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnStreamCreatedParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnStreamCreatedParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnStreamCreatedParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnStreamCreatedParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setStream(SWIGTYPE_p_void value) {
39 | pjsua2JNI.OnStreamCreatedParam_stream_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
40 | }
41 |
42 | public SWIGTYPE_p_void getStream() {
43 | long cPtr = pjsua2JNI.OnStreamCreatedParam_stream_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
45 | }
46 |
47 | public void setStreamIdx(long value) {
48 | pjsua2JNI.OnStreamCreatedParam_streamIdx_set(swigCPtr, this, value);
49 | }
50 |
51 | public long getStreamIdx() {
52 | return pjsua2JNI.OnStreamCreatedParam_streamIdx_get(swigCPtr, this);
53 | }
54 |
55 | public void setPPort(SWIGTYPE_p_void value) {
56 | pjsua2JNI.OnStreamCreatedParam_pPort_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
57 | }
58 |
59 | public SWIGTYPE_p_void getPPort() {
60 | long cPtr = pjsua2JNI.OnStreamCreatedParam_pPort_get(swigCPtr, this);
61 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
62 | }
63 |
64 | public OnStreamCreatedParam() {
65 | this(pjsua2JNI.new_OnStreamCreatedParam(), true);
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnStreamDestroyedParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnStreamDestroyedParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnStreamDestroyedParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnStreamDestroyedParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnStreamDestroyedParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setStream(SWIGTYPE_p_void value) {
39 | pjsua2JNI.OnStreamDestroyedParam_stream_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
40 | }
41 |
42 | public SWIGTYPE_p_void getStream() {
43 | long cPtr = pjsua2JNI.OnStreamDestroyedParam_stream_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
45 | }
46 |
47 | public void setStreamIdx(long value) {
48 | pjsua2JNI.OnStreamDestroyedParam_streamIdx_set(swigCPtr, this, value);
49 | }
50 |
51 | public long getStreamIdx() {
52 | return pjsua2JNI.OnStreamDestroyedParam_streamIdx_get(swigCPtr, this);
53 | }
54 |
55 | public OnStreamDestroyedParam() {
56 | this(pjsua2JNI.new_OnStreamDestroyedParam(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnTimerParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnTimerParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnTimerParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnTimerParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnTimerParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setUserData(SWIGTYPE_p_void value) {
39 | pjsua2JNI.OnTimerParam_userData_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
40 | }
41 |
42 | public SWIGTYPE_p_void getUserData() {
43 | long cPtr = pjsua2JNI.OnTimerParam_userData_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
45 | }
46 |
47 | public void setMsecDelay(long value) {
48 | pjsua2JNI.OnTimerParam_msecDelay_set(swigCPtr, this, value);
49 | }
50 |
51 | public long getMsecDelay() {
52 | return pjsua2JNI.OnTimerParam_msecDelay_get(swigCPtr, this);
53 | }
54 |
55 | public OnTimerParam() {
56 | this(pjsua2JNI.new_OnTimerParam(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/OnTransportStateParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class OnTransportStateParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected OnTransportStateParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(OnTransportStateParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_OnTransportStateParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setHnd(SWIGTYPE_p_void value) {
39 | pjsua2JNI.OnTransportStateParam_hnd_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
40 | }
41 |
42 | public SWIGTYPE_p_void getHnd() {
43 | long cPtr = pjsua2JNI.OnTransportStateParam_hnd_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
45 | }
46 |
47 | public void setState(pjsip_transport_state value) {
48 | pjsua2JNI.OnTransportStateParam_state_set(swigCPtr, this, value.swigValue());
49 | }
50 |
51 | public pjsip_transport_state getState() {
52 | return pjsip_transport_state.swigToEnum(pjsua2JNI.OnTransportStateParam_state_get(swigCPtr, this));
53 | }
54 |
55 | public void setLastError(int value) {
56 | pjsua2JNI.OnTransportStateParam_lastError_set(swigCPtr, this, value);
57 | }
58 |
59 | public int getLastError() {
60 | return pjsua2JNI.OnTransportStateParam_lastError_get(swigCPtr, this);
61 | }
62 |
63 | public OnTransportStateParam() {
64 | this(pjsua2JNI.new_OnTransportStateParam(), true);
65 | }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/PendingJob.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class PendingJob {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected PendingJob(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(PendingJob obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_PendingJob(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void execute(boolean is_pending) {
39 | pjsua2JNI.PendingJob_execute(swigCPtr, this, is_pending);
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/PersistentObject.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class PersistentObject {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected PersistentObject(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(PersistentObject obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_PersistentObject(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void readObject(ContainerNode node) throws java.lang.Exception {
39 | pjsua2JNI.PersistentObject_readObject(swigCPtr, this, ContainerNode.getCPtr(node), node);
40 | }
41 |
42 | public void writeObject(ContainerNode node) throws java.lang.Exception {
43 | pjsua2JNI.PersistentObject_writeObject(swigCPtr, this, ContainerNode.getCPtr(node), node);
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/RxMsgEvent.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class RxMsgEvent {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected RxMsgEvent(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(RxMsgEvent obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_RxMsgEvent(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setRdata(SipRxData value) {
39 | pjsua2JNI.RxMsgEvent_rdata_set(swigCPtr, this, SipRxData.getCPtr(value), value);
40 | }
41 |
42 | public SipRxData getRdata() {
43 | long cPtr = pjsua2JNI.RxMsgEvent_rdata_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SipRxData(cPtr, false);
45 | }
46 |
47 | public RxMsgEvent() {
48 | this(pjsua2JNI.new_RxMsgEvent(), true);
49 | }
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SWIGTYPE_p_p_void.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SWIGTYPE_p_p_void {
12 | private long swigCPtr;
13 |
14 | protected SWIGTYPE_p_p_void(long cPtr, boolean futureUse) {
15 | swigCPtr = cPtr;
16 | }
17 |
18 | protected SWIGTYPE_p_p_void() {
19 | swigCPtr = 0;
20 | }
21 |
22 | protected static long getCPtr(SWIGTYPE_p_p_void obj) {
23 | return (obj == null) ? 0 : obj.swigCPtr;
24 | }
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SWIGTYPE_p_pj_bool_t.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SWIGTYPE_p_pj_bool_t {
12 | private long swigCPtr;
13 |
14 | protected SWIGTYPE_p_pj_bool_t(long cPtr, boolean futureUse) {
15 | swigCPtr = cPtr;
16 | }
17 |
18 | protected SWIGTYPE_p_pj_bool_t() {
19 | swigCPtr = 0;
20 | }
21 |
22 | protected static long getCPtr(SWIGTYPE_p_pj_bool_t obj) {
23 | return (obj == null) ? 0 : obj.swigCPtr;
24 | }
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SWIGTYPE_p_pj_ssize_t.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SWIGTYPE_p_pj_ssize_t {
12 | private long swigCPtr;
13 |
14 | protected SWIGTYPE_p_pj_ssize_t(long cPtr, boolean futureUse) {
15 | swigCPtr = cPtr;
16 | }
17 |
18 | protected SWIGTYPE_p_pj_ssize_t() {
19 | swigCPtr = 0;
20 | }
21 |
22 | protected static long getCPtr(SWIGTYPE_p_pj_ssize_t obj) {
23 | return (obj == null) ? 0 : obj.swigCPtr;
24 | }
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SWIGTYPE_p_void.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SWIGTYPE_p_void {
12 | private long swigCPtr;
13 |
14 | protected SWIGTYPE_p_void(long cPtr, boolean futureUse) {
15 | swigCPtr = cPtr;
16 | }
17 |
18 | protected SWIGTYPE_p_void() {
19 | swigCPtr = 0;
20 | }
21 |
22 | protected static long getCPtr(SWIGTYPE_p_void obj) {
23 | return (obj == null) ? 0 : obj.swigCPtr;
24 | }
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SdpSession.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SdpSession {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected SdpSession(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(SdpSession obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_SdpSession(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setWholeSdp(String value) {
39 | pjsua2JNI.SdpSession_wholeSdp_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getWholeSdp() {
43 | return pjsua2JNI.SdpSession_wholeSdp_get(swigCPtr, this);
44 | }
45 |
46 | public void setPjSdpSession(SWIGTYPE_p_void value) {
47 | pjsua2JNI.SdpSession_pjSdpSession_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
48 | }
49 |
50 | public SWIGTYPE_p_void getPjSdpSession() {
51 | long cPtr = pjsua2JNI.SdpSession_pjSdpSession_get(swigCPtr, this);
52 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
53 | }
54 |
55 | public SdpSession() {
56 | this(pjsua2JNI.new_SdpSession(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SendTypingIndicationParam.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SendTypingIndicationParam {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected SendTypingIndicationParam(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(SendTypingIndicationParam obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_SendTypingIndicationParam(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setIsTyping(boolean value) {
39 | pjsua2JNI.SendTypingIndicationParam_isTyping_set(swigCPtr, this, value);
40 | }
41 |
42 | public boolean getIsTyping() {
43 | return pjsua2JNI.SendTypingIndicationParam_isTyping_get(swigCPtr, this);
44 | }
45 |
46 | public void setTxOption(SipTxOption value) {
47 | pjsua2JNI.SendTypingIndicationParam_txOption_set(swigCPtr, this, SipTxOption.getCPtr(value), value);
48 | }
49 |
50 | public SipTxOption getTxOption() {
51 | long cPtr = pjsua2JNI.SendTypingIndicationParam_txOption_get(swigCPtr, this);
52 | return (cPtr == 0) ? null : new SipTxOption(cPtr, false);
53 | }
54 |
55 | public SendTypingIndicationParam() {
56 | this(pjsua2JNI.new_SendTypingIndicationParam(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SipEvent.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SipEvent {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected SipEvent(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(SipEvent obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_SipEvent(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setType(pjsip_event_id_e value) {
39 | pjsua2JNI.SipEvent_type_set(swigCPtr, this, value.swigValue());
40 | }
41 |
42 | public pjsip_event_id_e getType() {
43 | return pjsip_event_id_e.swigToEnum(pjsua2JNI.SipEvent_type_get(swigCPtr, this));
44 | }
45 |
46 | public void setPjEvent(SWIGTYPE_p_void value) {
47 | pjsua2JNI.SipEvent_pjEvent_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
48 | }
49 |
50 | public SWIGTYPE_p_void getPjEvent() {
51 | long cPtr = pjsua2JNI.SipEvent_pjEvent_get(swigCPtr, this);
52 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
53 | }
54 |
55 | public SipEvent() {
56 | this(pjsua2JNI.new_SipEvent(), true);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SipHeader.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SipHeader {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected SipHeader(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(SipHeader obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_SipHeader(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setHName(String value) {
39 | pjsua2JNI.SipHeader_hName_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getHName() {
43 | return pjsua2JNI.SipHeader_hName_get(swigCPtr, this);
44 | }
45 |
46 | public void setHValue(String value) {
47 | pjsua2JNI.SipHeader_hValue_set(swigCPtr, this, value);
48 | }
49 |
50 | public String getHValue() {
51 | return pjsua2JNI.SipHeader_hValue_get(swigCPtr, this);
52 | }
53 |
54 | public SipHeader() {
55 | this(pjsua2JNI.new_SipHeader(), true);
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SipHeaderVector.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SipHeaderVector {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected SipHeaderVector(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(SipHeaderVector obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_SipHeaderVector(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public SipHeaderVector() {
39 | this(pjsua2JNI.new_SipHeaderVector__SWIG_0(), true);
40 | }
41 |
42 | public SipHeaderVector(long n) {
43 | this(pjsua2JNI.new_SipHeaderVector__SWIG_1(n), true);
44 | }
45 |
46 | public long size() {
47 | return pjsua2JNI.SipHeaderVector_size(swigCPtr, this);
48 | }
49 |
50 | public long capacity() {
51 | return pjsua2JNI.SipHeaderVector_capacity(swigCPtr, this);
52 | }
53 |
54 | public void reserve(long n) {
55 | pjsua2JNI.SipHeaderVector_reserve(swigCPtr, this, n);
56 | }
57 |
58 | public boolean isEmpty() {
59 | return pjsua2JNI.SipHeaderVector_isEmpty(swigCPtr, this);
60 | }
61 |
62 | public void clear() {
63 | pjsua2JNI.SipHeaderVector_clear(swigCPtr, this);
64 | }
65 |
66 | public void add(SipHeader x) {
67 | pjsua2JNI.SipHeaderVector_add(swigCPtr, this, SipHeader.getCPtr(x), x);
68 | }
69 |
70 | public SipHeader get(int i) {
71 | return new SipHeader(pjsua2JNI.SipHeaderVector_get(swigCPtr, this, i), false);
72 | }
73 |
74 | public void set(int i, SipHeader val) {
75 | pjsua2JNI.SipHeaderVector_set(swigCPtr, this, i, SipHeader.getCPtr(val), val);
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SipMediaType.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SipMediaType {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected SipMediaType(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(SipMediaType obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_SipMediaType(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setType(String value) {
39 | pjsua2JNI.SipMediaType_type_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getType() {
43 | return pjsua2JNI.SipMediaType_type_get(swigCPtr, this);
44 | }
45 |
46 | public void setSubType(String value) {
47 | pjsua2JNI.SipMediaType_subType_set(swigCPtr, this, value);
48 | }
49 |
50 | public String getSubType() {
51 | return pjsua2JNI.SipMediaType_subType_get(swigCPtr, this);
52 | }
53 |
54 | public SipMediaType() {
55 | this(pjsua2JNI.new_SipMediaType(), true);
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SipMultipartPart.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SipMultipartPart {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected SipMultipartPart(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(SipMultipartPart obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_SipMultipartPart(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setHeaders(SipHeaderVector value) {
39 | pjsua2JNI.SipMultipartPart_headers_set(swigCPtr, this, SipHeaderVector.getCPtr(value), value);
40 | }
41 |
42 | public SipHeaderVector getHeaders() {
43 | long cPtr = pjsua2JNI.SipMultipartPart_headers_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SipHeaderVector(cPtr, false);
45 | }
46 |
47 | public void setContentType(SipMediaType value) {
48 | pjsua2JNI.SipMultipartPart_contentType_set(swigCPtr, this, SipMediaType.getCPtr(value), value);
49 | }
50 |
51 | public SipMediaType getContentType() {
52 | long cPtr = pjsua2JNI.SipMultipartPart_contentType_get(swigCPtr, this);
53 | return (cPtr == 0) ? null : new SipMediaType(cPtr, false);
54 | }
55 |
56 | public void setBody(String value) {
57 | pjsua2JNI.SipMultipartPart_body_set(swigCPtr, this, value);
58 | }
59 |
60 | public String getBody() {
61 | return pjsua2JNI.SipMultipartPart_body_get(swigCPtr, this);
62 | }
63 |
64 | public SipMultipartPart() {
65 | this(pjsua2JNI.new_SipMultipartPart(), true);
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SipRxData.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SipRxData {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected SipRxData(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(SipRxData obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_SipRxData(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setInfo(String value) {
39 | pjsua2JNI.SipRxData_info_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getInfo() {
43 | return pjsua2JNI.SipRxData_info_get(swigCPtr, this);
44 | }
45 |
46 | public void setWholeMsg(String value) {
47 | pjsua2JNI.SipRxData_wholeMsg_set(swigCPtr, this, value);
48 | }
49 |
50 | public String getWholeMsg() {
51 | return pjsua2JNI.SipRxData_wholeMsg_get(swigCPtr, this);
52 | }
53 |
54 | public void setSrcAddress(String value) {
55 | pjsua2JNI.SipRxData_srcAddress_set(swigCPtr, this, value);
56 | }
57 |
58 | public String getSrcAddress() {
59 | return pjsua2JNI.SipRxData_srcAddress_get(swigCPtr, this);
60 | }
61 |
62 | public void setPjRxData(SWIGTYPE_p_void value) {
63 | pjsua2JNI.SipRxData_pjRxData_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
64 | }
65 |
66 | public SWIGTYPE_p_void getPjRxData() {
67 | long cPtr = pjsua2JNI.SipRxData_pjRxData_get(swigCPtr, this);
68 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
69 | }
70 |
71 | public SipRxData() {
72 | this(pjsua2JNI.new_SipRxData(), true);
73 | }
74 |
75 | }
76 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/SipTxData.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class SipTxData {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected SipTxData(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(SipTxData obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_SipTxData(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setInfo(String value) {
39 | pjsua2JNI.SipTxData_info_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getInfo() {
43 | return pjsua2JNI.SipTxData_info_get(swigCPtr, this);
44 | }
45 |
46 | public void setWholeMsg(String value) {
47 | pjsua2JNI.SipTxData_wholeMsg_set(swigCPtr, this, value);
48 | }
49 |
50 | public String getWholeMsg() {
51 | return pjsua2JNI.SipTxData_wholeMsg_get(swigCPtr, this);
52 | }
53 |
54 | public void setDstAddress(String value) {
55 | pjsua2JNI.SipTxData_dstAddress_set(swigCPtr, this, value);
56 | }
57 |
58 | public String getDstAddress() {
59 | return pjsua2JNI.SipTxData_dstAddress_get(swigCPtr, this);
60 | }
61 |
62 | public void setPjTxData(SWIGTYPE_p_void value) {
63 | pjsua2JNI.SipTxData_pjTxData_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
64 | }
65 |
66 | public SWIGTYPE_p_void getPjTxData() {
67 | long cPtr = pjsua2JNI.SipTxData_pjTxData_get(swigCPtr, this);
68 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
69 | }
70 |
71 | public SipTxData() {
72 | this(pjsua2JNI.new_SipTxData(), true);
73 | }
74 |
75 | }
76 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/StreamStat.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class StreamStat {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected StreamStat(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(StreamStat obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_StreamStat(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setRtcp(RtcpStat value) {
39 | pjsua2JNI.StreamStat_rtcp_set(swigCPtr, this, RtcpStat.getCPtr(value), value);
40 | }
41 |
42 | public RtcpStat getRtcp() {
43 | long cPtr = pjsua2JNI.StreamStat_rtcp_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new RtcpStat(cPtr, false);
45 | }
46 |
47 | public void setJbuf(JbufState value) {
48 | pjsua2JNI.StreamStat_jbuf_set(swigCPtr, this, JbufState.getCPtr(value), value);
49 | }
50 |
51 | public JbufState getJbuf() {
52 | long cPtr = pjsua2JNI.StreamStat_jbuf_get(swigCPtr, this);
53 | return (cPtr == 0) ? null : new JbufState(cPtr, false);
54 | }
55 |
56 | public StreamStat() {
57 | this(pjsua2JNI.new_StreamStat(), true);
58 | }
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/StringVector.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class StringVector {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected StringVector(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(StringVector obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_StringVector(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public StringVector() {
39 | this(pjsua2JNI.new_StringVector__SWIG_0(), true);
40 | }
41 |
42 | public StringVector(long n) {
43 | this(pjsua2JNI.new_StringVector__SWIG_1(n), true);
44 | }
45 |
46 | public long size() {
47 | return pjsua2JNI.StringVector_size(swigCPtr, this);
48 | }
49 |
50 | public long capacity() {
51 | return pjsua2JNI.StringVector_capacity(swigCPtr, this);
52 | }
53 |
54 | public void reserve(long n) {
55 | pjsua2JNI.StringVector_reserve(swigCPtr, this, n);
56 | }
57 |
58 | public boolean isEmpty() {
59 | return pjsua2JNI.StringVector_isEmpty(swigCPtr, this);
60 | }
61 |
62 | public void clear() {
63 | pjsua2JNI.StringVector_clear(swigCPtr, this);
64 | }
65 |
66 | public void add(String x) {
67 | pjsua2JNI.StringVector_add(swigCPtr, this, x);
68 | }
69 |
70 | public String get(int i) {
71 | return pjsua2JNI.StringVector_get(swigCPtr, this, i);
72 | }
73 |
74 | public void set(int i, String val) {
75 | pjsua2JNI.StringVector_set(swigCPtr, this, i, val);
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/TimeVal.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class TimeVal {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected TimeVal(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(TimeVal obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_TimeVal(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setSec(int value) {
39 | pjsua2JNI.TimeVal_sec_set(swigCPtr, this, value);
40 | }
41 |
42 | public int getSec() {
43 | return pjsua2JNI.TimeVal_sec_get(swigCPtr, this);
44 | }
45 |
46 | public void setMsec(int value) {
47 | pjsua2JNI.TimeVal_msec_set(swigCPtr, this, value);
48 | }
49 |
50 | public int getMsec() {
51 | return pjsua2JNI.TimeVal_msec_get(swigCPtr, this);
52 | }
53 |
54 | public TimeVal() {
55 | this(pjsua2JNI.new_TimeVal(), true);
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/TimerEvent.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class TimerEvent {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected TimerEvent(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(TimerEvent obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_TimerEvent(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setEntry(SWIGTYPE_p_void value) {
39 | pjsua2JNI.TimerEvent_entry_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
40 | }
41 |
42 | public SWIGTYPE_p_void getEntry() {
43 | long cPtr = pjsua2JNI.TimerEvent_entry_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
45 | }
46 |
47 | public TimerEvent() {
48 | this(pjsua2JNI.new_TimerEvent(), true);
49 | }
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/ToneDesc.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class ToneDesc extends pjmedia_tone_desc {
12 | private long swigCPtr;
13 |
14 | protected ToneDesc(long cPtr, boolean cMemoryOwn) {
15 | super(pjsua2JNI.ToneDesc_SWIGUpcast(cPtr), cMemoryOwn);
16 | swigCPtr = cPtr;
17 | }
18 |
19 | protected static long getCPtr(ToneDesc obj) {
20 | return (obj == null) ? 0 : obj.swigCPtr;
21 | }
22 |
23 | protected void finalize() {
24 | delete();
25 | }
26 |
27 | public synchronized void delete() {
28 | if (swigCPtr != 0) {
29 | if (swigCMemOwn) {
30 | swigCMemOwn = false;
31 | pjsua2JNI.delete_ToneDesc(swigCPtr);
32 | }
33 | swigCPtr = 0;
34 | }
35 | super.delete();
36 | }
37 |
38 | public ToneDesc() {
39 | this(pjsua2JNI.new_ToneDesc(), true);
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/ToneDescVector.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class ToneDescVector {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected ToneDescVector(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(ToneDescVector obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_ToneDescVector(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public ToneDescVector() {
39 | this(pjsua2JNI.new_ToneDescVector__SWIG_0(), true);
40 | }
41 |
42 | public ToneDescVector(long n) {
43 | this(pjsua2JNI.new_ToneDescVector__SWIG_1(n), true);
44 | }
45 |
46 | public long size() {
47 | return pjsua2JNI.ToneDescVector_size(swigCPtr, this);
48 | }
49 |
50 | public long capacity() {
51 | return pjsua2JNI.ToneDescVector_capacity(swigCPtr, this);
52 | }
53 |
54 | public void reserve(long n) {
55 | pjsua2JNI.ToneDescVector_reserve(swigCPtr, this, n);
56 | }
57 |
58 | public boolean isEmpty() {
59 | return pjsua2JNI.ToneDescVector_isEmpty(swigCPtr, this);
60 | }
61 |
62 | public void clear() {
63 | pjsua2JNI.ToneDescVector_clear(swigCPtr, this);
64 | }
65 |
66 | public void add(ToneDesc x) {
67 | pjsua2JNI.ToneDescVector_add(swigCPtr, this, ToneDesc.getCPtr(x), x);
68 | }
69 |
70 | public ToneDesc get(int i) {
71 | return new ToneDesc(pjsua2JNI.ToneDescVector_get(swigCPtr, this, i), false);
72 | }
73 |
74 | public void set(int i, ToneDesc val) {
75 | pjsua2JNI.ToneDescVector_set(swigCPtr, this, i, ToneDesc.getCPtr(val), val);
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/ToneDigit.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class ToneDigit extends pjmedia_tone_digit {
12 | private long swigCPtr;
13 |
14 | protected ToneDigit(long cPtr, boolean cMemoryOwn) {
15 | super(pjsua2JNI.ToneDigit_SWIGUpcast(cPtr), cMemoryOwn);
16 | swigCPtr = cPtr;
17 | }
18 |
19 | protected static long getCPtr(ToneDigit obj) {
20 | return (obj == null) ? 0 : obj.swigCPtr;
21 | }
22 |
23 | protected void finalize() {
24 | delete();
25 | }
26 |
27 | public synchronized void delete() {
28 | if (swigCPtr != 0) {
29 | if (swigCMemOwn) {
30 | swigCMemOwn = false;
31 | pjsua2JNI.delete_ToneDigit(swigCPtr);
32 | }
33 | swigCPtr = 0;
34 | }
35 | super.delete();
36 | }
37 |
38 | public ToneDigit() {
39 | this(pjsua2JNI.new_ToneDigit(), true);
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/ToneDigitMapDigit.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class ToneDigitMapDigit {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected ToneDigitMapDigit(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(ToneDigitMapDigit obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_ToneDigitMapDigit(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setDigit(String value) {
39 | pjsua2JNI.ToneDigitMapDigit_digit_set(swigCPtr, this, value);
40 | }
41 |
42 | public String getDigit() {
43 | return pjsua2JNI.ToneDigitMapDigit_digit_get(swigCPtr, this);
44 | }
45 |
46 | public void setFreq1(int value) {
47 | pjsua2JNI.ToneDigitMapDigit_freq1_set(swigCPtr, this, value);
48 | }
49 |
50 | public int getFreq1() {
51 | return pjsua2JNI.ToneDigitMapDigit_freq1_get(swigCPtr, this);
52 | }
53 |
54 | public void setFreq2(int value) {
55 | pjsua2JNI.ToneDigitMapDigit_freq2_set(swigCPtr, this, value);
56 | }
57 |
58 | public int getFreq2() {
59 | return pjsua2JNI.ToneDigitMapDigit_freq2_get(swigCPtr, this);
60 | }
61 |
62 | public ToneDigitMapDigit() {
63 | this(pjsua2JNI.new_ToneDigitMapDigit(), true);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/ToneDigitVector.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class ToneDigitVector {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected ToneDigitVector(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(ToneDigitVector obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_ToneDigitVector(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public ToneDigitVector() {
39 | this(pjsua2JNI.new_ToneDigitVector__SWIG_0(), true);
40 | }
41 |
42 | public ToneDigitVector(long n) {
43 | this(pjsua2JNI.new_ToneDigitVector__SWIG_1(n), true);
44 | }
45 |
46 | public long size() {
47 | return pjsua2JNI.ToneDigitVector_size(swigCPtr, this);
48 | }
49 |
50 | public long capacity() {
51 | return pjsua2JNI.ToneDigitVector_capacity(swigCPtr, this);
52 | }
53 |
54 | public void reserve(long n) {
55 | pjsua2JNI.ToneDigitVector_reserve(swigCPtr, this, n);
56 | }
57 |
58 | public boolean isEmpty() {
59 | return pjsua2JNI.ToneDigitVector_isEmpty(swigCPtr, this);
60 | }
61 |
62 | public void clear() {
63 | pjsua2JNI.ToneDigitVector_clear(swigCPtr, this);
64 | }
65 |
66 | public void add(ToneDigit x) {
67 | pjsua2JNI.ToneDigitVector_add(swigCPtr, this, ToneDigit.getCPtr(x), x);
68 | }
69 |
70 | public ToneDigit get(int i) {
71 | return new ToneDigit(pjsua2JNI.ToneDigitVector_get(swigCPtr, this, i), false);
72 | }
73 |
74 | public void set(int i, ToneDigit val) {
75 | pjsua2JNI.ToneDigitVector_set(swigCPtr, this, i, ToneDigit.getCPtr(val), val);
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/TsxStateEvent.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class TsxStateEvent {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected TsxStateEvent(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(TsxStateEvent obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_TsxStateEvent(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setTsx(SipTransaction value) {
39 | pjsua2JNI.TsxStateEvent_tsx_set(swigCPtr, this, SipTransaction.getCPtr(value), value);
40 | }
41 |
42 | public SipTransaction getTsx() {
43 | long cPtr = pjsua2JNI.TsxStateEvent_tsx_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SipTransaction(cPtr, false);
45 | }
46 |
47 | public void setPrevState(pjsip_tsx_state_e value) {
48 | pjsua2JNI.TsxStateEvent_prevState_set(swigCPtr, this, value.swigValue());
49 | }
50 |
51 | public pjsip_tsx_state_e getPrevState() {
52 | return pjsip_tsx_state_e.swigToEnum(pjsua2JNI.TsxStateEvent_prevState_get(swigCPtr, this));
53 | }
54 |
55 | public void setType(pjsip_event_id_e value) {
56 | pjsua2JNI.TsxStateEvent_type_set(swigCPtr, this, value.swigValue());
57 | }
58 |
59 | public pjsip_event_id_e getType() {
60 | return pjsip_event_id_e.swigToEnum(pjsua2JNI.TsxStateEvent_type_get(swigCPtr, this));
61 | }
62 |
63 | public TsxStateEvent() {
64 | this(pjsua2JNI.new_TsxStateEvent(), true);
65 | }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/TxErrorEvent.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class TxErrorEvent {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected TxErrorEvent(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(TxErrorEvent obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_TxErrorEvent(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setTdata(SipTxData value) {
39 | pjsua2JNI.TxErrorEvent_tdata_set(swigCPtr, this, SipTxData.getCPtr(value), value);
40 | }
41 |
42 | public SipTxData getTdata() {
43 | long cPtr = pjsua2JNI.TxErrorEvent_tdata_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SipTxData(cPtr, false);
45 | }
46 |
47 | public void setTsx(SipTransaction value) {
48 | pjsua2JNI.TxErrorEvent_tsx_set(swigCPtr, this, SipTransaction.getCPtr(value), value);
49 | }
50 |
51 | public SipTransaction getTsx() {
52 | long cPtr = pjsua2JNI.TxErrorEvent_tsx_get(swigCPtr, this);
53 | return (cPtr == 0) ? null : new SipTransaction(cPtr, false);
54 | }
55 |
56 | public TxErrorEvent() {
57 | this(pjsua2JNI.new_TxErrorEvent(), true);
58 | }
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/TxMsgEvent.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class TxMsgEvent {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected TxMsgEvent(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(TxMsgEvent obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_TxMsgEvent(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setTdata(SipTxData value) {
39 | pjsua2JNI.TxMsgEvent_tdata_set(swigCPtr, this, SipTxData.getCPtr(value), value);
40 | }
41 |
42 | public SipTxData getTdata() {
43 | long cPtr = pjsua2JNI.TxMsgEvent_tdata_get(swigCPtr, this);
44 | return (cPtr == 0) ? null : new SipTxData(cPtr, false);
45 | }
46 |
47 | public TxMsgEvent() {
48 | this(pjsua2JNI.new_TxMsgEvent(), true);
49 | }
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pj_constants_.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pj_constants_ {
12 | public final static pj_constants_ PJ_SUCCESS = new pj_constants_("PJ_SUCCESS", pjsua2JNI.PJ_SUCCESS_get());
13 | public final static pj_constants_ PJ_TRUE = new pj_constants_("PJ_TRUE", pjsua2JNI.PJ_TRUE_get());
14 | public final static pj_constants_ PJ_FALSE = new pj_constants_("PJ_FALSE", pjsua2JNI.PJ_FALSE_get());
15 |
16 | public final int swigValue() {
17 | return swigValue;
18 | }
19 |
20 | public String toString() {
21 | return swigName;
22 | }
23 |
24 | public static pj_constants_ swigToEnum(int swigValue) {
25 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
26 | return swigValues[swigValue];
27 | for (int i = 0; i < swigValues.length; i++)
28 | if (swigValues[i].swigValue == swigValue)
29 | return swigValues[i];
30 | throw new IllegalArgumentException("No enum " + pj_constants_.class + " with value " + swigValue);
31 | }
32 |
33 | private pj_constants_(String swigName) {
34 | this.swigName = swigName;
35 | this.swigValue = swigNext++;
36 | }
37 |
38 | private pj_constants_(String swigName, int swigValue) {
39 | this.swigName = swigName;
40 | this.swigValue = swigValue;
41 | swigNext = swigValue+1;
42 | }
43 |
44 | private pj_constants_(String swigName, pj_constants_ swigEnum) {
45 | this.swigName = swigName;
46 | this.swigValue = swigEnum.swigValue;
47 | swigNext = this.swigValue+1;
48 | }
49 |
50 | private static pj_constants_[] swigValues = { PJ_SUCCESS, PJ_TRUE, PJ_FALSE };
51 | private static int swigNext = 0;
52 | private final int swigValue;
53 | private final String swigName;
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pj_file_access.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pj_file_access {
12 | public final static pj_file_access PJ_O_RDONLY = new pj_file_access("PJ_O_RDONLY", pjsua2JNI.PJ_O_RDONLY_get());
13 | public final static pj_file_access PJ_O_WRONLY = new pj_file_access("PJ_O_WRONLY", pjsua2JNI.PJ_O_WRONLY_get());
14 | public final static pj_file_access PJ_O_RDWR = new pj_file_access("PJ_O_RDWR", pjsua2JNI.PJ_O_RDWR_get());
15 | public final static pj_file_access PJ_O_APPEND = new pj_file_access("PJ_O_APPEND", pjsua2JNI.PJ_O_APPEND_get());
16 |
17 | public final int swigValue() {
18 | return swigValue;
19 | }
20 |
21 | public String toString() {
22 | return swigName;
23 | }
24 |
25 | public static pj_file_access swigToEnum(int swigValue) {
26 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
27 | return swigValues[swigValue];
28 | for (int i = 0; i < swigValues.length; i++)
29 | if (swigValues[i].swigValue == swigValue)
30 | return swigValues[i];
31 | throw new IllegalArgumentException("No enum " + pj_file_access.class + " with value " + swigValue);
32 | }
33 |
34 | private pj_file_access(String swigName) {
35 | this.swigName = swigName;
36 | this.swigValue = swigNext++;
37 | }
38 |
39 | private pj_file_access(String swigName, int swigValue) {
40 | this.swigName = swigName;
41 | this.swigValue = swigValue;
42 | swigNext = swigValue+1;
43 | }
44 |
45 | private pj_file_access(String swigName, pj_file_access swigEnum) {
46 | this.swigName = swigName;
47 | this.swigValue = swigEnum.swigValue;
48 | swigNext = this.swigValue+1;
49 | }
50 |
51 | private static pj_file_access[] swigValues = { PJ_O_RDONLY, PJ_O_WRONLY, PJ_O_RDWR, PJ_O_APPEND };
52 | private static int swigNext = 0;
53 | private final int swigValue;
54 | private final String swigName;
55 | }
56 |
57 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pj_qos_flag.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pj_qos_flag {
12 | public final static pj_qos_flag PJ_QOS_PARAM_HAS_DSCP = new pj_qos_flag("PJ_QOS_PARAM_HAS_DSCP", pjsua2JNI.PJ_QOS_PARAM_HAS_DSCP_get());
13 | public final static pj_qos_flag PJ_QOS_PARAM_HAS_SO_PRIO = new pj_qos_flag("PJ_QOS_PARAM_HAS_SO_PRIO", pjsua2JNI.PJ_QOS_PARAM_HAS_SO_PRIO_get());
14 | public final static pj_qos_flag PJ_QOS_PARAM_HAS_WMM = new pj_qos_flag("PJ_QOS_PARAM_HAS_WMM", pjsua2JNI.PJ_QOS_PARAM_HAS_WMM_get());
15 |
16 | public final int swigValue() {
17 | return swigValue;
18 | }
19 |
20 | public String toString() {
21 | return swigName;
22 | }
23 |
24 | public static pj_qos_flag swigToEnum(int swigValue) {
25 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
26 | return swigValues[swigValue];
27 | for (int i = 0; i < swigValues.length; i++)
28 | if (swigValues[i].swigValue == swigValue)
29 | return swigValues[i];
30 | throw new IllegalArgumentException("No enum " + pj_qos_flag.class + " with value " + swigValue);
31 | }
32 |
33 | private pj_qos_flag(String swigName) {
34 | this.swigName = swigName;
35 | this.swigValue = swigNext++;
36 | }
37 |
38 | private pj_qos_flag(String swigName, int swigValue) {
39 | this.swigName = swigName;
40 | this.swigValue = swigValue;
41 | swigNext = swigValue+1;
42 | }
43 |
44 | private pj_qos_flag(String swigName, pj_qos_flag swigEnum) {
45 | this.swigName = swigName;
46 | this.swigValue = swigEnum.swigValue;
47 | swigNext = this.swigValue+1;
48 | }
49 |
50 | private static pj_qos_flag[] swigValues = { PJ_QOS_PARAM_HAS_DSCP, PJ_QOS_PARAM_HAS_SO_PRIO, PJ_QOS_PARAM_HAS_WMM };
51 | private static int swigNext = 0;
52 | private final int swigValue;
53 | private final String swigName;
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pj_qos_params.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class pj_qos_params {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected pj_qos_params(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(pj_qos_params obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_pj_qos_params(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setFlags(short value) {
39 | pjsua2JNI.pj_qos_params_flags_set(swigCPtr, this, value);
40 | }
41 |
42 | public short getFlags() {
43 | return pjsua2JNI.pj_qos_params_flags_get(swigCPtr, this);
44 | }
45 |
46 | public void setDscp_val(short value) {
47 | pjsua2JNI.pj_qos_params_dscp_val_set(swigCPtr, this, value);
48 | }
49 |
50 | public short getDscp_val() {
51 | return pjsua2JNI.pj_qos_params_dscp_val_get(swigCPtr, this);
52 | }
53 |
54 | public void setSo_prio(short value) {
55 | pjsua2JNI.pj_qos_params_so_prio_set(swigCPtr, this, value);
56 | }
57 |
58 | public short getSo_prio() {
59 | return pjsua2JNI.pj_qos_params_so_prio_get(swigCPtr, this);
60 | }
61 |
62 | public void setWmm_prio(pj_qos_wmm_prio value) {
63 | pjsua2JNI.pj_qos_params_wmm_prio_set(swigCPtr, this, value.swigValue());
64 | }
65 |
66 | public pj_qos_wmm_prio getWmm_prio() {
67 | return pj_qos_wmm_prio.swigToEnum(pjsua2JNI.pj_qos_params_wmm_prio_get(swigCPtr, this));
68 | }
69 |
70 | public pj_qos_params() {
71 | this(pjsua2JNI.new_pj_qos_params(), true);
72 | }
73 |
74 | }
75 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pj_qos_type.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pj_qos_type {
12 | public final static pj_qos_type PJ_QOS_TYPE_BEST_EFFORT = new pj_qos_type("PJ_QOS_TYPE_BEST_EFFORT");
13 | public final static pj_qos_type PJ_QOS_TYPE_BACKGROUND = new pj_qos_type("PJ_QOS_TYPE_BACKGROUND");
14 | public final static pj_qos_type PJ_QOS_TYPE_VIDEO = new pj_qos_type("PJ_QOS_TYPE_VIDEO");
15 | public final static pj_qos_type PJ_QOS_TYPE_VOICE = new pj_qos_type("PJ_QOS_TYPE_VOICE");
16 | public final static pj_qos_type PJ_QOS_TYPE_CONTROL = new pj_qos_type("PJ_QOS_TYPE_CONTROL");
17 |
18 | public final int swigValue() {
19 | return swigValue;
20 | }
21 |
22 | public String toString() {
23 | return swigName;
24 | }
25 |
26 | public static pj_qos_type swigToEnum(int swigValue) {
27 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
28 | return swigValues[swigValue];
29 | for (int i = 0; i < swigValues.length; i++)
30 | if (swigValues[i].swigValue == swigValue)
31 | return swigValues[i];
32 | throw new IllegalArgumentException("No enum " + pj_qos_type.class + " with value " + swigValue);
33 | }
34 |
35 | private pj_qos_type(String swigName) {
36 | this.swigName = swigName;
37 | this.swigValue = swigNext++;
38 | }
39 |
40 | private pj_qos_type(String swigName, int swigValue) {
41 | this.swigName = swigName;
42 | this.swigValue = swigValue;
43 | swigNext = swigValue+1;
44 | }
45 |
46 | private pj_qos_type(String swigName, pj_qos_type swigEnum) {
47 | this.swigName = swigName;
48 | this.swigValue = swigEnum.swigValue;
49 | swigNext = this.swigValue+1;
50 | }
51 |
52 | private static pj_qos_type[] swigValues = { PJ_QOS_TYPE_BEST_EFFORT, PJ_QOS_TYPE_BACKGROUND, PJ_QOS_TYPE_VIDEO, PJ_QOS_TYPE_VOICE, PJ_QOS_TYPE_CONTROL };
53 | private static int swigNext = 0;
54 | private final int swigValue;
55 | private final String swigName;
56 | }
57 |
58 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pj_qos_wmm_prio.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pj_qos_wmm_prio {
12 | public final static pj_qos_wmm_prio PJ_QOS_WMM_PRIO_BULK_EFFORT = new pj_qos_wmm_prio("PJ_QOS_WMM_PRIO_BULK_EFFORT");
13 | public final static pj_qos_wmm_prio PJ_QOS_WMM_PRIO_BULK = new pj_qos_wmm_prio("PJ_QOS_WMM_PRIO_BULK");
14 | public final static pj_qos_wmm_prio PJ_QOS_WMM_PRIO_VIDEO = new pj_qos_wmm_prio("PJ_QOS_WMM_PRIO_VIDEO");
15 | public final static pj_qos_wmm_prio PJ_QOS_WMM_PRIO_VOICE = new pj_qos_wmm_prio("PJ_QOS_WMM_PRIO_VOICE");
16 |
17 | public final int swigValue() {
18 | return swigValue;
19 | }
20 |
21 | public String toString() {
22 | return swigName;
23 | }
24 |
25 | public static pj_qos_wmm_prio swigToEnum(int swigValue) {
26 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
27 | return swigValues[swigValue];
28 | for (int i = 0; i < swigValues.length; i++)
29 | if (swigValues[i].swigValue == swigValue)
30 | return swigValues[i];
31 | throw new IllegalArgumentException("No enum " + pj_qos_wmm_prio.class + " with value " + swigValue);
32 | }
33 |
34 | private pj_qos_wmm_prio(String swigName) {
35 | this.swigName = swigName;
36 | this.swigValue = swigNext++;
37 | }
38 |
39 | private pj_qos_wmm_prio(String swigName, int swigValue) {
40 | this.swigName = swigName;
41 | this.swigValue = swigValue;
42 | swigNext = swigValue+1;
43 | }
44 |
45 | private pj_qos_wmm_prio(String swigName, pj_qos_wmm_prio swigEnum) {
46 | this.swigName = swigName;
47 | this.swigValue = swigEnum.swigValue;
48 | swigNext = this.swigValue+1;
49 | }
50 |
51 | private static pj_qos_wmm_prio[] swigValues = { PJ_QOS_WMM_PRIO_BULK_EFFORT, PJ_QOS_WMM_PRIO_BULK, PJ_QOS_WMM_PRIO_VIDEO, PJ_QOS_WMM_PRIO_VOICE };
52 | private static int swigNext = 0;
53 | private final int swigValue;
54 | private final String swigName;
55 | }
56 |
57 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pj_turn_tp_type.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pj_turn_tp_type {
12 | public final static pj_turn_tp_type PJ_TURN_TP_UDP = new pj_turn_tp_type("PJ_TURN_TP_UDP", pjsua2JNI.PJ_TURN_TP_UDP_get());
13 | public final static pj_turn_tp_type PJ_TURN_TP_TCP = new pj_turn_tp_type("PJ_TURN_TP_TCP", pjsua2JNI.PJ_TURN_TP_TCP_get());
14 | public final static pj_turn_tp_type PJ_TURN_TP_TLS = new pj_turn_tp_type("PJ_TURN_TP_TLS", pjsua2JNI.PJ_TURN_TP_TLS_get());
15 |
16 | public final int swigValue() {
17 | return swigValue;
18 | }
19 |
20 | public String toString() {
21 | return swigName;
22 | }
23 |
24 | public static pj_turn_tp_type swigToEnum(int swigValue) {
25 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
26 | return swigValues[swigValue];
27 | for (int i = 0; i < swigValues.length; i++)
28 | if (swigValues[i].swigValue == swigValue)
29 | return swigValues[i];
30 | throw new IllegalArgumentException("No enum " + pj_turn_tp_type.class + " with value " + swigValue);
31 | }
32 |
33 | private pj_turn_tp_type(String swigName) {
34 | this.swigName = swigName;
35 | this.swigValue = swigNext++;
36 | }
37 |
38 | private pj_turn_tp_type(String swigName, int swigValue) {
39 | this.swigName = swigName;
40 | this.swigValue = swigValue;
41 | swigNext = swigValue+1;
42 | }
43 |
44 | private pj_turn_tp_type(String swigName, pj_turn_tp_type swigEnum) {
45 | this.swigName = swigName;
46 | this.swigValue = swigEnum.swigValue;
47 | swigNext = this.swigValue+1;
48 | }
49 |
50 | private static pj_turn_tp_type[] swigValues = { PJ_TURN_TP_UDP, PJ_TURN_TP_TCP, PJ_TURN_TP_TLS };
51 | private static int swigNext = 0;
52 | private final int swigValue;
53 | private final String swigName;
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjmedia_file_player_option.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjmedia_file_player_option {
12 | public final static pjmedia_file_player_option PJMEDIA_FILE_NO_LOOP = new pjmedia_file_player_option("PJMEDIA_FILE_NO_LOOP", pjsua2JNI.PJMEDIA_FILE_NO_LOOP_get());
13 |
14 | public final int swigValue() {
15 | return swigValue;
16 | }
17 |
18 | public String toString() {
19 | return swigName;
20 | }
21 |
22 | public static pjmedia_file_player_option swigToEnum(int swigValue) {
23 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
24 | return swigValues[swigValue];
25 | for (int i = 0; i < swigValues.length; i++)
26 | if (swigValues[i].swigValue == swigValue)
27 | return swigValues[i];
28 | throw new IllegalArgumentException("No enum " + pjmedia_file_player_option.class + " with value " + swigValue);
29 | }
30 |
31 | private pjmedia_file_player_option(String swigName) {
32 | this.swigName = swigName;
33 | this.swigValue = swigNext++;
34 | }
35 |
36 | private pjmedia_file_player_option(String swigName, int swigValue) {
37 | this.swigName = swigName;
38 | this.swigValue = swigValue;
39 | swigNext = swigValue+1;
40 | }
41 |
42 | private pjmedia_file_player_option(String swigName, pjmedia_file_player_option swigEnum) {
43 | this.swigName = swigName;
44 | this.swigValue = swigEnum.swigValue;
45 | swigNext = this.swigValue+1;
46 | }
47 |
48 | private static pjmedia_file_player_option[] swigValues = { PJMEDIA_FILE_NO_LOOP };
49 | private static int swigNext = 0;
50 | private final int swigValue;
51 | private final String swigName;
52 | }
53 |
54 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjmedia_srtp_use.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjmedia_srtp_use {
12 | public final static pjmedia_srtp_use PJMEDIA_SRTP_DISABLED = new pjmedia_srtp_use("PJMEDIA_SRTP_DISABLED");
13 | public final static pjmedia_srtp_use PJMEDIA_SRTP_OPTIONAL = new pjmedia_srtp_use("PJMEDIA_SRTP_OPTIONAL");
14 | public final static pjmedia_srtp_use PJMEDIA_SRTP_MANDATORY = new pjmedia_srtp_use("PJMEDIA_SRTP_MANDATORY");
15 |
16 | public final int swigValue() {
17 | return swigValue;
18 | }
19 |
20 | public String toString() {
21 | return swigName;
22 | }
23 |
24 | public static pjmedia_srtp_use swigToEnum(int swigValue) {
25 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
26 | return swigValues[swigValue];
27 | for (int i = 0; i < swigValues.length; i++)
28 | if (swigValues[i].swigValue == swigValue)
29 | return swigValues[i];
30 | throw new IllegalArgumentException("No enum " + pjmedia_srtp_use.class + " with value " + swigValue);
31 | }
32 |
33 | private pjmedia_srtp_use(String swigName) {
34 | this.swigName = swigName;
35 | this.swigValue = swigNext++;
36 | }
37 |
38 | private pjmedia_srtp_use(String swigName, int swigValue) {
39 | this.swigName = swigName;
40 | this.swigValue = swigValue;
41 | swigNext = swigValue+1;
42 | }
43 |
44 | private pjmedia_srtp_use(String swigName, pjmedia_srtp_use swigEnum) {
45 | this.swigName = swigName;
46 | this.swigValue = swigEnum.swigValue;
47 | swigNext = this.swigValue+1;
48 | }
49 |
50 | private static pjmedia_srtp_use[] swigValues = { PJMEDIA_SRTP_DISABLED, PJMEDIA_SRTP_OPTIONAL, PJMEDIA_SRTP_MANDATORY };
51 | private static int swigNext = 0;
52 | private final int swigValue;
53 | private final String swigName;
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjmedia_tone_digit.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class pjmedia_tone_digit {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected pjmedia_tone_digit(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(pjmedia_tone_digit obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_pjmedia_tone_digit(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setDigit(char value) {
39 | pjsua2JNI.pjmedia_tone_digit_digit_set(swigCPtr, this, value);
40 | }
41 |
42 | public char getDigit() {
43 | return pjsua2JNI.pjmedia_tone_digit_digit_get(swigCPtr, this);
44 | }
45 |
46 | public void setOn_msec(short value) {
47 | pjsua2JNI.pjmedia_tone_digit_on_msec_set(swigCPtr, this, value);
48 | }
49 |
50 | public short getOn_msec() {
51 | return pjsua2JNI.pjmedia_tone_digit_on_msec_get(swigCPtr, this);
52 | }
53 |
54 | public void setOff_msec(short value) {
55 | pjsua2JNI.pjmedia_tone_digit_off_msec_set(swigCPtr, this, value);
56 | }
57 |
58 | public short getOff_msec() {
59 | return pjsua2JNI.pjmedia_tone_digit_off_msec_get(swigCPtr, this);
60 | }
61 |
62 | public void setVolume(short value) {
63 | pjsua2JNI.pjmedia_tone_digit_volume_set(swigCPtr, this, value);
64 | }
65 |
66 | public short getVolume() {
67 | return pjsua2JNI.pjmedia_tone_digit_volume_get(swigCPtr, this);
68 | }
69 |
70 | public pjmedia_tone_digit() {
71 | this(pjsua2JNI.new_pjmedia_tone_digit(), true);
72 | }
73 |
74 | }
75 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjmedia_tone_digit_map.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class pjmedia_tone_digit_map {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected pjmedia_tone_digit_map(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(pjmedia_tone_digit_map obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsua2JNI.delete_pjmedia_tone_digit_map(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | public void setCount(long value) {
39 | pjsua2JNI.pjmedia_tone_digit_map_count_set(swigCPtr, this, value);
40 | }
41 |
42 | public long getCount() {
43 | return pjsua2JNI.pjmedia_tone_digit_map_count_get(swigCPtr, this);
44 | }
45 |
46 | public pjmedia_tone_digit_map() {
47 | this(pjsua2JNI.new_pjmedia_tone_digit_map(), true);
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjmedia_type.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjmedia_type {
12 | public final static pjmedia_type PJMEDIA_TYPE_NONE = new pjmedia_type("PJMEDIA_TYPE_NONE");
13 | public final static pjmedia_type PJMEDIA_TYPE_AUDIO = new pjmedia_type("PJMEDIA_TYPE_AUDIO");
14 | public final static pjmedia_type PJMEDIA_TYPE_VIDEO = new pjmedia_type("PJMEDIA_TYPE_VIDEO");
15 | public final static pjmedia_type PJMEDIA_TYPE_APPLICATION = new pjmedia_type("PJMEDIA_TYPE_APPLICATION");
16 | public final static pjmedia_type PJMEDIA_TYPE_UNKNOWN = new pjmedia_type("PJMEDIA_TYPE_UNKNOWN");
17 |
18 | public final int swigValue() {
19 | return swigValue;
20 | }
21 |
22 | public String toString() {
23 | return swigName;
24 | }
25 |
26 | public static pjmedia_type swigToEnum(int swigValue) {
27 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
28 | return swigValues[swigValue];
29 | for (int i = 0; i < swigValues.length; i++)
30 | if (swigValues[i].swigValue == swigValue)
31 | return swigValues[i];
32 | throw new IllegalArgumentException("No enum " + pjmedia_type.class + " with value " + swigValue);
33 | }
34 |
35 | private pjmedia_type(String swigName) {
36 | this.swigName = swigName;
37 | this.swigValue = swigNext++;
38 | }
39 |
40 | private pjmedia_type(String swigName, int swigValue) {
41 | this.swigName = swigName;
42 | this.swigValue = swigValue;
43 | swigNext = swigValue+1;
44 | }
45 |
46 | private pjmedia_type(String swigName, pjmedia_type swigEnum) {
47 | this.swigName = swigName;
48 | this.swigValue = swigEnum.swigValue;
49 | swigNext = this.swigValue+1;
50 | }
51 |
52 | private static pjmedia_type[] swigValues = { PJMEDIA_TYPE_NONE, PJMEDIA_TYPE_AUDIO, PJMEDIA_TYPE_VIDEO, PJMEDIA_TYPE_APPLICATION, PJMEDIA_TYPE_UNKNOWN };
53 | private static int swigNext = 0;
54 | private final int swigValue;
55 | private final String swigName;
56 | }
57 |
58 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjmedia_vid_stream_rc_method.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjmedia_vid_stream_rc_method {
12 | public final static pjmedia_vid_stream_rc_method PJMEDIA_VID_STREAM_RC_NONE = new pjmedia_vid_stream_rc_method("PJMEDIA_VID_STREAM_RC_NONE", pjsua2JNI.PJMEDIA_VID_STREAM_RC_NONE_get());
13 | public final static pjmedia_vid_stream_rc_method PJMEDIA_VID_STREAM_RC_SIMPLE_BLOCKING = new pjmedia_vid_stream_rc_method("PJMEDIA_VID_STREAM_RC_SIMPLE_BLOCKING", pjsua2JNI.PJMEDIA_VID_STREAM_RC_SIMPLE_BLOCKING_get());
14 |
15 | public final int swigValue() {
16 | return swigValue;
17 | }
18 |
19 | public String toString() {
20 | return swigName;
21 | }
22 |
23 | public static pjmedia_vid_stream_rc_method swigToEnum(int swigValue) {
24 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
25 | return swigValues[swigValue];
26 | for (int i = 0; i < swigValues.length; i++)
27 | if (swigValues[i].swigValue == swigValue)
28 | return swigValues[i];
29 | throw new IllegalArgumentException("No enum " + pjmedia_vid_stream_rc_method.class + " with value " + swigValue);
30 | }
31 |
32 | private pjmedia_vid_stream_rc_method(String swigName) {
33 | this.swigName = swigName;
34 | this.swigValue = swigNext++;
35 | }
36 |
37 | private pjmedia_vid_stream_rc_method(String swigName, int swigValue) {
38 | this.swigName = swigName;
39 | this.swigValue = swigValue;
40 | swigNext = swigValue+1;
41 | }
42 |
43 | private pjmedia_vid_stream_rc_method(String swigName, pjmedia_vid_stream_rc_method swigEnum) {
44 | this.swigName = swigName;
45 | this.swigValue = swigEnum.swigValue;
46 | swigNext = this.swigValue+1;
47 | }
48 |
49 | private static pjmedia_vid_stream_rc_method[] swigValues = { PJMEDIA_VID_STREAM_RC_NONE, PJMEDIA_VID_STREAM_RC_SIMPLE_BLOCKING };
50 | private static int swigNext = 0;
51 | private final int swigValue;
52 | private final String swigName;
53 | }
54 |
55 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjrpid_activity.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjrpid_activity {
12 | public final static pjrpid_activity PJRPID_ACTIVITY_UNKNOWN = new pjrpid_activity("PJRPID_ACTIVITY_UNKNOWN");
13 | public final static pjrpid_activity PJRPID_ACTIVITY_AWAY = new pjrpid_activity("PJRPID_ACTIVITY_AWAY");
14 | public final static pjrpid_activity PJRPID_ACTIVITY_BUSY = new pjrpid_activity("PJRPID_ACTIVITY_BUSY");
15 |
16 | public final int swigValue() {
17 | return swigValue;
18 | }
19 |
20 | public String toString() {
21 | return swigName;
22 | }
23 |
24 | public static pjrpid_activity swigToEnum(int swigValue) {
25 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
26 | return swigValues[swigValue];
27 | for (int i = 0; i < swigValues.length; i++)
28 | if (swigValues[i].swigValue == swigValue)
29 | return swigValues[i];
30 | throw new IllegalArgumentException("No enum " + pjrpid_activity.class + " with value " + swigValue);
31 | }
32 |
33 | private pjrpid_activity(String swigName) {
34 | this.swigName = swigName;
35 | this.swigValue = swigNext++;
36 | }
37 |
38 | private pjrpid_activity(String swigName, int swigValue) {
39 | this.swigName = swigName;
40 | this.swigValue = swigValue;
41 | swigNext = swigValue+1;
42 | }
43 |
44 | private pjrpid_activity(String swigName, pjrpid_activity swigEnum) {
45 | this.swigName = swigName;
46 | this.swigValue = swigEnum.swigValue;
47 | swigNext = this.swigValue+1;
48 | }
49 |
50 | private static pjrpid_activity[] swigValues = { PJRPID_ACTIVITY_UNKNOWN, PJRPID_ACTIVITY_AWAY, PJRPID_ACTIVITY_BUSY };
51 | private static int swigNext = 0;
52 | private final int swigValue;
53 | private final String swigName;
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsip_role_e.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjsip_role_e {
12 | public final static pjsip_role_e PJSIP_ROLE_UAC = new pjsip_role_e("PJSIP_ROLE_UAC");
13 | public final static pjsip_role_e PJSIP_ROLE_UAS = new pjsip_role_e("PJSIP_ROLE_UAS");
14 | public final static pjsip_role_e PJSIP_UAC_ROLE = new pjsip_role_e("PJSIP_UAC_ROLE", pjsua2JNI.PJSIP_UAC_ROLE_get());
15 | public final static pjsip_role_e PJSIP_UAS_ROLE = new pjsip_role_e("PJSIP_UAS_ROLE", pjsua2JNI.PJSIP_UAS_ROLE_get());
16 |
17 | public final int swigValue() {
18 | return swigValue;
19 | }
20 |
21 | public String toString() {
22 | return swigName;
23 | }
24 |
25 | public static pjsip_role_e swigToEnum(int swigValue) {
26 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
27 | return swigValues[swigValue];
28 | for (int i = 0; i < swigValues.length; i++)
29 | if (swigValues[i].swigValue == swigValue)
30 | return swigValues[i];
31 | throw new IllegalArgumentException("No enum " + pjsip_role_e.class + " with value " + swigValue);
32 | }
33 |
34 | private pjsip_role_e(String swigName) {
35 | this.swigName = swigName;
36 | this.swigValue = swigNext++;
37 | }
38 |
39 | private pjsip_role_e(String swigName, int swigValue) {
40 | this.swigName = swigName;
41 | this.swigValue = swigValue;
42 | swigNext = swigValue+1;
43 | }
44 |
45 | private pjsip_role_e(String swigName, pjsip_role_e swigEnum) {
46 | this.swigName = swigName;
47 | this.swigValue = swigEnum.swigValue;
48 | swigNext = this.swigValue+1;
49 | }
50 |
51 | private static pjsip_role_e[] swigValues = { PJSIP_ROLE_UAC, PJSIP_ROLE_UAS, PJSIP_UAC_ROLE, PJSIP_UAS_ROLE };
52 | private static int swigNext = 0;
53 | private final int swigValue;
54 | private final String swigName;
55 | }
56 |
57 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsua2.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public class pjsua2 implements pjsua2Constants {
12 | }
13 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsua2Constants.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public interface pjsua2Constants {
12 | public final static int INVALID_ID = pjsua2JNI.INVALID_ID_get();
13 | public final static int SUCCESS = pjsua2JNI.SUCCESS_get();
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsua_100rel_use.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjsua_100rel_use {
12 | public final static pjsua_100rel_use PJSUA_100REL_NOT_USED = new pjsua_100rel_use("PJSUA_100REL_NOT_USED");
13 | public final static pjsua_100rel_use PJSUA_100REL_MANDATORY = new pjsua_100rel_use("PJSUA_100REL_MANDATORY");
14 | public final static pjsua_100rel_use PJSUA_100REL_OPTIONAL = new pjsua_100rel_use("PJSUA_100REL_OPTIONAL");
15 |
16 | public final int swigValue() {
17 | return swigValue;
18 | }
19 |
20 | public String toString() {
21 | return swigName;
22 | }
23 |
24 | public static pjsua_100rel_use swigToEnum(int swigValue) {
25 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
26 | return swigValues[swigValue];
27 | for (int i = 0; i < swigValues.length; i++)
28 | if (swigValues[i].swigValue == swigValue)
29 | return swigValues[i];
30 | throw new IllegalArgumentException("No enum " + pjsua_100rel_use.class + " with value " + swigValue);
31 | }
32 |
33 | private pjsua_100rel_use(String swigName) {
34 | this.swigName = swigName;
35 | this.swigValue = swigNext++;
36 | }
37 |
38 | private pjsua_100rel_use(String swigName, int swigValue) {
39 | this.swigName = swigName;
40 | this.swigValue = swigValue;
41 | swigNext = swigValue+1;
42 | }
43 |
44 | private pjsua_100rel_use(String swigName, pjsua_100rel_use swigEnum) {
45 | this.swigName = swigName;
46 | this.swigValue = swigEnum.swigValue;
47 | swigNext = this.swigValue+1;
48 | }
49 |
50 | private static pjsua_100rel_use[] swigValues = { PJSUA_100REL_NOT_USED, PJSUA_100REL_MANDATORY, PJSUA_100REL_OPTIONAL };
51 | private static int swigNext = 0;
52 | private final int swigValue;
53 | private final String swigName;
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsua_buddy_status.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjsua_buddy_status {
12 | public final static pjsua_buddy_status PJSUA_BUDDY_STATUS_UNKNOWN = new pjsua_buddy_status("PJSUA_BUDDY_STATUS_UNKNOWN");
13 | public final static pjsua_buddy_status PJSUA_BUDDY_STATUS_ONLINE = new pjsua_buddy_status("PJSUA_BUDDY_STATUS_ONLINE");
14 | public final static pjsua_buddy_status PJSUA_BUDDY_STATUS_OFFLINE = new pjsua_buddy_status("PJSUA_BUDDY_STATUS_OFFLINE");
15 |
16 | public final int swigValue() {
17 | return swigValue;
18 | }
19 |
20 | public String toString() {
21 | return swigName;
22 | }
23 |
24 | public static pjsua_buddy_status swigToEnum(int swigValue) {
25 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
26 | return swigValues[swigValue];
27 | for (int i = 0; i < swigValues.length; i++)
28 | if (swigValues[i].swigValue == swigValue)
29 | return swigValues[i];
30 | throw new IllegalArgumentException("No enum " + pjsua_buddy_status.class + " with value " + swigValue);
31 | }
32 |
33 | private pjsua_buddy_status(String swigName) {
34 | this.swigName = swigName;
35 | this.swigValue = swigNext++;
36 | }
37 |
38 | private pjsua_buddy_status(String swigName, int swigValue) {
39 | this.swigName = swigName;
40 | this.swigValue = swigValue;
41 | swigNext = swigValue+1;
42 | }
43 |
44 | private pjsua_buddy_status(String swigName, pjsua_buddy_status swigEnum) {
45 | this.swigName = swigName;
46 | this.swigValue = swigEnum.swigValue;
47 | swigNext = this.swigValue+1;
48 | }
49 |
50 | private static pjsua_buddy_status[] swigValues = { PJSUA_BUDDY_STATUS_UNKNOWN, PJSUA_BUDDY_STATUS_ONLINE, PJSUA_BUDDY_STATUS_OFFLINE };
51 | private static int swigNext = 0;
52 | private final int swigValue;
53 | private final String swigName;
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsua_call_flag.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjsua_call_flag {
12 | public final static pjsua_call_flag PJSUA_CALL_UNHOLD = new pjsua_call_flag("PJSUA_CALL_UNHOLD", pjsua2JNI.PJSUA_CALL_UNHOLD_get());
13 | public final static pjsua_call_flag PJSUA_CALL_UPDATE_CONTACT = new pjsua_call_flag("PJSUA_CALL_UPDATE_CONTACT", pjsua2JNI.PJSUA_CALL_UPDATE_CONTACT_get());
14 | public final static pjsua_call_flag PJSUA_CALL_INCLUDE_DISABLED_MEDIA = new pjsua_call_flag("PJSUA_CALL_INCLUDE_DISABLED_MEDIA", pjsua2JNI.PJSUA_CALL_INCLUDE_DISABLED_MEDIA_get());
15 |
16 | public final int swigValue() {
17 | return swigValue;
18 | }
19 |
20 | public String toString() {
21 | return swigName;
22 | }
23 |
24 | public static pjsua_call_flag swigToEnum(int swigValue) {
25 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
26 | return swigValues[swigValue];
27 | for (int i = 0; i < swigValues.length; i++)
28 | if (swigValues[i].swigValue == swigValue)
29 | return swigValues[i];
30 | throw new IllegalArgumentException("No enum " + pjsua_call_flag.class + " with value " + swigValue);
31 | }
32 |
33 | private pjsua_call_flag(String swigName) {
34 | this.swigName = swigName;
35 | this.swigValue = swigNext++;
36 | }
37 |
38 | private pjsua_call_flag(String swigName, int swigValue) {
39 | this.swigName = swigName;
40 | this.swigValue = swigValue;
41 | swigNext = swigValue+1;
42 | }
43 |
44 | private pjsua_call_flag(String swigName, pjsua_call_flag swigEnum) {
45 | this.swigName = swigName;
46 | this.swigValue = swigEnum.swigValue;
47 | swigNext = this.swigValue+1;
48 | }
49 |
50 | private static pjsua_call_flag[] swigValues = { PJSUA_CALL_UNHOLD, PJSUA_CALL_UPDATE_CONTACT, PJSUA_CALL_INCLUDE_DISABLED_MEDIA };
51 | private static int swigNext = 0;
52 | private final int swigValue;
53 | private final String swigName;
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsua_call_hold_type.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjsua_call_hold_type {
12 | public final static pjsua_call_hold_type PJSUA_CALL_HOLD_TYPE_RFC3264 = new pjsua_call_hold_type("PJSUA_CALL_HOLD_TYPE_RFC3264");
13 | public final static pjsua_call_hold_type PJSUA_CALL_HOLD_TYPE_RFC2543 = new pjsua_call_hold_type("PJSUA_CALL_HOLD_TYPE_RFC2543");
14 |
15 | public final int swigValue() {
16 | return swigValue;
17 | }
18 |
19 | public String toString() {
20 | return swigName;
21 | }
22 |
23 | public static pjsua_call_hold_type swigToEnum(int swigValue) {
24 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
25 | return swigValues[swigValue];
26 | for (int i = 0; i < swigValues.length; i++)
27 | if (swigValues[i].swigValue == swigValue)
28 | return swigValues[i];
29 | throw new IllegalArgumentException("No enum " + pjsua_call_hold_type.class + " with value " + swigValue);
30 | }
31 |
32 | private pjsua_call_hold_type(String swigName) {
33 | this.swigName = swigName;
34 | this.swigValue = swigNext++;
35 | }
36 |
37 | private pjsua_call_hold_type(String swigName, int swigValue) {
38 | this.swigName = swigName;
39 | this.swigValue = swigValue;
40 | swigNext = swigValue+1;
41 | }
42 |
43 | private pjsua_call_hold_type(String swigName, pjsua_call_hold_type swigEnum) {
44 | this.swigName = swigName;
45 | this.swigValue = swigEnum.swigValue;
46 | swigNext = this.swigValue+1;
47 | }
48 |
49 | private static pjsua_call_hold_type[] swigValues = { PJSUA_CALL_HOLD_TYPE_RFC3264, PJSUA_CALL_HOLD_TYPE_RFC2543 };
50 | private static int swigNext = 0;
51 | private final int swigValue;
52 | private final String swigName;
53 | }
54 |
55 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsua_create_media_transport_flag.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjsua_create_media_transport_flag {
12 | public final static pjsua_create_media_transport_flag PJSUA_MED_TP_CLOSE_MEMBER = new pjsua_create_media_transport_flag("PJSUA_MED_TP_CLOSE_MEMBER", pjsua2JNI.PJSUA_MED_TP_CLOSE_MEMBER_get());
13 |
14 | public final int swigValue() {
15 | return swigValue;
16 | }
17 |
18 | public String toString() {
19 | return swigName;
20 | }
21 |
22 | public static pjsua_create_media_transport_flag swigToEnum(int swigValue) {
23 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
24 | return swigValues[swigValue];
25 | for (int i = 0; i < swigValues.length; i++)
26 | if (swigValues[i].swigValue == swigValue)
27 | return swigValues[i];
28 | throw new IllegalArgumentException("No enum " + pjsua_create_media_transport_flag.class + " with value " + swigValue);
29 | }
30 |
31 | private pjsua_create_media_transport_flag(String swigName) {
32 | this.swigName = swigName;
33 | this.swigValue = swigNext++;
34 | }
35 |
36 | private pjsua_create_media_transport_flag(String swigName, int swigValue) {
37 | this.swigName = swigName;
38 | this.swigValue = swigValue;
39 | swigNext = swigValue+1;
40 | }
41 |
42 | private pjsua_create_media_transport_flag(String swigName, pjsua_create_media_transport_flag swigEnum) {
43 | this.swigName = swigName;
44 | this.swigValue = swigEnum.swigValue;
45 | swigNext = this.swigValue+1;
46 | }
47 |
48 | private static pjsua_create_media_transport_flag[] swigValues = { PJSUA_MED_TP_CLOSE_MEMBER };
49 | private static int swigNext = 0;
50 | private final int swigValue;
51 | private final String swigName;
52 | }
53 |
54 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsua_destroy_flag.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjsua_destroy_flag {
12 | public final static pjsua_destroy_flag PJSUA_DESTROY_NO_RX_MSG = new pjsua_destroy_flag("PJSUA_DESTROY_NO_RX_MSG", pjsua2JNI.PJSUA_DESTROY_NO_RX_MSG_get());
13 | public final static pjsua_destroy_flag PJSUA_DESTROY_NO_TX_MSG = new pjsua_destroy_flag("PJSUA_DESTROY_NO_TX_MSG", pjsua2JNI.PJSUA_DESTROY_NO_TX_MSG_get());
14 | public final static pjsua_destroy_flag PJSUA_DESTROY_NO_NETWORK = new pjsua_destroy_flag("PJSUA_DESTROY_NO_NETWORK", pjsua2JNI.PJSUA_DESTROY_NO_NETWORK_get());
15 |
16 | public final int swigValue() {
17 | return swigValue;
18 | }
19 |
20 | public String toString() {
21 | return swigName;
22 | }
23 |
24 | public static pjsua_destroy_flag swigToEnum(int swigValue) {
25 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
26 | return swigValues[swigValue];
27 | for (int i = 0; i < swigValues.length; i++)
28 | if (swigValues[i].swigValue == swigValue)
29 | return swigValues[i];
30 | throw new IllegalArgumentException("No enum " + pjsua_destroy_flag.class + " with value " + swigValue);
31 | }
32 |
33 | private pjsua_destroy_flag(String swigName) {
34 | this.swigName = swigName;
35 | this.swigValue = swigNext++;
36 | }
37 |
38 | private pjsua_destroy_flag(String swigName, int swigValue) {
39 | this.swigName = swigName;
40 | this.swigValue = swigValue;
41 | swigNext = swigValue+1;
42 | }
43 |
44 | private pjsua_destroy_flag(String swigName, pjsua_destroy_flag swigEnum) {
45 | this.swigName = swigName;
46 | this.swigValue = swigEnum.swigValue;
47 | swigNext = this.swigValue+1;
48 | }
49 |
50 | private static pjsua_destroy_flag[] swigValues = { PJSUA_DESTROY_NO_RX_MSG, PJSUA_DESTROY_NO_TX_MSG, PJSUA_DESTROY_NO_NETWORK };
51 | private static int swigNext = 0;
52 | private final int swigValue;
53 | private final String swigName;
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsua_invalid_id_const_.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjsua_invalid_id_const_ {
12 | public final static pjsua_invalid_id_const_ PJSUA_INVALID_ID = new pjsua_invalid_id_const_("PJSUA_INVALID_ID", pjsua2JNI.PJSUA_INVALID_ID_get());
13 |
14 | public final int swigValue() {
15 | return swigValue;
16 | }
17 |
18 | public String toString() {
19 | return swigName;
20 | }
21 |
22 | public static pjsua_invalid_id_const_ swigToEnum(int swigValue) {
23 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
24 | return swigValues[swigValue];
25 | for (int i = 0; i < swigValues.length; i++)
26 | if (swigValues[i].swigValue == swigValue)
27 | return swigValues[i];
28 | throw new IllegalArgumentException("No enum " + pjsua_invalid_id_const_.class + " with value " + swigValue);
29 | }
30 |
31 | private pjsua_invalid_id_const_(String swigName) {
32 | this.swigName = swigName;
33 | this.swigValue = swigNext++;
34 | }
35 |
36 | private pjsua_invalid_id_const_(String swigName, int swigValue) {
37 | this.swigName = swigName;
38 | this.swigValue = swigValue;
39 | swigNext = swigValue+1;
40 | }
41 |
42 | private pjsua_invalid_id_const_(String swigName, pjsua_invalid_id_const_ swigEnum) {
43 | this.swigName = swigName;
44 | this.swigValue = swigEnum.swigValue;
45 | swigNext = this.swigValue+1;
46 | }
47 |
48 | private static pjsua_invalid_id_const_[] swigValues = { PJSUA_INVALID_ID };
49 | private static int swigNext = 0;
50 | private final int swigValue;
51 | private final String swigName;
52 | }
53 |
54 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsua_ipv6_use.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjsua_ipv6_use {
12 | public final static pjsua_ipv6_use PJSUA_IPV6_DISABLED = new pjsua_ipv6_use("PJSUA_IPV6_DISABLED");
13 | public final static pjsua_ipv6_use PJSUA_IPV6_ENABLED = new pjsua_ipv6_use("PJSUA_IPV6_ENABLED");
14 |
15 | public final int swigValue() {
16 | return swigValue;
17 | }
18 |
19 | public String toString() {
20 | return swigName;
21 | }
22 |
23 | public static pjsua_ipv6_use swigToEnum(int swigValue) {
24 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
25 | return swigValues[swigValue];
26 | for (int i = 0; i < swigValues.length; i++)
27 | if (swigValues[i].swigValue == swigValue)
28 | return swigValues[i];
29 | throw new IllegalArgumentException("No enum " + pjsua_ipv6_use.class + " with value " + swigValue);
30 | }
31 |
32 | private pjsua_ipv6_use(String swigName) {
33 | this.swigName = swigName;
34 | this.swigValue = swigNext++;
35 | }
36 |
37 | private pjsua_ipv6_use(String swigName, int swigValue) {
38 | this.swigName = swigName;
39 | this.swigValue = swigValue;
40 | swigNext = swigValue+1;
41 | }
42 |
43 | private pjsua_ipv6_use(String swigName, pjsua_ipv6_use swigEnum) {
44 | this.swigName = swigName;
45 | this.swigValue = swigEnum.swigValue;
46 | swigNext = this.swigValue+1;
47 | }
48 |
49 | private static pjsua_ipv6_use[] swigValues = { PJSUA_IPV6_DISABLED, PJSUA_IPV6_ENABLED };
50 | private static int swigNext = 0;
51 | private final int swigValue;
52 | private final String swigName;
53 | }
54 |
55 |
--------------------------------------------------------------------------------
/Pjsua2/src/org/pjsip/pjsua2/pjsua_stun_use.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua2;
10 |
11 | public final class pjsua_stun_use {
12 | public final static pjsua_stun_use PJSUA_STUN_USE_DEFAULT = new pjsua_stun_use("PJSUA_STUN_USE_DEFAULT");
13 | public final static pjsua_stun_use PJSUA_STUN_USE_DISABLED = new pjsua_stun_use("PJSUA_STUN_USE_DISABLED");
14 |
15 | public final int swigValue() {
16 | return swigValue;
17 | }
18 |
19 | public String toString() {
20 | return swigName;
21 | }
22 |
23 | public static pjsua_stun_use swigToEnum(int swigValue) {
24 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
25 | return swigValues[swigValue];
26 | for (int i = 0; i < swigValues.length; i++)
27 | if (swigValues[i].swigValue == swigValue)
28 | return swigValues[i];
29 | throw new IllegalArgumentException("No enum " + pjsua_stun_use.class + " with value " + swigValue);
30 | }
31 |
32 | private pjsua_stun_use(String swigName) {
33 | this.swigName = swigName;
34 | this.swigValue = swigNext++;
35 | }
36 |
37 | private pjsua_stun_use(String swigName, int swigValue) {
38 | this.swigName = swigName;
39 | this.swigValue = swigValue;
40 | swigNext = swigValue+1;
41 | }
42 |
43 | private pjsua_stun_use(String swigName, pjsua_stun_use swigEnum) {
44 | this.swigName = swigName;
45 | this.swigValue = swigEnum.swigValue;
46 | swigNext = this.swigValue+1;
47 | }
48 |
49 | private static pjsua_stun_use[] swigValues = { PJSUA_STUN_USE_DEFAULT, PJSUA_STUN_USE_DISABLED };
50 | private static int swigNext = 0;
51 | private final int swigValue;
52 | private final String swigName;
53 | }
54 |
55 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PJSIP-Android平台编译后的Hello World #
2 |
3 | 官方示例中Android平台的两个Hello World编译后项目,整个过程坑爹一坨坨。
4 |
5 | Android平台官方文档页为:
6 |
7 | [http://trac.pjsip.org/repos/wiki/Getting-Started/Android](http://trac.pjsip.org/repos/wiki/Getting-Started/Android)
8 |
9 | ### 编译环境 ###
10 |
11 | - Ubuntu-14.04.1-LTS-i386
12 |
13 | - PJSIP-2.3
14 |
15 | - ndk-r9d-linux-x86
16 |
17 | ### 经验和教训 ###
18 |
19 | 简而言之就是以下几句话:
20 |
21 | - 别用Windows编译
22 |
23 | - 别用Ubuntu 64位,使用32位,包括ndk
24 |
25 | - 别用ndk版本号高于r10,使用r9以下版本
26 |
27 | ### 详细的说明 ###
28 |
29 | 参看:[http://blog.takwolf.com/2014/12/03/pjsip-android-compilation](http://blog.takwolf.com/2014/12/03/pjsip-android-compilation)
30 |
31 | 以上,祝你好运~
32 |
--------------------------------------------------------------------------------
/pjsua/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/pjsua/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | pjsua
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/pjsua/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/pjsua/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.source=1.6
5 |
--------------------------------------------------------------------------------
/pjsua/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
28 |
29 |
33 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/pjsua/jni/Android.mk:
--------------------------------------------------------------------------------
1 | # $Id$
2 |
3 | LOCAL_PATH := $(call my-dir)
4 | include $(CLEAR_VARS)
5 |
6 | # Get PJ build settings
7 | include ../../../../build.mak
8 | include $(PJDIR)/build/common.mak
9 |
10 | # Path to SWIG
11 | MY_SWIG := swig
12 |
13 | MY_MODULE_PATH := $(PJDIR)/pjsip-apps/build/output/pjsua-$(TARGET_NAME)
14 | MY_MODULES := $(MY_MODULE_PATH)/pjsua_app.o \
15 | $(MY_MODULE_PATH)/pjsua_app_cli.o \
16 | $(MY_MODULE_PATH)/pjsua_app_common.o \
17 | $(MY_MODULE_PATH)/pjsua_app_config.o \
18 | $(MY_MODULE_PATH)/pjsua_app_legacy.o
19 |
20 | # Constants
21 | MY_JNI_WRAP := pjsua_wrap.cpp
22 | MY_JNI_DIR := jni
23 |
24 | # Android build settings
25 | LOCAL_MODULE := libpjsua
26 | LOCAL_CFLAGS := -Werror $(APP_CFLAGS) -frtti
27 | LOCAL_LDFLAGS := $(APP_LDFLAGS)
28 | LOCAL_LDLIBS := $(MY_MODULES) $(APP_LDLIBS)
29 | LOCAL_SRC_FILES := $(MY_JNI_WRAP) pjsua_app_callback.cpp
30 |
31 | # Invoke SWIG
32 | $(MY_JNI_DIR)/$(MY_JNI_WRAP):
33 | @echo "Invoking SWIG..."
34 | $(MY_SWIG) -c++ -o $(MY_JNI_DIR)/$(MY_JNI_WRAP) -package org.pjsip.pjsua -outdir src/org/pjsip/pjsua -java $(MY_JNI_DIR)/pjsua.i
35 |
36 | .PHONY: $(MY_JNI_DIR)/$(MY_JNI_WRAP)
37 |
38 | include $(BUILD_SHARED_LIBRARY)
39 |
--------------------------------------------------------------------------------
/pjsua/jni/pjsua.i:
--------------------------------------------------------------------------------
1 | %module (directors="1") pjsua
2 |
3 | %{
4 | #include "pjsua_app_callback.h"
5 | #include "../../pjsua_app.h"
6 |
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | int pjsuaStart();
11 | void pjsuaDestroy();
12 | int pjsuaRestart();
13 | void setCallbackObject(PjsuaAppCallback* callback);
14 | #ifdef __cplusplus
15 | }
16 | #endif
17 | %}
18 |
19 | int pjsuaStart();
20 | void pjsuaDestroy();
21 | int pjsuaRestart();
22 |
23 | /* turn on director wrapping PjsuaAppCallback */
24 | %feature("director") PjsuaAppCallback;
25 |
26 | %include "pjsua_app_callback.h"
27 |
28 | void setCallbackObject(PjsuaAppCallback* callback);
29 |
30 |
--------------------------------------------------------------------------------
/pjsua/jni/pjsua_app_callback.h:
--------------------------------------------------------------------------------
1 | /* $Id: pjsua_app_callback.h $ */
2 | /*
3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License as published by
7 | * the Free Software Foundation; either version 2 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU General Public License
16 | * along with this program; if not, write to the Free Software
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 | */
19 | #ifndef __PJSUA_APP_CALLBACK_H__
20 | #define __PJSUA_APP_CALLBACK_H__
21 |
22 | class PjsuaAppCallback {
23 | public:
24 | virtual ~PjsuaAppCallback() {}
25 | virtual void onStarted(const char *msg) {}
26 | virtual void onStopped(int restart) {}
27 | };
28 |
29 | extern "C" {
30 | int pjsuaStart();
31 | void pjsuaDestroy();
32 | int pjsuaRestart();
33 | void setCallbackObject(PjsuaAppCallback* callback);
34 | }
35 |
36 | #endif /* __PJSUA_APP_CALLBACK_H__ */
37 |
--------------------------------------------------------------------------------
/pjsua/jni/pjsua_wrap.h:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
4 | *
5 | * This file is not intended to be easily readable and contains a number of
6 | * coding conventions designed to improve portability and efficiency. Do not make
7 | * changes to this file unless you know what you are doing--modify the SWIG
8 | * interface file instead.
9 | * ----------------------------------------------------------------------------- */
10 |
11 | #ifndef SWIG_pjsua_WRAP_H_
12 | #define SWIG_pjsua_WRAP_H_
13 |
14 | class SwigDirector_PjsuaAppCallback : public PjsuaAppCallback, public Swig::Director {
15 |
16 | public:
17 | void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
18 | SwigDirector_PjsuaAppCallback(JNIEnv *jenv);
19 | virtual ~SwigDirector_PjsuaAppCallback();
20 | virtual void onStarted(char const *msg);
21 | virtual void onStopped(int restart);
22 | public:
23 | bool swig_overrides(int n) {
24 | return (n < 2 ? swig_override[n] : false);
25 | }
26 | protected:
27 | bool swig_override[2];
28 | };
29 |
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/pjsua/libs/armeabi/libpjsua.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/pjsua/libs/armeabi/libpjsua.so
--------------------------------------------------------------------------------
/pjsua/lint.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/pjsua/obj/local/armeabi/libpjsua.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/pjsua/obj/local/armeabi/libpjsua.so
--------------------------------------------------------------------------------
/pjsua/obj/local/armeabi/libstdc++.a:
--------------------------------------------------------------------------------
1 | !
2 |
--------------------------------------------------------------------------------
/pjsua/obj/local/armeabi/objs/pjsua/pjsua_app_callback.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/pjsua/obj/local/armeabi/objs/pjsua/pjsua_app_callback.o
--------------------------------------------------------------------------------
/pjsua/obj/local/armeabi/objs/pjsua/pjsua_wrap.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/pjsua/obj/local/armeabi/objs/pjsua/pjsua_wrap.o
--------------------------------------------------------------------------------
/pjsua/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/pjsua/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 |
--------------------------------------------------------------------------------
/pjsua/res/drawable-hdpi/main_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/pjsua/res/drawable-hdpi/main_image.png
--------------------------------------------------------------------------------
/pjsua/res/drawable-ldpi/main_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/pjsua/res/drawable-ldpi/main_image.png
--------------------------------------------------------------------------------
/pjsua/res/drawable-mdpi/main_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/pjsua/res/drawable-mdpi/main_image.png
--------------------------------------------------------------------------------
/pjsua/res/drawable-xhdpi/main_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TakWolf-Deprecated/PJSIP-Android-Compilation/1c40a805768d147459a3492cdb20c10b0fb9d1e8/pjsua/res/drawable-xhdpi/main_image.png
--------------------------------------------------------------------------------
/pjsua/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
16 |
25 |
26 |
33 |
34 |
--------------------------------------------------------------------------------
/pjsua/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/pjsua/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/pjsua/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | pjsua
4 | MainActivity
5 |
6 |
--------------------------------------------------------------------------------
/pjsua/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/pjsua/src/org/pjsip/pjsua/PjsuaAppCallback.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua;
10 |
11 | public class PjsuaAppCallback {
12 | private long swigCPtr;
13 | protected boolean swigCMemOwn;
14 |
15 | protected PjsuaAppCallback(long cPtr, boolean cMemoryOwn) {
16 | swigCMemOwn = cMemoryOwn;
17 | swigCPtr = cPtr;
18 | }
19 |
20 | protected static long getCPtr(PjsuaAppCallback obj) {
21 | return (obj == null) ? 0 : obj.swigCPtr;
22 | }
23 |
24 | protected void finalize() {
25 | delete();
26 | }
27 |
28 | public synchronized void delete() {
29 | if (swigCPtr != 0) {
30 | if (swigCMemOwn) {
31 | swigCMemOwn = false;
32 | pjsuaJNI.delete_PjsuaAppCallback(swigCPtr);
33 | }
34 | swigCPtr = 0;
35 | }
36 | }
37 |
38 | protected void swigDirectorDisconnect() {
39 | swigCMemOwn = false;
40 | delete();
41 | }
42 |
43 | public void swigReleaseOwnership() {
44 | swigCMemOwn = false;
45 | pjsuaJNI.PjsuaAppCallback_change_ownership(this, swigCPtr, false);
46 | }
47 |
48 | public void swigTakeOwnership() {
49 | swigCMemOwn = true;
50 | pjsuaJNI.PjsuaAppCallback_change_ownership(this, swigCPtr, true);
51 | }
52 |
53 | public void onStarted(String msg) {
54 | if (getClass() == PjsuaAppCallback.class) pjsuaJNI.PjsuaAppCallback_onStarted(swigCPtr, this, msg); else pjsuaJNI.PjsuaAppCallback_onStartedSwigExplicitPjsuaAppCallback(swigCPtr, this, msg);
55 | }
56 |
57 | public void onStopped(int restart) {
58 | if (getClass() == PjsuaAppCallback.class) pjsuaJNI.PjsuaAppCallback_onStopped(swigCPtr, this, restart); else pjsuaJNI.PjsuaAppCallback_onStoppedSwigExplicitPjsuaAppCallback(swigCPtr, this, restart);
59 | }
60 |
61 | public PjsuaAppCallback() {
62 | this(pjsuaJNI.new_PjsuaAppCallback(), true);
63 | pjsuaJNI.PjsuaAppCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/pjsua/src/org/pjsip/pjsua/pjsua.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua;
10 |
11 | public class pjsua {
12 | public static int pjsuaStart() {
13 | return pjsuaJNI.pjsuaStart();
14 | }
15 |
16 | public static void pjsuaDestroy() {
17 | pjsuaJNI.pjsuaDestroy();
18 | }
19 |
20 | public static int pjsuaRestart() {
21 | return pjsuaJNI.pjsuaRestart();
22 | }
23 |
24 | public static void setCallbackObject(PjsuaAppCallback callback) {
25 | pjsuaJNI.setCallbackObject(PjsuaAppCallback.getCPtr(callback), callback);
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/pjsua/src/org/pjsip/pjsua/pjsuaJNI.java:
--------------------------------------------------------------------------------
1 | /* ----------------------------------------------------------------------------
2 | * This file was automatically generated by SWIG (http://www.swig.org).
3 | * Version 2.0.12
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 |
9 | package org.pjsip.pjsua;
10 |
11 | public class pjsuaJNI {
12 | public final static native int pjsuaStart();
13 | public final static native void pjsuaDestroy();
14 | public final static native int pjsuaRestart();
15 | public final static native void delete_PjsuaAppCallback(long jarg1);
16 | public final static native void PjsuaAppCallback_onStarted(long jarg1, PjsuaAppCallback jarg1_, String jarg2);
17 | public final static native void PjsuaAppCallback_onStartedSwigExplicitPjsuaAppCallback(long jarg1, PjsuaAppCallback jarg1_, String jarg2);
18 | public final static native void PjsuaAppCallback_onStopped(long jarg1, PjsuaAppCallback jarg1_, int jarg2);
19 | public final static native void PjsuaAppCallback_onStoppedSwigExplicitPjsuaAppCallback(long jarg1, PjsuaAppCallback jarg1_, int jarg2);
20 | public final static native long new_PjsuaAppCallback();
21 | public final static native void PjsuaAppCallback_director_connect(PjsuaAppCallback obj, long cptr, boolean mem_own, boolean weak_global);
22 | public final static native void PjsuaAppCallback_change_ownership(PjsuaAppCallback obj, long cptr, boolean take_or_release);
23 | public final static native void setCallbackObject(long jarg1, PjsuaAppCallback jarg1_);
24 |
25 | public static void SwigDirector_PjsuaAppCallback_onStarted(PjsuaAppCallback self, String msg) {
26 | self.onStarted(msg);
27 | }
28 | public static void SwigDirector_PjsuaAppCallback_onStopped(PjsuaAppCallback self, int restart) {
29 | self.onStopped(restart);
30 | }
31 |
32 | private final static native void swig_module_init();
33 | static {
34 | swig_module_init();
35 | }
36 | }
37 |
--------------------------------------------------------------------------------