Changeset 2781 for pjproject/trunk/pjsip-apps/src/symbian_ua/ua.cpp
- Timestamp:
- Jun 22, 2009 2:06:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/symbian_ua/ua.cpp
r2506 r2781 52 52 //#define SIP_PROXY "<sip:192.168.0.8;lr>" 53 53 54 // 55 // Set to 1 if TCP is desired (experimental) 56 // 57 #define ENABLE_SIP_TCP 0 54 58 55 59 // … … 379 383 status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, &tcfg, &tid); 380 384 if (status != PJ_SUCCESS) { 381 pjsua_perror(THIS_FILE, "Error creating transport", status);385 pjsua_perror(THIS_FILE, "Error creating UDP transport", status); 382 386 pjsua_destroy(); 383 387 return status; 384 388 } 385 389 390 /* Add TCP transport */ 391 #if ENABLE_SIP_TCP 392 pjsua_transport_config_default(&tcfg); 393 tcfg.port = SIP_PORT; 394 status = pjsua_transport_create(PJSIP_TRANSPORT_TCP, &tcfg, &tid); 395 if (status != PJ_SUCCESS) { 396 pjsua_perror(THIS_FILE, "Error creating TCP transport", status); 397 pjsua_destroy(); 398 return status; 399 } 400 #endif 401 386 402 /* Add account for the transport */ 387 403 pjsua_acc_add_local(tid, PJ_TRUE, &g_acc_id);
Note: See TracChangeset
for help on using the changeset viewer.