Added DTMF listener
This commit is contained in:
parent
f4100653f1
commit
038e2fc30b
5 changed files with 18 additions and 6 deletions
|
@ -4,8 +4,7 @@
|
|||
<classpathentry excluding="org/linphone/mediastream/MediastreamerActivity.java" kind="src" path="submodules/linphone/mediastreamer2/java/src"/>
|
||||
<classpathentry kind="src" path="submodules/linphone/java/j2se"/>
|
||||
<classpathentry kind="src" path="submodules/linphone/java/common"/>
|
||||
<classpathentry kind="src" path="submodules/linphone/coreapi/help/java"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry excluding="org/linphone/core/tutorials/" kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||
<classpathentry exported="true" kind="lib" path="libs/aXMLRPC.jar"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||
|
|
|
@ -1048,10 +1048,10 @@
|
|||
<fileset dir="submodules/linphone/java/common">
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy includeemptydirs="false" todir="src/temp">
|
||||
<!-- <copy includeemptydirs="false" todir="src/temp">
|
||||
<fileset dir="submodules/linphone/coreapi/help/java">
|
||||
</fileset>
|
||||
</copy>
|
||||
</copy> -->
|
||||
</target>
|
||||
|
||||
<target name="delete-temp" description="remove linphone java files into right directories.">
|
||||
|
|
|
@ -49,6 +49,7 @@ import java.util.TimerTask;
|
|||
|
||||
import org.linphone.LinphoneSimpleListener.LinphoneOnAudioChangedListener;
|
||||
import org.linphone.LinphoneSimpleListener.LinphoneOnAudioChangedListener.AudioState;
|
||||
import org.linphone.LinphoneSimpleListener.LinphoneOnDTMFReceivedListener;
|
||||
import org.linphone.LinphoneSimpleListener.LinphoneOnTextReceivedListener;
|
||||
import org.linphone.LinphoneSimpleListener.LinphoneServiceListener;
|
||||
import org.linphone.core.CallDirection;
|
||||
|
@ -57,7 +58,6 @@ import org.linphone.core.LinphoneAuthInfo;
|
|||
import org.linphone.core.LinphoneCall;
|
||||
import org.linphone.core.LinphoneCall.State;
|
||||
import org.linphone.core.LinphoneCallStats;
|
||||
import org.linphone.core.LinphoneCallStats.MediaType;
|
||||
import org.linphone.core.LinphoneChatRoom;
|
||||
import org.linphone.core.LinphoneCore;
|
||||
import org.linphone.core.LinphoneCore.EcCalibratorStatus;
|
||||
|
@ -908,6 +908,11 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
public void setOnTextReceivedListener(LinphoneOnTextReceivedListener listener) {
|
||||
textReceivedListener = listener;
|
||||
}
|
||||
|
||||
private LinphoneOnDTMFReceivedListener dtmfReceivedListener;
|
||||
public void setOnDTMFReceivedListener(LinphoneOnDTMFReceivedListener listener) {
|
||||
dtmfReceivedListener = listener;
|
||||
}
|
||||
|
||||
public void displayWarning(LinphoneCore lc, String message) {}
|
||||
public void authInfoRequested(LinphoneCore lc, String realm, String username) {}
|
||||
|
@ -921,6 +926,10 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
if (textReceivedListener != null)
|
||||
textReceivedListener.onTextReceived(from, message);
|
||||
}
|
||||
public void dtmfReceived(LinphoneCore lc, LinphoneCall call, int dtmf) {
|
||||
if (dtmfReceivedListener != null)
|
||||
dtmfReceivedListener.onDTMFReceived(call, dtmf);
|
||||
}
|
||||
|
||||
|
||||
public String getLastLcStatusMessage() {
|
||||
|
|
|
@ -62,5 +62,9 @@ public interface LinphoneSimpleListener {
|
|||
public static interface LinphoneOnTextReceivedListener extends LinphoneSimpleListener {
|
||||
void onTextReceived(LinphoneAddress from, String message);
|
||||
}
|
||||
|
||||
public static interface LinphoneOnDTMFReceivedListener extends LinphoneSimpleListener {
|
||||
void onDTMFReceived(LinphoneCall call, int dtmf);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 2b7af371f94040941cfae5d1364751eb8963a7f7
|
||||
Subproject commit 7e541dc76ac34aba16cbe2656493b3573c1d9afb
|
Loading…
Reference in a new issue