- 下载
https://c-ares.haxx.se/
http://ftp.twaren.net/Unix/NonGNU//osip/
http://ftp.yzu.edu.tw/nongnu/exosip/
- 依次解压编译(注意顺序,exosip要在最后编译)
tar xvf 对应压缩包名
cd 解压出来的文件夹
./configure
make
sudo make install
- 测试
1 #include <iostream>
2 #include <eXosip2/eXosip.h>
3 #include <netinet/in.h>
4 #include <string>
5 using namespace std;
6
7 int main()
8 {
9 eXosip_t *sip = eXosip_malloc();
10 if(eXosip_init(sip) == OSIP_SUCCESS)
11 {
12 cout << "eXosip init ok" << endl;
13 }
14 else
15 {
16 cout << "exosip init fail" << endl;
17 }
18 int ret &