Liblinphone库的简介和使用

liblinphone is a high level library to make a SIP phone.

This library includes ALL the features of linphone.

It is designed to be easy to use, directly from a user interface.
Its API is described in coreapi/linphonecore.h .
Making a SIP call is as easy as:
/* first create a LinphoneCore object: this initialize your virtual SIP phone*/
/* note: vtable is a structure that contains callbacks you must implement to get notified of various kind of information*/
LinphoneCore *lc=linphone_core_new(&vtable,".myconfig",NULL);
/* initiate an outgoing call*/
linphone_core_invite(lc,"sip:[email protected]");
...
/* periodically (ex: every 100ms) call this function to make the linphone engine to work:*/
linphone_core_iterate(lc);

/*terminate this call*/
linphone_core_terminate(lc,"sip:[email protected]");

There are various methods to create proxy(代理) settings, send instant messaging, get presence information...

This API is not yet stable and is subject to changes with new releases.

你可能感兴趣的:(linphone)