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.
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.
相关文章推荐
- MSMQ简介及使用
- C++单元测试工具CppUnit使用简介
- Python中encode()方法的使用简介
- 简介JavaScript中的setHours()方法的使用
- 使用VBA从海量Excel文件中模糊获取数据并生成新表(附实例) - (一)VBA简介
- Cunti 使用简介
- NetworkComms网络通信框架配套CodeSmith模板使用简介
- Spark简介及其在ubuntu下的安装使用
- UIWebView使用简介
- kafka入门:简介、使用场景、设计原理、主要配置及集群搭建
- CocoaPods的简介及安装和使用
- libcurl使用简介
- Cmake简介和简单使用方法
- BTrace使用简介
- Android框架 加载图片 库 Picasso 的使用简介
- iOS NSUserDefaults 简介,使用 NSUserDefaults 存储自定义对象
- curl工具使用简介
- 简介JavaScript中的setHours()方法的使用
- CentOS 7 firewalld使用简介
- 【原创翻译】COM入门简介 -- 什么是COM , 怎样使用它 (5)