Ignore:
Timestamp:
Jun 25, 2009 12:26:15 PM (15 years ago)
Author:
bennylp
Message:

Ticket #759: Problem with TCP transport on Symbian

  • backported changes in #758
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.0/pjsip-apps/src/symbian_ua/ua.cpp

    r2482 r2804  
    5050//#define SIP_PROXY     "<sip:192.168.0.8;lr>" 
    5151 
     52// 
     53// Set to 1 if TCP is desired (experimental) 
     54// 
     55#define ENABLE_SIP_TCP  0 
    5256 
    5357// 
     
    380384    status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, &tcfg, &tid); 
    381385    if (status != PJ_SUCCESS) { 
    382             pjsua_perror(THIS_FILE, "Error creating transport", status); 
     386            pjsua_perror(THIS_FILE, "Error creating UDP transport", status); 
    383387            pjsua_destroy(); 
    384388            return status; 
    385389    } 
    386390 
     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     
    387403    /* Add account for the transport */ 
    388404    pjsua_acc_add_local(tid, PJ_TRUE, &g_acc_id); 
Note: See TracChangeset for help on using the changeset viewer.