Ignore:
Timestamp:
Mar 23, 2009 1:28:30 PM (15 years ago)
Author:
bennylp
Message:

Ticket #708: backported changes from ticket #707

Location:
pjproject/branches/1.0
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.0

  • pjproject/branches/1.0/pjmedia/src/test/mips_test.c

    r2394 r2548  
    882882} 
    883883 
     884#if defined(PJMEDIA_HAS_L16_CODEC) && PJMEDIA_HAS_L16_CODEC!=0 
    884885static pj_status_t init_l16_default(pjmedia_endpt *endpt) 
    885886{ 
     
    914915                               samples_per_frame, flags, te); 
    915916} 
     917#endif 
    916918 
    917919/***************************************************************************/ 
     
    22802282        { "codec encode/decode - Speex 8Khz", OP_PUT, K8, &speex8_encode_decode}, 
    22812283        { "codec encode/decode - Speex 16Khz", OP_PUT, K16, &speex16_encode_decode}, 
     2284#if defined(PJMEDIA_HAS_L16_CODEC) && PJMEDIA_HAS_L16_CODEC!=0 
    22822285        { "codec encode/decode - L16/8000/1", OP_PUT, K8, &l16_8_encode_decode}, 
    22832286        { "codec encode/decode - L16/16000/1", OP_PUT, K16, &l16_16_encode_decode}, 
     2287#endif 
    22842288        { "stream TX/RX - G.711", OP_PUT_GET, K8, &create_stream_pcmu}, 
    22852289        { "stream TX/RX - G.711 SRTP 32bit", OP_PUT_GET, K8, &create_stream_pcmu_srtp32_no_auth}, 
  • pjproject/branches/1.0/pjmedia/src/test/sdp_neg_test.c

    r2394 r2548  
    13291329    pj_status_t status; 
    13301330 
    1331     status = pjmedia_sdp_parse(pool, oa->sdp1, pj_native_strlen(oa->sdp1), 
     1331    status = pjmedia_sdp_parse(pool, oa->sdp1, pj_ansi_strlen(oa->sdp1), 
    13321332                                &sdp1); 
    13331333    if (status != PJ_SUCCESS) { 
     
    13711371 
    13721372        /* Parse and validate remote answer */ 
    1373         status = pjmedia_sdp_parse(pool, oa->sdp2, pj_native_strlen(oa->sdp2), 
     1373        status = pjmedia_sdp_parse(pool, oa->sdp2, pj_ansi_strlen(oa->sdp2), 
    13741374                                   &sdp2); 
    13751375        if (status != PJ_SUCCESS) { 
     
    14061406 
    14071407        /* Parse and validate the correct active media. */ 
    1408         status = pjmedia_sdp_parse(pool, oa->sdp3, pj_native_strlen(oa->sdp3), 
     1408        status = pjmedia_sdp_parse(pool, oa->sdp3, pj_ansi_strlen(oa->sdp3), 
    14091409                                   &sdp3); 
    14101410        if (status != PJ_SUCCESS) { 
     
    14481448        if (oa->sdp2) { 
    14491449            /* Parse and validate initial local capability */ 
    1450             status = pjmedia_sdp_parse(pool, oa->sdp2, pj_native_strlen(oa->sdp2), 
     1450            status = pjmedia_sdp_parse(pool, oa->sdp2, pj_ansi_strlen(oa->sdp2), 
    14511451                                       &sdp2); 
    14521452            if (status != PJ_SUCCESS) { 
     
    15081508 
    15091509        /* Parse the correct answer. */ 
    1510         status = pjmedia_sdp_parse(pool, oa->sdp3, pj_native_strlen(oa->sdp3), 
     1510        status = pjmedia_sdp_parse(pool, oa->sdp3, pj_ansi_strlen(oa->sdp3), 
    15111511                                   &sdp3); 
    15121512        if (status != PJ_SUCCESS) { 
  • pjproject/branches/1.0/tests/pjsua/inc_sip.py

    r2110 r2548  
    9292                        print str(time.strftime("%H:%M:%S ")) + txt 
    9393 
    94         def create_req(self, method, sdp, branch="", extra_headers=""): 
    95                 if branch=="": 
    96                         self.cseq = self.cseq + 1 
    97                 msg = req_templ 
    98                 msg = msg.replace("$METHOD", method) 
     94        def update_fields(self, msg): 
    9995                if self.tcp: 
    10096                        transport_param = ";transport=tcp" 
     
    104100                msg = msg.replace("$LOCAL_IP", self.local_ip) 
    105101                msg = msg.replace("$LOCAL_PORT", str(self.local_port)) 
    106                 if branch=="": 
    107                         branch=str(random.random()) 
    108                 msg = msg.replace("$BRANCH", branch) 
    109102                msg = msg.replace("$FROM_TAG", self.local_tag) 
    110103                msg = msg.replace("$TO_TAG", self.rem_tag) 
    111104                msg = msg.replace("$CALL_ID", self.call_id) 
    112105                msg = msg.replace("$CSEQ", str(self.cseq)) 
     106                branch=str(random.random()) 
     107                msg = msg.replace("$BRANCH", branch) 
     108                return msg 
     109 
     110        def create_req(self, method, sdp, branch="", extra_headers=""): 
     111                if branch=="": 
     112                        self.cseq = self.cseq + 1 
     113                msg = req_templ 
     114                msg = msg.replace("$METHOD", method) 
    113115                msg = msg.replace("$SIP_HEADERS", extra_headers) 
     116                if branch=="": 
     117                        branch=str(random.random()) 
     118                msg = msg.replace("$BRANCH", branch) 
    114119                if sdp!="": 
    115120                        msg = msg.replace("$CONTENT_LENGTH", str(len(sdp))) 
     
    119124                msg = msg + "\r\n" 
    120125                msg = msg + sdp 
    121                 return msg 
     126                return self.update_fields(msg) 
    122127 
    123128        def create_response(self, request, code, reason, to_tag=""): 
  • pjproject/branches/1.0/tests/pjsua/mod_sendto.py

    r2080 r2548  
    2020         
    2121        if len(cfg.complete_msg) != 0: 
    22                 req = cfg.complete_msg 
     22                req = dlg.update_fields(cfg.complete_msg) 
    2323        else: 
    2424                req = dlg.create_invite(cfg.sdp, cfg.extra_headers) 
Note: See TracChangeset for help on using the changeset viewer.