[pjsip] how to begin TLS in wm5.0

Benny Prijono bennylp at pjsip.org
Sun Nov 4 07:42:34 EST 2007

showsunday wrote:
> hello ,benny
> i want use OpenSSL in WM5.0 project based on PJSIP.
>  i notice in PJSIP\pjsip\src\pjsip ,a file named 
> "sip_transport_tls_ossl.c"has implemented the OpenSSL ,so ,i add the 
> file in source files of pjsip_core_wince libraries project,then add 
> PJSIP\pjsip\include\pjsip\sip_transport_tls.h in header files of 
> pjsip_core_wince libraries project,complie successful.
> how can i do use it in my project?

Please see http://www.pjsip.org/using.htm#vs_req on how to enable 
TLS support during PJSIP build.

Then see http://www.pjsip.org/pjsua.htm#opt_tls on how to use TLS 
for pjsua. For the WinCE application, you'll need to look at pjsua 
source code (pjsua_app.c) to see how TLS settings should be used by 
the WinCE application. It's just a matter of filling up tls_setting 
structure in the pjsua_transport_config.

Then just add ";transport=tls" parameter to the URI of outgoing 


>                thank.

More information about the pjsip mailing list