Here is a detailed step-by-step tutorial on building Windows mobile applications with SipekSdk and pjsip.org from a scratch. The tutorial is a result of many posts on Sipek discussion group. Many thanks to all of you who shared experiences on porting Sipek to Mobile platform, special thanks to Jonathan and Gianfranco. The development environment tools used in tutorial:
Build pjsip Mobile WrapperThe Pjsip Mobile Wrapper is a "C" interface to pjsua layer of pjsip.org SIP stack just like the pjsipWrapper. The difference is that it's compiled for Windows Mobile Platform and this requires some changes in project as well in code. The result of compilation is a dynamic library pjsipDll_mobile.dll. Here are the steps to build pjsip sources with pjsipDll_mobile project:
Now add pjsipDll_mobile project:
If everything is ok then in <pjsipDll project>/lib folder you'll find pjsipDll_mobile.dll. This is a dynamic link library ready to use in windows mobile applications. Now we have windows mobile dynamic library that can be used in SipekSdk based mobile application. Build Mobile version of SipekSdkThis step is trivial. The only difference here is that you need to define conditional compilation symbol "MOBILE" in the project properties. This way SipekSdk loads pjsipDll_mobile.dll library instead of standard pjsipDll.dll. Use SipekSdk mobile project (sipeksdk_mobile.vcproj) where the "MOBILE" symbol is defined already. The sources are the same - no windowx mobile specifics in sources. You can download SipekSdk sources and project files at SVN: http://sipeksdk.googlecode.com/svn/trunk/SipekSdk Windows Mobile ApplicationThis tutorial focuses on Windows Mobile 6 SDK (and Windows Mobile 6 Professional Emulator). It should be the same for other targets. If not, please let me know. Ok, let's rock now:
Conclusion Above are the basic steps only. For details please download the complete sources and project from example project at: http://sipekapps.googlecode.com/svn/trunk/MobileExample See screenshots of registration and calling forms:
|


Info: Problems with poor sound quality (audio breakups) on HTC Touch device with Windows Mobile 6 due to high CPU load. Set the clock rate to 8000. In pjsipDll_mobile.cpp:
app_config.media_cfg.clock_rate = 8000;