diff --git a/res/raw/cpim_grammar b/res/raw/cpim_grammar new file mode 100644 index 000000000..6f8b36d95 Binary files /dev/null and b/res/raw/cpim_grammar differ diff --git a/res/raw/vcard_grammar b/res/raw/vcard_grammar new file mode 100644 index 000000000..48ceb8e37 Binary files /dev/null and b/res/raw/vcard_grammar differ diff --git a/src/android/org/linphone/LinphoneManager.java b/src/android/org/linphone/LinphoneManager.java index 1ad4f8569..dbebb6fcf 100644 --- a/src/android/org/linphone/LinphoneManager.java +++ b/src/android/org/linphone/LinphoneManager.java @@ -135,9 +135,7 @@ import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.sql.Timestamp; -import java.util.ArrayList; import java.util.Date; -import java.util.List; import java.util.Timer; import java.util.TimerTask; @@ -206,16 +204,11 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou mLPConfigXsd = basePath + "/lpconfig.xsd"; mLinphoneFactoryConfigFile = basePath + "/linphonerc"; mConfigFile = basePath + "/.linphonerc"; - mLinphoneRootCaFile = basePath + "/rootca.pem"; mDynamicConfigFile = basePath + "/assistant_create.rc"; - mRingSoundFile = basePath + "/ringtone.mkv"; - mRingbackSoundFile = basePath + "/ringback.wav"; - mPauseSoundFile = basePath + "/hold.mkv"; mChatDatabaseFile = basePath + "/linphone-history.db"; mCallLogDatabaseFile = basePath + "/linphone-log-history.db"; mFriendsDatabaseFile = basePath + "/linphone-friends.db"; - mErrorToneFile = basePath + "/error.wav"; - mUserCertificatePath = basePath; + mRingSoundFile = basePath + "/ringtone.mkv"; mPrefs = LinphonePreferences.instance(); mAudioManager = ((AudioManager) c.getSystemService(Context.AUDIO_SERVICE)); @@ -232,17 +225,12 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou /** Called when the activity is first created. */ private final String mLPConfigXsd; private final String mLinphoneFactoryConfigFile; - private final String mLinphoneRootCaFile; private final String mDynamicConfigFile; public final String mConfigFile; - private final String mRingSoundFile; - private final String mRingbackSoundFile; - private final String mPauseSoundFile; private final String mChatDatabaseFile; + private final String mRingSoundFile; private final String mCallLogDatabaseFile; private final String mFriendsDatabaseFile; - private final String mErrorToneFile; - private final String mUserCertificatePath; private byte[] mUploadingImage; private Timer mTimer; @@ -701,13 +689,10 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou Log.e(e, "cannot get version name"); } - mLc.setRingback(mRingbackSoundFile); - mLc.setRootCa(mLinphoneRootCaFile); - mLc.setPlayFile(mPauseSoundFile); + mLc.setChatDatabasePath(mChatDatabaseFile); mLc.setCallLogsDatabasePath(mCallLogDatabaseFile); mLc.setFriendsDatabasePath(mFriendsDatabaseFile); - mLc.setUserCertificatesPath(mUserCertificatePath); //mLc.setCallErrorTone(Reason.NotFound, mErrorToneFile); enableDeviceRingtone(mPrefs.isDeviceRingtoneEnabled()); @@ -791,14 +776,9 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou } private void copyAssetsFromPackage() throws IOException { - copyIfNotExist(R.raw.notes_of_the_optimistic, mRingSoundFile); - copyIfNotExist(R.raw.ringback, mRingbackSoundFile); - copyIfNotExist(R.raw.hold, mPauseSoundFile); - copyIfNotExist(R.raw.incoming_chat, mErrorToneFile); copyIfNotExist(R.raw.linphonerc_default, mConfigFile); copyFromPackage(R.raw.linphonerc_factory, new File(mLinphoneFactoryConfigFile).getName()); copyIfNotExist(R.raw.lpconfig, mLPConfigXsd); - copyFromPackage(R.raw.rootca, new File(mLinphoneRootCaFile).getName()); copyFromPackage(R.raw.assistant_create, new File(mDynamicConfigFile).getName()); } diff --git a/submodules/belcard b/submodules/belcard index b9e1951be..34e07ea97 160000 --- a/submodules/belcard +++ b/submodules/belcard @@ -1 +1 @@ -Subproject commit b9e1951be4575c62e326d761a7f7c79c5cce9cb9 +Subproject commit 34e07ea973ab9565fb5b063fa17c772c7c48d5c5 diff --git a/submodules/belr b/submodules/belr index 9364d69fb..6dc5d2f9d 160000 --- a/submodules/belr +++ b/submodules/belr @@ -1 +1 @@ -Subproject commit 9364d69fb16b058066a129f993558d764a6836cf +Subproject commit 6dc5d2f9d37ba094cf397135c16b47375261be83 diff --git a/submodules/linphone b/submodules/linphone index e35b483fa..f369a7c87 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit e35b483fa1a44dfdebd5ac1061144ac1479e0f9a +Subproject commit f369a7c87dab07c0d51becd377f574ef22811af2