Changeset 4387 for pjproject/branches/1.x
- Timestamp:
- Feb 27, 2013 10:16:08 AM (12 years ago)
- Location:
- pjproject/branches/1.x
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x
- Property svn:mergeinfo changed
/pjproject/trunk merged: 4212,4217,4232-4233,4235,4238,4266,4283,4288,4308,4312,4330,4354,4364,4366
- Property svn:mergeinfo changed
-
pjproject/branches/1.x/pjlib-util/build/Makefile
r3677 r4387 75 75 $(MAKE) -f $(RULES_MAK) APP=PJLIB_UTIL app=pjlib-util $(PJLIB_UTIL_LIB) 76 76 77 pjlib-util-test: 77 pjlib-util-test: pjlib-util 78 78 $(MAKE) -f $(RULES_MAK) APP=UTIL_TEST app=pjlib-util-test $(UTIL_TEST_EXE) 79 79 -
pjproject/branches/1.x/pjlib/build/Makefile
r3677 r4387 88 88 touch ../include/pj/config_site.h 89 89 90 pjlib-test: 90 pjlib-test: pjlib 91 91 $(MAKE) -f $(RULES_MAK) APP=TEST app=pjlib-test $(TEST_EXE) 92 92 -
pjproject/branches/1.x/pjlib/src/pj/sock_bsd.c
r3553 r4387 719 719 PJ_CHECK_STACK(); 720 720 PJ_ASSERT_RETURN(buf && len, PJ_EINVAL); 721 PJ_ASSERT_RETURN(from && fromlen, (*len=-1, PJ_EINVAL));722 721 723 722 *len = recvfrom(sock, (char*)buf, *len, flags, … … 727 726 return PJ_RETURN_OS_ERROR(pj_get_native_netos_error()); 728 727 else { 729 PJ_SOCKADDR_RESET_LEN(from); 728 if (from) { 729 PJ_SOCKADDR_RESET_LEN(from); 730 } 730 731 return PJ_SUCCESS; 731 732 } -
pjproject/branches/1.x/pjlib/src/pjlib-test/activesock.c
r3553 r4387 214 214 pj_time_val delay = {0, 10}; 215 215 #ifdef PJ_SYMBIAN 216 PJ_UNUSED_ARG(delay); 216 217 pj_symbianos_poll(-1, 100); 217 218 #else -
pjproject/branches/1.x/pjlib/src/pjlib-test/ioq_tcp.c
r3553 r4387 364 364 #ifdef PJ_SYMBIAN 365 365 callback_call_count = 0; 366 pj_symbianos_poll(-1, 1000);366 pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout)); 367 367 status = callback_call_count; 368 368 #else … … 413 413 pj_time_val timeout = {1, 0}; 414 414 #ifdef PJ_SYMBIAN 415 status = pj_symbianos_poll(-1, 1000);415 status = pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout)); 416 416 #else 417 417 status = pj_ioqueue_poll(ioque, &timeout); … … 543 543 #ifdef PJ_SYMBIAN 544 544 callback_call_count = 0; 545 pj_symbianos_poll(-1, 1000);545 pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout)); 546 546 status = callback_call_count; 547 547 #else … … 577 577 pj_time_val timeout = {1, 0}; 578 578 #ifdef PJ_SYMBIAN 579 status = pj_symbianos_poll(-1, 1000);579 status = pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout)); 580 580 #else 581 581 status = pj_ioqueue_poll(ioque, &timeout); … … 772 772 773 773 #ifdef PJ_SYMBIAN 774 status = pj_symbianos_poll(-1, 1000);774 status = pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout)); 775 775 #else 776 776 status = pj_ioqueue_poll(ioque, &timeout); … … 798 798 pj_time_val timeout = {1, 0}; 799 799 #ifdef PJ_SYMBIAN 800 status = pj_symbianos_poll(-1, 1000);800 status = pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout)); 801 801 #else 802 802 status = pj_ioqueue_poll(ioque, &timeout); -
pjproject/branches/1.x/pjlib/src/pjlib-test/ioq_udp.c
r3553 r4387 268 268 TRACE_("poll..."); 269 269 #ifdef PJ_SYMBIAN 270 rc = pj_symbianos_poll(-1, 5000);270 rc = pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout)); 271 271 #else 272 272 rc = pj_ioqueue_poll(ioque, &timeout); … … 784 784 pj_time_val timeout = { 1, 0 }; 785 785 #ifdef PJ_SYMBIAN 786 rc = pj_symbianos_poll(-1, 1000);786 rc = pj_symbianos_poll(-1, PJ_TIME_VAL_MSEC(timeout)); 787 787 #else 788 788 rc = pj_ioqueue_poll(ioque, &timeout); … … 813 813 pj_time_val timeout = { 0, 10 }; 814 814 #ifdef PJ_SYMBIAN 815 PJ_UNUSED_ARG(timeout); 815 816 rc = pj_symbianos_poll(-1, 100); 816 817 #else -
pjproject/branches/1.x/pjmedia/build/Makefile
r3677 r4387 151 151 $(MAKE) -f $(RULES_MAK) APP=PJSDP app=pjsdp $(PJSDP_LIB) 152 152 153 pjmedia-test: $(PJMEDIA_LIB) 153 $(PJMEDIA_LIB): pjmedia 154 155 pjmedia-test: $(PJMEDIA_LIB) pjmedia 154 156 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_TEST app=pjmedia-test $(PJMEDIA_TEST_EXE) 155 157 -
pjproject/branches/1.x/pjmedia/src/pjmedia-audiodev/alsa_dev.c
r4125 r4387 233 233 234 234 /* Set device name */ 235 str cpy(adi->name, dev_name);235 strncpy(adi->name, dev_name, sizeof(adi->name)); 236 236 237 237 /* Check the number of playback channels */ -
pjproject/branches/1.x/pjmedia/src/pjmedia/g711.c
r3553 r4387 331 331 #if !PLC_DISABLED 332 332 /* Create PLC, always with 10ms ptime */ 333 status = pjmedia_plc_create(g711_factory.pool, 8000, 80, 333 status = pjmedia_plc_create(g711_factory.pool, 8000, 334 SAMPLES_PER_FRAME, 334 335 0, &codec_priv->plc); 335 336 if (status != PJ_SUCCESS) { … … 341 342 /* Create VAD */ 342 343 status = pjmedia_silence_det_create(g711_factory.pool, 343 8000, 80,344 8000, SAMPLES_PER_FRAME, 344 345 &codec_priv->vad); 345 346 if (status != PJ_SUCCESS) { -
pjproject/branches/1.x/pjmedia/src/pjmedia/rtcp.c
r3960 r4387 753 753 /* Check and get BYE reason */ 754 754 if (size > 8) { 755 reason.slen = *((pj_uint8_t*)pkt+8); 755 reason.slen = PJ_MIN(sizeof(sess->stat.peer_sdes_buf_), 756 *((pj_uint8_t*)pkt+8)); 756 757 pj_memcpy(sess->stat.peer_sdes_buf_, ((pj_uint8_t*)pkt+9), 757 758 reason.slen); -
pjproject/branches/1.x/pjmedia/src/pjmedia/rtp.c
r3553 r4387 119 119 const void **rtphdr, int *hdrlen ) 120 120 { 121 PJ_UNUSED_ARG(payload_len);122 123 121 /* Update timestamp */ 124 122 ses->out_hdr.ts = pj_htonl(pj_ntohl(ses->out_hdr.ts)+ts_len); -
pjproject/branches/1.x/pjmedia/src/pjmedia/transport_srtp.c
r3986 r4387 38 38 #define MAX_RTP_BUFFER_LEN 1500 39 39 #define MAX_RTCP_BUFFER_LEN 1500 40 #define MAX_KEY_LEN 3240 #define MAX_KEY_LEN 128 41 41 42 42 /* Initial value of probation counter. When probation counter > 0, … … 612 612 srtp->session_inited = PJ_TRUE; 613 613 614 PJ_LOG(5, (srtp->pool->obj_name, "TX: %s key=%s", srtp->tx_policy.name.ptr, 615 octet_string_hex_string(tx->key.ptr, tx->key.slen))); 616 if (srtp->tx_policy.flags) { 617 PJ_LOG(5,(srtp->pool->obj_name,"TX: disable%s%s", (cr_tx_idx?"":" enc"), 618 (au_tx_idx?"":" auth"))); 619 } 620 621 PJ_LOG(5, (srtp->pool->obj_name, "RX: %s key=%s", srtp->rx_policy.name.ptr, 622 octet_string_hex_string(rx->key.ptr, rx->key.slen))); 623 if (srtp->rx_policy.flags) { 624 PJ_LOG(5,(srtp->pool->obj_name,"RX: disable%s%s", (cr_rx_idx?"":" enc"), 625 (au_rx_idx?"":" auth"))); 626 } 614 /* Logging stuffs */ 615 #if PJ_LOG_MAX_LEVEL >= 5 616 { 617 char b64[PJ_BASE256_TO_BASE64_LEN(MAX_KEY_LEN)]; 618 int b64_len; 619 620 /* TX crypto and key */ 621 b64_len = sizeof(b64); 622 status = pj_base64_encode((pj_uint8_t*)tx->key.ptr, tx->key.slen, 623 b64, &b64_len); 624 if (status != PJ_SUCCESS) 625 b64_len = pj_ansi_sprintf(b64, "--key too long--"); 626 else 627 b64[b64_len] = '\0'; 628 629 PJ_LOG(5, (srtp->pool->obj_name, "TX: %s key=%s", 630 srtp->tx_policy.name.ptr, b64)); 631 if (srtp->tx_policy.flags) { 632 PJ_LOG(5,(srtp->pool->obj_name, "TX: disable%s%s", 633 (cr_tx_idx?"":" enc"), 634 (au_tx_idx?"":" auth"))); 635 } 636 637 /* RX crypto and key */ 638 b64_len = sizeof(b64); 639 status = pj_base64_encode((pj_uint8_t*)rx->key.ptr, rx->key.slen, 640 b64, &b64_len); 641 if (status != PJ_SUCCESS) 642 b64_len = pj_ansi_sprintf(b64, "--key too long--"); 643 else 644 b64[b64_len] = '\0'; 645 646 PJ_LOG(5, (srtp->pool->obj_name, "RX: %s key=%s", 647 srtp->rx_policy.name.ptr, b64)); 648 if (srtp->rx_policy.flags) { 649 PJ_LOG(5,(srtp->pool->obj_name,"RX: disable%s%s", 650 (cr_rx_idx?"":" enc"), 651 (au_rx_idx?"":" auth"))); 652 } 653 } 654 #endif 627 655 628 656 on_return: -
pjproject/branches/1.x/pjnath/build/Makefile
r3677 r4387 98 98 $(MAKE) -f $(RULES_MAK) APP=PJNATH app=pjnath $(PJNATH_LIB) 99 99 100 $$(PJNATH_LIB): pjnath 101 100 102 pjnath-test: $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJNATH_LIB) 101 103 $(MAKE) -f $(RULES_MAK) APP=PJNATH_TEST app=pjnath-test $(PJNATH_TEST_EXE) -
pjproject/branches/1.x/pjsip-apps/src/python/setup.py
r4121 r4387 88 88 extra_link_args = ["-framework", "CoreFoundation", 89 89 "-framework", "AudioToolbox"] 90 # OS X Lion support 91 if platform.mac_ver()[0].startswith("10.7"): 90 version = platform.mac_ver()[0].split(".") 91 # OS X Lion (10.7.x) or above support 92 if version[0] == '10' and int(version[1]) >= 7: 92 93 extra_link_args += ["-framework", "AudioUnit"] 93 94 else: -
pjproject/branches/1.x/pjsip-apps/src/samples/icedemo.c
r3603 r4387 615 615 616 616 /* Enumerate all candidates for this component */ 617 cand_cnt = PJ_ARRAY_SIZE(cand); 617 618 status = pj_ice_strans_enum_cands(icedemo.icest, comp+1, 618 619 &cand_cnt, cand); -
pjproject/branches/1.x/pjsip/build/Makefile
r3677 r4387 138 138 $(MAKE) -f $(RULES_MAK) APP=PJSUA_LIB app=pjsua-lib $(PJSUA_LIB_LIB) 139 139 140 pjsip-test: 140 pjsip-test: pjsip 141 141 $(MAKE) -f $(RULES_MAK) APP=TEST app=pjsip-test $(TEST_EXE) 142 142 -
pjproject/branches/1.x/pjsip/include/pjsua-lib/pjsua.h
r4329 r4387 654 654 * - it may delay the processing of the request, for example to request 655 655 * user permission whether to accept or reject the request. In this 656 * case, the application MUST set the \a code argument to 202, and 657 * later calls #pjsua_pres_notify() to accept or reject the 658 * subscription request. 656 * case, the application MUST set the \a code argument to 202, then 657 * IMMEDIATELY calls #pjsua_pres_notify() with state 658 * PJSIP_EVSUB_STATE_PENDING and later calls #pjsua_pres_notify() 659 * again to accept or reject the subscription request. 659 660 * 660 661 * Any \a code other than 200 and 202 will be treated as 200. … … 2241 2242 /** 2242 2243 * The full SIP URL for the account. The value can take name address or 2243 * URL format, and will look something like "sip:account@serviceprovider". 2244 * URL format, and will look something like "sip:account@serviceprovider" 2245 * or "\"Display Name\" <sip:account@provider>". 2244 2246 * 2245 2247 * This field is mandatory. … … 3525 3527 * 3526 3528 * @param call_id The call id to be transfered. 3527 * @param dest Address of new target to be contacted. 3529 * @param dest URI of new target to be contacted. The URI may be 3530 * in name address or addr-spec format. 3528 3531 * @param msg_data Optional message components to be sent with 3529 3532 * the request. -
pjproject/branches/1.x/pjsip/src/pjsip/sip_parser.c
r3553 r4387 1523 1523 /* Get the SIP-URL */ 1524 1524 has_bracket = (*scanner->curptr == '<'); 1525 if (has_bracket) 1525 if (has_bracket) { 1526 1526 pj_scan_get_char(scanner); 1527 } else if (name_addr->display.slen) { 1528 /* Must have bracket now (2012-10-26). 1529 * Allowing (invalid) name-addr to pass URI verification will 1530 * cause us to send invalid URI to the wire. 1531 */ 1532 PJ_THROW( PJSIP_SYN_ERR_EXCEPTION); 1533 } 1527 1534 name_addr->uri = int_parse_uri( scanner, pool, PJ_TRUE ); 1528 1535 if (has_bracket) { -
pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_call.c
r4067 r4387 34 34 */ 35 35 #define LOCK_CODEC_MAX_RETRY 5 36 37 38 /* 39 * The INFO method. 40 */ 41 const pjsip_method pjsip_info_method = 42 { 43 PJSIP_OTHER_METHOD, 44 { "INFO", 4 } 45 }; 46 36 47 37 48 /* This callback receives notification from invite session when the … … 175 186 pjsip_endpt_add_capability(pjsua_var.endpt, NULL, PJSIP_H_SUPPORTED, 176 187 NULL, 1, &str_norefersub); 188 189 /* Add "INFO" in Allow header, for DTMF and video key frame request. */ 190 pjsip_endpt_add_capability(pjsua_var.endpt, NULL, PJSIP_H_ALLOW, 191 NULL, 1, &pjsip_info_method.name); 177 192 178 193 return status;
Note: See TracChangeset
for help on using the changeset viewer.