sezerkorkmaz / cordova-plugin-sip

Cordova Plugin For SIP Calls (IOS, Android) (Linphone Framework)
GNU General Public License v3.0
31 stars 46 forks source link

Incoming Call Service Unavailable Error #14

Open fatihtastemur opened 5 years ago

fatihtastemur commented 5 years ago

sipManager.events does not working on incoming calls.

lanjinlin commented 5 years ago

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()});

        }
    }
danielehrhardt commented 5 years ago

Thank you for the Fix!

ionic cordova plugin remove cordova-plugin-sip
ionic cordova plugin add https://github.com/codextde/cordova-plugin-sip.git
devjva commented 4 years ago

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