您的位置:首页 > 其它

Liblinphone库的简介和使用

2010-07-30 13:26 337 查看
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:alice@example.net");
...
/* 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:alice@example.net");
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: