Ignore:
Timestamp:
Jan 14, 2007 12:39:45 AM (14 years ago)
Author:
bennylp
Message:

Continuing work on ticket #50: make explicit transport selection works for sending response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r864 r882  
    28922892    } 
    28932893 
     2894    /* Add UDP transport unless it's disabled. */ 
     2895    if (!app_config.no_udp) { 
     2896        pjsua_acc_id aid; 
     2897 
     2898        status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, 
     2899                                        &app_config.udp_cfg,  
     2900                                        &transport_id); 
     2901        if (status != PJ_SUCCESS) 
     2902            goto on_error; 
     2903 
     2904        /* Add local account */ 
     2905        pjsua_acc_add_local(transport_id, PJ_TRUE, &aid); 
     2906        //pjsua_acc_set_transport(aid, transport_id); 
     2907        pjsua_acc_set_online_status(current_acc, PJ_TRUE); 
     2908    } 
     2909 
    28942910    /* Add TCP transport unless it's disabled */ 
    28952911    if (!app_config.no_tcp) { 
     
    29062922    } 
    29072923 
    2908     /* Add UDP transport unless it's disabled. */ 
    2909     if (!app_config.no_udp) { 
    2910         status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, 
    2911                                         &app_config.udp_cfg,  
    2912                                         &transport_id); 
    2913         if (status != PJ_SUCCESS) 
    2914             goto on_error; 
    2915  
    2916         /* Add local account */ 
    2917         pjsua_acc_add_local(transport_id, PJ_TRUE, NULL); 
    2918         pjsua_acc_set_online_status(current_acc, PJ_TRUE); 
    2919     } 
    29202924 
    29212925#if defined(PJSIP_HAS_TLS_TRANSPORT) && PJSIP_HAS_TLS_TRANSPORT!=0 
Note: See TracChangeset for help on using the changeset viewer.