Changeset 3036 for pjproject/trunk/pjsip-apps/src/pocketpj/PocketPJDlg.cpp
- Timestamp:
- Dec 29, 2009 3:33:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pocketpj/PocketPJDlg.cpp
r2678 r3036 132 132 { 133 133 FIXED_INFO fi; 134 PIP_ADDR_STRING pDNS = NULL; 134 135 ULONG len = sizeof(fi); 135 136 CString err; … … 138 139 if (GetNetworkParams(&fi, &len) != ERROR_SUCCESS) { 139 140 err = _T("Info: Error querying network parameters. You must configure DNS server."); 140 } else if (fi.CurrentDnsServer == NULL) { 141 } else if (fi.CurrentDnsServer) { 142 pDNS = fi.CurrentDnsServer; 143 } else if (fi.DnsServerList.IpAddress.String[0] != 0) { 144 pDNS = &fi.DnsServerList; 145 } else { 141 146 err = _T("Info: DNS server not configured. You must configure DNS server."); 142 147 } … … 155 160 } 156 161 } else { 157 strcpy(nameserver, fi.CurrentDnsServer->IpAddress.String);162 strcpy(nameserver, pDNS->IpAddress.String); 158 163 cfg.nameserver_count = 1; 159 164 cfg.nameserver[0] = pj_str(nameserver); … … 169 174 170 175 pjsua_logging_config_default(&log_cfg); 176 log_cfg.msg_logging = PJ_TRUE; 171 177 log_cfg.log_filename = pj_str("\\PocketPJ.TXT"); 172 178 … … 214 220 } 215 221 216 if (m_Cfg.m_TCP) { 222 // Always instantiate TCP to support auto-switching to TCP when 223 // packet is larger than 1300 bytes. If TCP is disabled when 224 // no auto-switching will occur 225 if (1) { 217 226 // Create one TCP transport 218 227 PopUp_Modify(POPUP_REGISTRATION, POPUP_EL_TITLE3, "Adding TCP transport..");
Note: See TracChangeset
for help on using the changeset viewer.