Changes between Version 8 and Version 9 of TLS_on_Symbian
- Timestamp:
- Nov 9, 2009 9:40:50 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TLS_on_Symbian
v8 v9 30 30 #define ENABLE_SIP_TLS 1 // default is 0 31 31 }}} 32 1. You have to set the SSL/TLS server name field accordingly, otherwise the connection will either fail with !KErrAbort/Interrupted or a warning dialog about different server name will be displayed: 33 {{{ 34 #define TLS_SRV_NAME "pjsip.org" 35 }}} 32 36 1. Update other related configurations {{{ua.cpp}}} such as SIP account, e.g: 33 37 {{{ … … 39 43 }}} 40 44 '''Note''' that without registering an account into a registrar, symbian_ua will not be able to be contacted (e.g: receive calls), as the secure socket backend ({{{CSecureSocket}}}) can only work as client. 45 1. If you don't use SIP account (for example for quick testing only), don't forget to add ";transport=tls" parameter to your destination URI, e.g.: 46 {{{ 47 #define SIP_DST_URI "<sip:100@pjsip.org;transport=tls>" 48 }}} 49 41 50 42 51 == Building your own application using SSL/TLS on Symbian == … … 53 62 pjsua_transport_config_default(&tcfg); 54 63 tcfg.port = SIP_PORT; 64 tcfg.tls_setting.server_name = pj_str(TLS_SRV_NAME); 55 65 status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcfg, &tid); 56 66 … … 64 74 65 75 == Troubleshooting == 76 77 === Error -7547 === 66 78 {{{ 67 79 08:10:30.853 pjsua_acc.c Registration sent … … 74 86 Symbian error -7547 is about set setOpt. 75 87 Check the source code, you have to define servername. 88 89 === Error KErrAborted / Interrupted === 90 91 You need to set the servername field. 92