Changes between Version 8 and Version 9 of TLS_on_Symbian


Ignore:
Timestamp:
Nov 9, 2009 9:40:50 AM (14 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TLS_on_Symbian

    v8 v9  
    3030#define ENABLE_SIP_TLS  1 // default is 0 
    3131}}} 
     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}}} 
    3236 1. Update other related configurations {{{ua.cpp}}} such as SIP account, e.g: 
    3337{{{ 
     
    3943}}} 
    4044'''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 
    4150 
    4251== Building your own application using SSL/TLS on Symbian == 
     
    5362pjsua_transport_config_default(&tcfg); 
    5463tcfg.port = SIP_PORT; 
     64tcfg.tls_setting.server_name = pj_str(TLS_SRV_NAME); 
    5565status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcfg, &tid); 
    5666 
     
    6474 
    6575== Troubleshooting == 
     76 
     77=== Error -7547 === 
    6678{{{ 
    6779 08:10:30.853    pjsua_acc.c  Registration sent 
     
    7486Symbian error -7547 is about set setOpt. 
    7587Check the source code, you have to define servername. 
     88 
     89=== Error KErrAborted / Interrupted === 
     90 
     91You need to set the servername field. 
     92