pjsip的編譯及簡單使用

2021-09-30 10:59:30 字數 721 閱讀 5458

2.編譯

目錄下的readme.txt檔案中有編譯說明,關於windows下的注意點如下:

building win32 target with microsoft visual studio

generally we can just do these steps:

1. visual studio 6: open pjproject.dsw workspace,

2. visual studio 2005: open pjproject-vs8.sln solution,

3. create an empty pjlib/include/pj/config_site.h, and

新建乙個空檔案pjlib/include/pj/config_site.h後,編譯pjsua工程出現以下錯誤:

1>link : fatal error lnk1104: cannot open file 'dsound.lib'

3.測試

似乎不能在一台機子上開啟兩個客戶端,所以借助虛擬機器。

分別在在p1、p2上執行程式,根據提示資訊,撥打**過程如下:

1).在p1中輸入"m",接著輸入sip:192.168.9.81(p2的ip)

2).p2中會列印出接聽提示資訊,輸入"a"接聽,再輸入200作為應答

3).現在連線建立成功了,p2輸入"h"掛**

截個圖:

4.用wireshark截獲的sip命令

pjsip的編譯及簡單使用

2.編譯 目錄下的readme.txt檔案中有編譯說明,關於windows下的注意點如下 building win32 target with microsoft visual studio 新建乙個空檔案pjlib include pj config site.h後,編譯pjsua工程出現以下錯誤...

SDL編譯及簡單使用

型別 sdl windwoevent 視窗事件 sdl keyboardevent 鍵盤事件 sdl mousemotionevent 滑鼠事件 事件處理 sdl pollevent 輪訓 sdl waitevent 等待事件,超時機制 推薦使用 包含sdl標頭檔案 include 初始化sdl s...

CxImage的編譯及簡單使用舉例

cximage的編譯及簡單使用舉例 2 解壓縮後,以管理員身份開啟cximagefull vc10.sln工程,在編譯之前先將每個工程屬性的character set由原先的use unicode character set改為use multi bytecharacter set,首先編譯jasp...