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