From version < 12.4 >
edited by SandrineAvakian
on 2017/02/22 15:05
To version < 13.1 >
edited by Admin Admin
on 2017/02/22 16:14
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.SandrineAvakian
1 +xwiki:XWiki.BenjaminReis
Content
... ... @@ -1,11 +2,66 @@
1 -
2 2  (% class="row" %)
3 3  (((
4 4  (% class="col-xs-12 col-sm-8" %)
5 5  (((
6 -
7 7  For basics, you can take a look at the [[README>>url:https://github.com/BelledonneCommunications/linphone-iphone/blob/master/README.md]].
8 8  
7 += How to use liblinphone on IOS =
8 +
9 +In order to use liblinphone in your IOS app you will need our SDK here is how to get it.
10 +
11 +== Using a pre-compiled SDK ==
12 +
13 +If you do not need to build the SDK manually, you can download a pre-compiled SDK [[here>>http://www.linphone.org/docs/liblinphone/modules.html]].
14 +
15 +The SDKs available correspond to our AppStore releases and liblinphone-iphone-sdk-latest.zip represents the SDK of our most recent release.
16 +
17 +Once the SDK is downloaded you can unzip it and put it in the root directory of your XCode Project.
18 +
19 +== Building the SDK manually ==
20 +
21 +Go to your linphone-iphone repository and run the following commands to update your submodules and build the SDK :
22 +
23 +{{code}}
24 +git submodule update --recursive --init
25 +./prepare.py -c
26 +./prepare.py
27 +make
28 +{{/code}}
29 +
30 +The built of the SDK creates a folder named liblinphone-sdk with the binaries in your project's root directory.
31 +
32 +== Using the SDK ==
33 +
34 +You can find the liblinphone API documentation of liblinphone [[here>>http://www.linphone.org/docs/liblinphone/modules.html]].
35 +
36 += Handling liblinphone log =
37 +
38 +In order to see liblinphone logs in your IOS app (for example in your Xcode console) follow these steps :
39 +
40 +Put in your code at the launching of the app :
41 +
42 +{{code language="Objective-C"}}
43 +linphone_core_enable_logs_with_cb(your_log_handler);
44 +{{/code}}
45 +
46 +This will make the liblinphone logs to call your_log_handler and so be processes as a log from your app.
47 +
48 +You can set the liblinphone log level by using the following functions :
49 +
50 +{{code language="C"}}
51 +/**
52 + * Define the minimum level for logging.
53 + *
54 + * @param loglevel Minimum level for logging messages.
55 +**/
56 +LINPHONE_PUBLIC void linphone_core_set_log_level(OrtpLogLevel loglevel);
57 +
58 +/**
59 + * Activate all log level greater or equal than specified level argument.
60 +**/
61 +ORTP_PUBLIC void ortp_set_log_level(const char *domain, OrtpLogLevel level);
62 +{{/code}}
63 +
9 9  = Full ipv6 support =
10 10  
11 11  {{info}}
... ... @@ -52,7 +52,6 @@
52 52  == CallKit Integration ==
53 53  
54 54  * Since IOS 10, apple provides the CallKit framework. This framework is used to integrate VoIP applications in the native UI of the device. It allows, for instance, to display incoming calls and answer them when the application is killed or in background, or when the device is locked.
55 -* CallKit is not impleted in Linphone, but it is possible to add it in an application based on Liblinphone.
56 56  * In order to implement CallKit in an application based on Liblinphone, follow these steps :
57 57  ** Add the CallKit framework into your application
58 58  ** Implement the CXProviderDelegate protocol within your ApplicationDelegate
... ... @@ -68,8 +68,8 @@
68 68  {{/code}}
69 69  
70 70  * A sample code providing a simple use of CallKit is available on the dev_callkit branch of the linphone-iphone git repository : git://git.linphone.org/linphone-iphone.git
71 -
72 72  )))
126 +
73 73  (% class="col-xs-12 col-sm-4" %)
74 74  (((
75 75  {{box title="**Contents**"}}