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: https://svn.pjsip.org/repos/pjproject/trunk@2999 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip-apps/src/symbian_ua/ua.cpp b/pjsip-apps/src/symbian_ua/ua.cpp
index 706a41d..64e49ae 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 @@
 	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);