Hope you have installed the pod for linphone with version 4.2. If not then please have a look at this.
source "https://gitlab.linphone.org/BC/public/podspec.git"
source "https://github.com/CocoaPods/Specs.git"
def basic_pods
if ENV['PODFILE_PATH'].nil?
pod 'linphone-sdk', '4.2'
else
pod 'linphone-sdk', :path => ENV['PODFILE_PATH'] # loacl sdk
end
end
Step 1-> You need to add a bridge file and import the below files in that.
#include "linphone/lpconfig.h"
#include "linphone/linphonecore.h"
#include "linphone/linphonecore_utils.h"
Step 2-> After that create 1 .h
and .m
file and in that copy all the call related functionality from the linphone project like outgoing call, incoming call and so on.
Step 3-> Create the object which you have entered the name of .h
file.
Step4-> Call that functionality with the help of your object variable.