Ignore:
Timestamp:
Jan 7, 2006 6:44:25 PM (18 years ago)
Author:
bennylp
Message:

Added test functions for UAC transaction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_util.c

    r107 r109  
    130130    } 
    131131 
    132     PJ_LOG(4,(THIS_FILE, "Request %s (CSeq=%d/%.*s) created.",  
    133                          tdata->obj_name,  
    134                          param_cseq->cseq,  
    135                          param_cseq->method.name.slen, 
    136                          param_cseq->method.name.ptr)); 
     132    PJ_LOG(5,(THIS_FILE, "%s created.",  
     133                         pjsip_tx_data_get_info(tdata))); 
    137134 
    138135} 
     
    162159    pj_status_t status; 
    163160    PJ_USE_EXCEPTION; 
    164  
    165     PJ_LOG(5,(THIS_FILE, "Entering pjsip_endpt_create_request()")); 
    166161 
    167162    status = pjsip_endpt_create_tdata(endpt, &tdata); 
     
    272267    pj_status_t status; 
    273268    PJ_USE_EXCEPTION; 
    274  
    275     PJ_LOG(5,(THIS_FILE, "Entering pjsip_endpt_create_request_from_hdr()")); 
    276269 
    277270    /* Check arguments. */ 
     
    344337    pj_assert(req_msg->type == PJSIP_REQUEST_MSG); 
    345338 
    346     /* Log this action. */ 
    347     PJ_LOG(5,(THIS_FILE, "pjsip_endpt_create_response(rdata=%p, code=%d)",  
    348                          rdata, st_code)); 
    349  
    350339    /* Create a new transmit buffer. */ 
    351340    status = pjsip_endpt_create_tdata( endpt, &tdata); 
     
    409398    /* All done. */ 
    410399    *p_tdata = tdata; 
     400 
     401    PJ_LOG(5,(THIS_FILE, "%s created", pjsip_tx_data_get_info(tdata))); 
    411402    return PJ_SUCCESS; 
    412403} 
     
    432423    pjsip_to_hdr *to; 
    433424    pj_status_t status; 
    434  
    435     /* Log this action. */ 
    436     PJ_LOG(5,(THIS_FILE, "pjsip_endpt_create_ack(rdata=%p)", rdata)); 
    437425 
    438426    /* rdata must be a final response. */ 
     
    525513    const pjsip_hdr *hdr; 
    526514    pj_status_t status; 
    527  
    528     /* Log this action. */ 
    529     PJ_LOG(5,(THIS_FILE, "pjsip_endpt_create_cancel(tdata=%p)", req_tdata)); 
    530515 
    531516    /* The transmit buffer must INVITE request. */ 
     
    703688        dest_info->type =  
    704689            pjsip_transport_get_type_from_name(&url->transport_param); 
    705 #if PJ_HAS_TCP 
    706         if (dest_info->type == PJSIP_TRANSPORT_TCP ||  
    707             dest_info->type == PJSIP_TRANSPORT_SCTP)  
    708         { 
    709             dest_info->flag |= PJSIP_TRANSPORT_RELIABLE; 
    710         } 
    711 #endif 
     690        dest_info->flag =  
     691            pjsip_transport_get_flag_from_type(dest_info->type); 
    712692    } else { 
    713693        pj_assert(!"Unsupported URI scheme!"); 
Note: See TracChangeset for help on using the changeset viewer.