How to Integrate Linphone into an Existing Project (Sip in iOS)

Integrate Linphone in own iOS project

  • Download Liblinphone iPhone SDK from the link: http://www.linphone.org/releases/ios choose latest one.
  • 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).

Linphone for iOS

I have followed this guide now, with all permissions to read/write for everyone, and it worked. Apparently I had permission problems, which got fixed that way. Also, you should get the latest git version, because there was a bug in the previous one that made the app crash on video calls. So to make it work, follow the guide, and make sure you have sufficient permissions on your entire 'linphone-iphone' folder. I hope this can help you, as it did for me.

How to set caller id or remote pary id linphone?

It seems like as of now linphone for ios is not providing such options.

So, i have set parameter as custom header using below code.

 linphone_call_params_add_custom_header(lcallParams,"X-HeaderName",["1001" UTF8String]);


Related Topics



Leave a reply



Submit