- Timestamp:
- Mar 23, 2009 1:28:30 PM (16 years ago)
- Location:
- pjproject/branches/1.0
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.0
- Property svn:mergeinfo changed
/pjproject/trunk merged: 2429,2440
- Property svn:mergeinfo changed
-
pjproject/branches/1.0/pjmedia/src/test/mips_test.c
r2394 r2548 882 882 } 883 883 884 #if defined(PJMEDIA_HAS_L16_CODEC) && PJMEDIA_HAS_L16_CODEC!=0 884 885 static pj_status_t init_l16_default(pjmedia_endpt *endpt) 885 886 { … … 914 915 samples_per_frame, flags, te); 915 916 } 917 #endif 916 918 917 919 /***************************************************************************/ … … 2280 2282 { "codec encode/decode - Speex 8Khz", OP_PUT, K8, &speex8_encode_decode}, 2281 2283 { "codec encode/decode - Speex 16Khz", OP_PUT, K16, &speex16_encode_decode}, 2284 #if defined(PJMEDIA_HAS_L16_CODEC) && PJMEDIA_HAS_L16_CODEC!=0 2282 2285 { "codec encode/decode - L16/8000/1", OP_PUT, K8, &l16_8_encode_decode}, 2283 2286 { "codec encode/decode - L16/16000/1", OP_PUT, K16, &l16_16_encode_decode}, 2287 #endif 2284 2288 { "stream TX/RX - G.711", OP_PUT_GET, K8, &create_stream_pcmu}, 2285 2289 { "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 1329 1329 pj_status_t status; 1330 1330 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), 1332 1332 &sdp1); 1333 1333 if (status != PJ_SUCCESS) { … … 1371 1371 1372 1372 /* 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), 1374 1374 &sdp2); 1375 1375 if (status != PJ_SUCCESS) { … … 1406 1406 1407 1407 /* 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), 1409 1409 &sdp3); 1410 1410 if (status != PJ_SUCCESS) { … … 1448 1448 if (oa->sdp2) { 1449 1449 /* 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), 1451 1451 &sdp2); 1452 1452 if (status != PJ_SUCCESS) { … … 1508 1508 1509 1509 /* 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), 1511 1511 &sdp3); 1512 1512 if (status != PJ_SUCCESS) { -
pjproject/branches/1.0/tests/pjsua/inc_sip.py
r2110 r2548 92 92 print str(time.strftime("%H:%M:%S ")) + txt 93 93 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): 99 95 if self.tcp: 100 96 transport_param = ";transport=tcp" … … 104 100 msg = msg.replace("$LOCAL_IP", self.local_ip) 105 101 msg = msg.replace("$LOCAL_PORT", str(self.local_port)) 106 if branch=="":107 branch=str(random.random())108 msg = msg.replace("$BRANCH", branch)109 102 msg = msg.replace("$FROM_TAG", self.local_tag) 110 103 msg = msg.replace("$TO_TAG", self.rem_tag) 111 104 msg = msg.replace("$CALL_ID", self.call_id) 112 105 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) 113 115 msg = msg.replace("$SIP_HEADERS", extra_headers) 116 if branch=="": 117 branch=str(random.random()) 118 msg = msg.replace("$BRANCH", branch) 114 119 if sdp!="": 115 120 msg = msg.replace("$CONTENT_LENGTH", str(len(sdp))) … … 119 124 msg = msg + "\r\n" 120 125 msg = msg + sdp 121 return msg126 return self.update_fields(msg) 122 127 123 128 def create_response(self, request, code, reason, to_tag=""): -
pjproject/branches/1.0/tests/pjsua/mod_sendto.py
r2080 r2548 20 20 21 21 if len(cfg.complete_msg) != 0: 22 req = cfg.complete_msg22 req = dlg.update_fields(cfg.complete_msg) 23 23 else: 24 24 req = dlg.create_invite(cfg.sdp, cfg.extra_headers)
Note: See TracChangeset
for help on using the changeset viewer.