Integrate Linphone in own iOS project

2019-03-22 18:12发布

I am creating a voip call based project with Linphone and I have also successfully build and run the Linphone project and successfully run audio and video call. Now I am integrating Linphone in my own project and I am facing many problems and issues with this. I have used some following links for help but nowhere are complete instructions. Can anyone provide me the complete running steps for this-

http://shallwelearn.com/blog/build-linphone-for-iphone-and-ipad/

Integrate Linphone app to my iOS app

How to integrate Linphone into an existing project (SIP in IOS)

http://www.linphone.org/technical-corner/linphone/overview

How to integrate Linphone into an existing project (SIP in IOS)

http://lists.gnu.org/archive/html/linphone-developers/2014-09/msg00109.html

http://www.successmonkey.co.nz/blog/building-linphone-for-ios

1条回答
smile是对你的礼貌
2楼-- · 2019-03-22 18:53
  • Download Liblinphone iPhone SDK from the link: http://www.linphone.org/releases/ios/liblinphone-iphone-sdk-latest.zip OR from here, http://www.linphone.org/releases/ios and choose latest one from here.
  • Move two folders (include and lib) to your project folder
  • Add paths to these folders in your project Build settings - INCLUDE folder goes to headers and LIB folder goes to libraries.
  • In General tab in Linked frameworks add all files from LIB folder
  • Download/clone the repo https://github.com/BelledonneCommunications/linphone-iphone
  • Find 4 files: LinphoneManager.h/.m and Utils.h/.m , include them in your project folder and add them to the left pane to other class files also
  • Try to compile your project - xCode will spam you with errors - this is ok.
  • You need to inspect errors and just delete all file imports causing errors (Some Linphone Address book files/ some config store files and some helpers classes that you do not need for basic use in your project (because most likely you already implemented this features in your existing project))
  • Then compile again and inspect all errors in methods. Comment delete any problematic chunks of code (there will be about 10-15 of them).

LinphoneManager class already include many useful features - like good watch and use of linphone core with good logging and etc and etc, but not all of them (unfortunately).

查看更多
登录 后发表回答