linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] addCustomHeader("key", "value") is not working whe


From: Dharmesh Patel
Subject: [Linphone-developers] addCustomHeader("key", "value") is not working when send reinvite for video call in Android.
Date: Wed, 28 Sep 2022 07:07:50 +0000

I am trying to add a custom header in the video call re-invite but at receiver side header is not working(Android app, linphone sdk 4.2).

//File name CallManager

public boolean reinviteWithVideo(Context ctx) {
        Core lc = LinphoneManager.getLc();
        Call lCall = lc.getCurrentCall();
        if (lCall == null) {
            Log.e("Trying to reinviteWithVideo while not in call: doing nothing");
            return false;
        }
       // I am trying to add this header but this is not working.
        CallParams params = lc.createCallParams(lCall);
        params.addCustomHeader("ServerIp",new PrefManager(ctx).getSipDomain());

        if (params.videoEnabled()) return false;
        getBandwidthManager().updateWithProfileSettings(params);

        // Abort if not enough bandwidth...
        if (!params.videoEnabled()) {
            return false;
        }
        lc.updateCall(lCall, params);
        return true;
    }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]