diff --git a/res/raw/incoming_chat.wav b/res/raw/incoming_chat.wav new file mode 100644 index 000000000..99a2e7dfc Binary files /dev/null and b/res/raw/incoming_chat.wav differ diff --git a/src/org/linphone/LinphoneManager.java b/src/org/linphone/LinphoneManager.java index c3cc451e7..4f4ee6996 100644 --- a/src/org/linphone/LinphoneManager.java +++ b/src/org/linphone/LinphoneManager.java @@ -71,6 +71,7 @@ import org.linphone.core.PayloadType; import org.linphone.core.PresenceActivityType; import org.linphone.core.PresenceModel; import org.linphone.core.PublishState; +import org.linphone.core.Reason; import org.linphone.core.SubscriptionState; import org.linphone.mediastream.Log; import org.linphone.mediastream.Version; @@ -183,6 +184,7 @@ public class LinphoneManager implements LinphoneCoreListener { mRingbackSoundFile = basePath + "/ringback.wav"; mPauseSoundFile = basePath + "/toy_mono.wav"; mChatDatabaseFile = basePath + "/linphone-history.db"; + mErrorToneFile = basePath + "/error_tone.wav"; mPrefs = LinphonePreferences.instance(); mAudioManager = ((AudioManager) c.getSystemService(Context.AUDIO_SERVICE)); @@ -203,6 +205,7 @@ public class LinphoneManager implements LinphoneCoreListener { private final String mRingbackSoundFile; private final String mPauseSoundFile; private final String mChatDatabaseFile; + private final String mErrorToneFile; private Timer mTimer; @@ -634,6 +637,7 @@ public class LinphoneManager implements LinphoneCoreListener { mLc.setRootCA(mLinphoneRootCaFile); mLc.setPlayFile(mPauseSoundFile); mLc.setChatDatabasePath(mChatDatabaseFile); + //mLc.setCallErrorTone(Reason.NotFound, mErrorToneFile); int availableCores = Runtime.getRuntime().availableProcessors(); Log.w("MediaStreamer : " + availableCores + " cores detected and configured"); @@ -662,6 +666,7 @@ public class LinphoneManager implements LinphoneCoreListener { copyIfNotExist(R.raw.oldphone_mono, mRingSoundFile); copyIfNotExist(R.raw.ringback, mRingbackSoundFile); copyIfNotExist(R.raw.toy_mono, mPauseSoundFile); + copyIfNotExist(R.raw.incoming_chat, mErrorToneFile); copyIfNotExist(R.raw.linphonerc_default, mLinphoneConfigFile); copyFromPackage(R.raw.linphonerc_factory, new File(mLinphoneFactoryConfigFile).getName()); copyIfNotExist(R.raw.lpconfig, mLPConfigXsd); diff --git a/submodules/linphone b/submodules/linphone index 972659a1f..aad2df16d 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit 972659a1f903af87bb35a5a6d937e2b5b58b3cd7 +Subproject commit aad2df16d1945abd71bef720d079515383cf88d4