Ignore:
Timestamp:
Dec 5, 2007 4:30:04 AM (16 years ago)
Author:
bennylp
Message:

Reverted accidental checkin of pjsua_app.c and sample_debug.c

File:
1 edited

Legend:

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

    r1618 r1620  
    9191static pjsua_call_id    current_call = PJSUA_INVALID_ID; 
    9292static pj_str_t         uri_arg; 
    93  
    94 static pjsua_transport_id   tls_id; 
    9593 
    9694#ifdef STEREO_DEMO 
     
    570568        case OPT_NO_UDP: /* no-udp */ 
    571569            if (cfg->no_tcp) { 
    572               //PJ_LOG(1,(THIS_FILE,"Error: cannot disable both TCP and UDP")); 
    573               //return PJ_EINVAL; 
     570              PJ_LOG(1,(THIS_FILE,"Error: can not disable both TCP and UDP")); 
     571              return PJ_EINVAL; 
    574572            } 
    575573 
     
    583581        case OPT_NO_TCP: /* no-tcp */ 
    584582            if (cfg->no_udp) { 
    585               //PJ_LOG(1,(THIS_FILE,"Error: cannot disable both TCP and UDP")); 
    586               //return PJ_EINVAL; 
     583              PJ_LOG(1,(THIS_FILE,"Error: can not disable both TCP and UDP")); 
     584              return PJ_EINVAL; 
    587585            } 
    588586 
     
    22192217 
    22202218    status = pjsua_acc_create_request(current_acc, &method, dst_uri, &tdata); 
    2221     if (status == PJ_SUCCESS) { 
    2222         status = pjsip_endpt_send_request(endpt, tdata, -1, NULL, NULL); 
    2223     } 
    2224  
     2219 
     2220    status = pjsip_endpt_send_request(endpt, tdata, -1, NULL, NULL); 
    22252221    if (status != PJ_SUCCESS) { 
    2226         pjsua_perror(THIS_FILE, "Unable to create/send request", status); 
     2222        pjsua_perror(THIS_FILE, "Unable to send request", status); 
    22272223        return; 
    22282224    } 
    2229  
    22302225} 
    22312226 
     
    34303425    } 
    34313426 
    3432     /* Add IPv6 UDP */ 
    3433 #if 0 && defined(PJ_HAS_IPV6) && PJ_HAS_IPV6 
    3434     if (1) { 
    3435         pjsua_acc_id aid; 
    3436  
    3437         status = pjsua_transport_create(PJSIP_TRANSPORT_UDP6, 
    3438                                         &app_config.udp_cfg,  
    3439                                         &transport_id); 
    3440         if (status != PJ_SUCCESS) 
    3441             goto on_error; 
    3442  
    3443         /* Add local account */ 
    3444         pjsua_acc_add_local(transport_id, PJ_TRUE, &aid); 
    3445         //pjsua_acc_set_transport(aid, transport_id); 
    3446         pjsua_acc_set_online_status(current_acc, PJ_TRUE); 
    3447  
    3448         if (app_config.udp_cfg.port == 0) { 
    3449             pjsua_transport_info ti; 
    3450             pj_sockaddr_in *a; 
    3451  
    3452             pjsua_transport_get_info(transport_id, &ti); 
    3453             a = (pj_sockaddr_in*)&ti.local_addr; 
    3454  
    3455             tcp_cfg.port = pj_ntohs(a->sin_port); 
    3456         } 
    3457     } 
    3458 #endif  /* PJ_HAS_IPV6 */ 
    3459  
    34603427    /* Add TCP transport unless it's disabled */ 
    34613428    if (!app_config.no_tcp) { 
     
    34883455            goto on_error; 
    34893456         
    3490         tls_id = transport_id; 
    3491  
    34923457        /* Add local account */ 
    34933458        pjsua_acc_add_local(transport_id, PJ_FALSE, &acc_id); 
     
    35913556        app_config.pool = NULL; 
    35923557    } 
    3593  
    3594     pjsua_transport_close(tls_id, 0); 
    35953558 
    35963559    status = pjsua_destroy(); 
Note: See TracChangeset for help on using the changeset viewer.