- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjsip-apps/src/samples/pjsua2_demo.cpp
r4790 r5513 126 126 AccountConfig acc_cfg; 127 127 acc_cfg.idUri = "sip:test1@pjsip.org"; 128 acc_cfg.regConfig.registrarUri = "sip: pjsip.org";128 acc_cfg.regConfig.registrarUri = "sip:sip.pjsip.org"; 129 129 acc_cfg.sipConfig.authCreds.push_back( AuthCredInfo("digest", "*", 130 130 "test1", 0, "test1") ); … … 250 250 251 251 accCfg.idUri = "\"Just Test\" <sip:test@pjsip.org>"; 252 accCfg.regConfig.registrarUri = "sip: pjsip.org";252 accCfg.regConfig.registrarUri = "sip:sip.pjsip.org"; 253 253 SipHeader h; 254 254 h.hName = "X-Header"; … … 292 292 } 293 293 294 295 static void mainProg4(Endpoint &ep) throw(Error) 296 { 297 // Init library 298 EpConfig ep_cfg; 299 ep.libInit( ep_cfg ); 300 301 // Create transport 302 TransportConfig tcfg; 303 tcfg.port = 5060; 304 ep.transportCreate(PJSIP_TRANSPORT_UDP, tcfg); 305 ep.transportCreate(PJSIP_TRANSPORT_TCP, tcfg); 306 307 // Add account 308 AccountConfig acc_cfg; 309 acc_cfg.idUri = "sip:localhost"; 310 std::auto_ptr<MyAccount> acc(new MyAccount); 311 acc->create(acc_cfg); 312 313 // Start library 314 ep.libStart(); 315 std::cout << "*** PJSUA2 STARTED ***" << std::endl; 316 317 // Just wait for ENTER key 318 std::cout << "Press ENTER to quit..." << std::endl; 319 std::cin.get(); 320 } 321 322 294 323 int main() 295 324 { … … 300 329 ep.libCreate(); 301 330 302 mainProg 3(ep);331 mainProg4(ep); 303 332 ret = PJ_SUCCESS; 304 333 } catch (Error & err) {
Note: See TracChangeset
for help on using the changeset viewer.