diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-11-09 09:52:23 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-11-09 09:52:23 +0000 |
commit | 428df93dd836dc597c7ef9b44f84a7701ad4c482 (patch) | |
tree | ff26beeda3c00ac9e2475fac7e0748804a13b747 /pjsip-apps/src | |
parent | d74a1707948d51e98826aa4507ff1dd1a6c02601 (diff) |
More #957 (TLS)
- added missing servername setup in symbian_ua. Without this, TLS connection will fail with KErrAborted/Interrupted on some devices (it may succeed on some FP1 devices but not others)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2999 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src')
-rw-r--r-- | pjsip-apps/src/symbian_ua/ua.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pjsip-apps/src/symbian_ua/ua.cpp b/pjsip-apps/src/symbian_ua/ua.cpp index 706a41d2..64e49aee 100644 --- a/pjsip-apps/src/symbian_ua/ua.cpp +++ b/pjsip-apps/src/symbian_ua/ua.cpp @@ -58,6 +58,9 @@ #define ENABLE_SIP_TCP 0 // experimental #define ENABLE_SIP_TLS 0 // experimental +#define TLS_SRV_NAME "pjsip.org" // TLS servername (required for + // TLS transport) + // // Configure nameserver if DNS SRV is to be used with both SIP // or STUN (for STUN see other settings below) @@ -431,6 +434,7 @@ static pj_status_t app_startup() tcfg.qos_params.dscp_val = SIP_QOS_DSCP; tcfg.tls_setting.qos_params = tcfg.qos_params; } + tcfg.tls_setting.server_name = pj_str(TLS_SRV_NAME); status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcfg, &tid); if (status != PJ_SUCCESS) { pjsua_perror(THIS_FILE, "Error creating TLS transport", status); |