cordova-plugin-sip icon indicating copy to clipboard operation
cordova-plugin-sip copied to clipboard

Incoming Call Service Unavailable Error

Open fatihtastemur opened this issue 5 years ago • 3 comments

sipManager.events does not working on incoming calls.

fatihtastemur avatar Oct 07 '19 13:10 fatihtastemur

add mCore.start(); to LinphoneMiniManager

public LinphoneMiniManager(Context c) {
		mContext = c;
		Factory.instance().setDebugMode(true, "Linphone Mini");
        //mPrefs = LinphonePreferences.instance();


		try {

			String basePath = mContext.getFilesDir().getAbsolutePath();
			copyAssetsFromPackage(basePath);
			mCore = Factory.instance().createCore(basePath + "/.linphonerc", basePath + "/linphonerc", mContext);
			initCoreValues(basePath);

			setUserAgent();
			setFrontCamAsDefault();
			startIterate();
			mInstance = this;
			mCore.setNetworkReachable(true); // Let's assume it's true
			mCore.addListener(this);
			mCaptureView = new SurfaceView(mContext);
			mCore.start();


		} catch (IOException e) {
			Log.e(new Object[]{"Error initializing Linphone",e.getMessage()});

		}
	}

lanjinlin avatar Nov 07 '19 03:11 lanjinlin

Thank you for the Fix!

ionic cordova plugin remove cordova-plugin-sip
ionic cordova plugin add https://github.com/codextde/cordova-plugin-sip.git

danielehrhardt avatar Nov 13 '19 15:11 danielehrhardt

hi guys, I can't register on a port other than 5060 can anyone help me?

devjva avatar Dec 05 '19 14:12 devjva