Start with PJSIP on windows

 To overcome the project of HD video conferencing systerm,I should learn to use the PJSIP.

I should make a client with the pjsip in the end.Now a week passed by,here is the summary of how to start with pjsip for you own project on windows.

About PJSIP:

Here is the introduce of the pjsip in detail,all you want is here.

http://www.pjsip.org/

For its open source,learn all you need from here.

Now let's start our work!

Step 1:Choose develop software version

Recommended use VS2008.

And you can also choose VS2005 or VS2010,but not VS2010.

Step 2:Build the project

http://trac.pjsip.org/repos/wiki/Getting-Started/Windows

Step 3:Add the library to you own project

1 Add include files

project-properties-c/c++-general-Additional Include directories

eg:

E:PJSIP estpjproject-2.2.1pjproject-2.2.1pjsipinclude

2 Add lib files

project-properties-linker-general-Additional Lib directories

eg:E:PJSIP estpjproject-2.2.1pjproject-2.2.1pjsiplib

NOTICE:Do not forget these libs like IPHlpApi.lib wsock32.lib ws2_32.lib ole32.lib dsound.lib winmm.lib

3 Add lib name

project-properties-linker-input-Additional Dependencies

eg:pjlib-i386-Win32-vc8-Debug.lib

Now you can build you own project with pjsip libs;

Here some examples and tests:

http://www.pjsip.org/docs/latest/pjlib/docs/html/pages.htm

simple example:

 1 #include<pj/log.h>
 2 int main()
 3 {
 4     pj_status_t rc;
 5     rc=pj_init();
 6     PJ_LOG(3,("main.c","Hello world!"));
 7     getchar();
 8     return 0;
 9 
10 }

related resource:

pjlib:http://www.pjsip.org/docs/latest/pjlib/docs/html/index.htm

wiki:http://trac.pjsip.org/repos/wiki

preferences: http://trac.pjsip.org/repos/prefs

pjsip:http://www.pjsip.org/docs/latest/pjsip/docs/html/index.htm

原文地址:https://www.cnblogs.com/heat-man/p/pjsip.html