Commit Graph

2076 Commits

Author SHA1 Message Date
sauwming 1cb34f56a7
Specify media direction when making, answering, or updating call (#2705) 2021-05-17 09:58:19 +08:00
sauwming ed28d04a66
Fixed remote address change checking in DTLS transport (#2703) 2021-04-23 13:24:43 +08:00
sauwming 28b36716ad Misc (re #2698): Fixed warning of using UI
View bounds not from main thread
2021-04-19 14:26:07 +08:00
Sean Bright 4746ecff38
sdp.c: Use correct conversion specifier for uint32_t (#2693) 2021-04-15 13:38:06 +07:00
Riza Sulistyo 68171af116
Check error returned from decode callback of the decoding process using video toolbox codec. (#2671) 2021-03-31 13:30:28 +07:00
sauwming d52050bb75
Match tx telephone events clock rate with local's clock rate (#2679) 2021-03-30 14:31:02 +08:00
Nanang Izzuddin 79531cbc05
More works on Trickle ICE (#2667)
- Improve trickling state management (fix no SIP INFO when initial INVITE responded immediately with 200, strayed SIP INFO after trickling is done, etc).
- Fix issues when rtcp-mux is enabled.
- Allow process incoming SIP INFO before receiving remote SDP.
- Use regular ICE on re-INVITE (with reinit media flag).
- Avoid calling pj_ice_strans_get_running_comp_cnt() for loop condition.
- Fix bug in pjnath-test: TURN server set wrong peer channel number.
- Added timer for end-of-candidate indication from remote & don't flag ice-mismatch if remote uses default address in trickle ICE
2021-03-17 13:00:01 +07:00
Nanang Izzuddin a6512caafa Merge branch 'master' of https://github.com/pjsip/pjproject 2021-03-17 09:22:41 +07:00
Nanang Izzuddin fd7fe4b519 Misc (re #2504): Suppress a compile warning on MSVC2005: unreferenced param 2021-03-17 09:22:25 +07:00
sauwming 1a3f8ad60d
Fixed race condition between media event callback and stopping video (#2666) 2021-03-12 16:42:56 +08:00
Nanang Izzuddin 25c5eea417 Trickle ICE (re #2588):
- Fix premature end-of-candidate indication.
- Fix premature ICE session destroy in sending INFO (update remote with local candidates).
- Fix assertion when foundation list is full.
- Fix assertion when pruned check is completed/timed-out.
- Minor, missing 'static' for internal functions.
2021-03-10 10:05:45 +07:00
Riza Sulistyo eeef964ad7 Re #2552: Fix "sf error code: -13" log due to double buffer release. 2021-03-09 14:00:41 +07:00
Riza Sulistyo 74c34399d6 Misc (re #2504): Suppress some compile warning on VS Windows. 2021-03-09 07:32:36 +07:00
Nanang Izzuddin 97b3d7addb
Merge pull request from GHSA-hvq6-f89p-frvp 2021-03-08 17:09:34 +08:00
sauwming 63d120f441 Misc (re #2504): Suppress compilation warning of unused function on Mac 2021-03-08 13:13:10 +08:00
sauwming daff4e7749
Increase SDP version when receiving re-INVITE without SDP (#2646) 2021-03-08 10:01:27 +08:00
Riza Sulistyo 940e3c0443
Support Android AMediaCodec (#2552)
* Implement android AMediaCodec AVC/VPX codec.

* - Change "anmed" to "and_media" prefix for clearity.
- Check if encoder/decoder exists before enabling codec.

* Fix bug on enum info.

* Add support to AMRNB and AMRWB audio codec.

* Modification based on comments.

* - move VPX packetizer from codec implementation.

* - Remove unwanted changes.
- Fix bug on vpx (VP9) packetize method.

* - New method to initialize vpx packetizer config.
- Don't use pt as codec id.

* add compiler option to prioritze using software or hardware codec.

* add documentation related to packetization mode for H264.

* fix some potential compile error.

* Specify video codec PT to support #2656.
2021-03-05 21:59:07 +07:00
Riza Sulistyo d9055ede5c
Allow EC to be used when sound device is opened on speaker mode only (#2651)
* Add option to always use VPIO on coreaudio dev.

* Revert "Add option to always use VPIO on coreaudio dev."

This reverts commit 55d6da5b4b.

* Allow EC to be enabled when sound device is opened on speaker only mode.

* Modify assertion to allow ec to be set on playback only mode.
2021-03-04 16:08:52 +07:00
Riza Sulistyo 9fdcbd5cc6
Differentiate video codec ID by assigning each codec backend a specific PT number (#2656)
* Differentiate video codec ID by assigning each codec backend a specific PT.

* Add usage comment.
2021-03-03 21:16:24 +07:00
Nanang Izzuddin ef10512043
Fix PCMU/A support in AVI player (#2618) 2021-03-03 15:29:33 +07:00
weissinet 632fe2e8cf
Use CoreAudio for Mac for macCatalyst (#2635) 2021-02-19 14:14:53 +08:00
Riza Sulistyo e1b82fc25d
Update RTP timestamp on inactive/paused video stream (#2640) 2021-02-15 10:05:29 +07:00
Riza Sulistyo 6e62517a4e
Use SRTP attribute specified on SDP when starting SRTP-SDES transport (#2609)
* - use SRTP attribute specified on SDP when starting SRTP-SDES transport.

* Check for only key changes on SDP and compare it to the SRTP settings.

* check and change the crypto key on sdes_media_start().

* Move check for the answerer side to the original place.
2021-02-03 12:59:48 +07:00
sauwming fceab8d468
Fix sound output issue when running iOS apps on Mac (#2612) 2021-01-14 08:11:14 +08:00
Frédéric-Philippe Metz c06727f678
Fix bad Video SDP when using 3rdPartyMedia and PJMEDIA_DIR_ENCODING only (#2550)
Co-authored-by: Frederic-Philippe Metz <metz@myfred.net>
2020-12-15 13:26:54 +07:00
Nanang Izzuddin d65cacddd3
Implement trickle ICE (#2588)
Squash & merge trickle-ice dev branch to master.
2020-12-11 09:40:57 +07:00
Nikolai ZHUBR dad6a34680
Fix building with video support (including dshow camera) on mingw (#2589) 2020-12-10 15:54:40 +07:00
Michael Scheiffler bef8339e31
Conf functions to disconnect all sinks/sources (#2585) 2020-11-24 11:27:57 +08:00
Nanang Izzuddin 0d911f82d0
Fix bug in video stream when incoming RTP packet timestamp rolls over. (#2584) 2020-11-20 10:51:30 +07:00
Michael Scheiffler 2701e5eab6
Reordered write_port() in conferencer to avoid writing to a disabled port (#2583) 2020-11-19 10:35:19 +07:00
Nanang Izzuddin b39dd1587d
Fix click noise in libsamplerate (#2565) 2020-11-18 16:55:44 +07:00
Michael Scheiffler 60b1e09cd0
Added underlying buffer configurability for splitcomb (#2570) 2020-11-18 16:53:01 +07:00
Michael Scheiffler 540ab3bce6
Added function pjmedia_tonegen_stop_loop() (#2571) 2020-11-06 11:19:51 +08:00
Michael Scheiffler d8f0ed8f84
Fixed memory corruption on unsupported ALSA channel count (#2569) 2020-11-03 08:54:38 +08:00
sauwming f72eba9afb
Remove multiplication by channel count in calculating ALSA buffer size (#2556) 2020-10-22 10:12:05 +08:00
sauwming d85f227ff9
ALSA dev incorrectly sets the number of samples per frame (#2549)
* Revert the commit in issue #2223
* Make sure buffer size setting is sufficient
2020-10-15 14:36:13 +08:00
Riza Sulistyo efbe7164e9
Option to send keep alive periodically when stream is started for NAT hole punching (#2518)
* send keep alive when stream is started.

* modification based on comments.

* Add documentation.

* Modification based on comments.

* Grouped configuration.
2020-10-12 14:37:30 +07:00
Riza Sulistyo 6d18fee00a Modification based on comments. 2020-10-08 11:58:18 +07:00
Riza Sulistyo af76445eb6 Fix check error and modify doc. 2020-10-02 21:01:03 +07:00
Riza Sulistyo 510716631e Add option to disable ice mismatch check. 2020-10-02 14:18:51 +07:00
Nanang Izzuddin db4f8f23b9
Fixed bugs: (#2531)
- Maintain roll over counter in SRTP restart.
- Only reinit probation when SRTP is really restarted, was every srtp_start() (in PJSUA, media_start()/srtp_start() is called every after SDP nego, while SRTP may not be restarted, e.g: when SRTP policy/keys are not changing).
2020-09-29 09:57:01 +07:00
sauwming e2d8ee0f49
Suppress CodeQL warnings (#2530)
Also exclude some third party libs and python source
2020-09-23 18:45:59 +08:00
sauwming 806c8b490e
Initialize vid conf's buffer with black color (#2510) 2020-09-15 09:58:14 +08:00
Max Truxa 5925c42ea3
Pass JB discard algorithm along other JB settings (#2506) 2020-08-14 10:35:11 +08:00
Nanang Izzuddin d36ed48d91
Also generate keyframe missing event in NAL decoding error (was only in frame decoding error). (#2492) 2020-07-27 11:34:26 +07:00
sauwming f5b48f82be
Clone local offer SDP in process_answer() to prevent modification (#2476) 2020-07-20 11:38:36 +08:00
andreas-wehrmann 973bb671a1
PJ adjustable pool sizes (#2395)
Make several pool sizes settable via compile time macro settings. This can be used to deal with memory fragmentation issues in long running applications that encounter temporary high loads.
2020-07-15 11:46:59 +07:00
Max Truxa 5f14950cb5
Add callbacks to receive RTP DTMF events (#2447) 2020-06-26 16:06:21 +08:00
Riza Sulistyo f45f2d435a
Allow demote SRTP call to RTP when using re-INVITE with PJSUA_CALL_REINIT_MEDIA (#2451)
* - Allow demote SRTP call to RTP when using re-INVITE with
PJSUA_CALL_REINIT_MEDIA
- DTLS renegotiation when receiving re-INVITE with modified media
transport address

* Revert DTLS_DEBUG to 0.

* modification based on comments.

* modified comment.
2020-06-10 10:42:53 +07:00
Nanang Izzuddin 70defb8f2d
Add macro setting PJMEDIA_TELEPHONE_EVENT_ALL_CLOCKRATES (see also #2088), to allow app uses old behavior (before #2088) by setting it to 0. (#2427) 2020-06-05 15:36:46 +07:00
half-left c6623af698
Fix bug: level is not removed form src_port->listener_adj_level in (#2439) 2020-05-21 11:22:38 +08:00
Nanang Izzuddin 30c1b64aba
Fix click noise in memplayer in loop mode (#2431) 2020-05-14 11:15:28 +07:00
Riza Sulistyo 972daab036
Fix compile error when enabling PJMEDIA_STREAM_ENABLE_KA. (#2420) 2020-05-07 22:44:41 +07:00
Nanang Izzuddin fc1aa6b115
Fix short noise at the beginning of call when audio device started later than stream. (#2422) 2020-05-06 10:28:28 +07:00
Nanang Izzuddin 94ecbcb07e
Update video stream to publish format change event asynchronously (#2421) 2020-05-06 10:25:35 +07:00
sauwming 95c29aa1d2
Avoid undefinition of standard macros s_addr and s6_addr (#2423) 2020-05-06 09:38:26 +08:00
Max Truxa 97a3b349cf
Populate info format field in pjmedia_conf_get_port_info() (#2388) 2020-05-01 17:38:54 +08:00
sauwming 798009da75
Fixed failed pjmedia test for multiple tel-event (#2412)
Revert #2375 and use a different approach to fix the assertion.
2020-04-30 12:45:35 +08:00
Nanang Izzuddin b23633707c
More CI works (#2376)
* pjsua-test:
  - Update pjsua-test module call: wait ICE update before checking media
  - Attempt to fix all failed tests by sipp module: changed SIPp port from 6000 to 50070 (port used by recvfrom module)
  - Update call module: confirm codec priority after change, fix DTLS-SRTP expect may race with state CONFIRMED
  - Add timeout check in telnet-ing to pjsua
  - ICE nego may race with call state CONFIRMED, so mod call better just sleep instead of expecting 'ICE nego success'.

* Other unit tests:
  - Print stack trace on crash on Linux and DarwinOS via SIGSEGV signal handler.
  - Update resolver test: print log on callback error, replace assertion checks with error return, fix comments, sleep periods, fix received packet count may be > 1 if server ignore the request (for example when the test machine experiencing high CPU load).
  - Update ccpp.yml: add -g for jobs with unit-tests.
  - More lenient on tsx retransmission count check in pjsip-test.
  - Update tsx_uac/s_test.c: allow retransmission timing diff from 150 to 500ms to accommodate possible CPU spike on some test machines.
2020-04-30 11:25:19 +07:00
sauwming 558922fc3f
Suppressed various compilation warnings (#2410)
Such as:
- conversion from string literal to 'char *' warning
- format-truncation warning

Co-authored-by: nanangizz <nanang@teluu.com>
2020-04-29 15:11:26 +08:00
Nanang Izzuddin 8cd15e8073
Increment outgoing RTP timestamp on inactive or receive only stream (#2340) 2020-04-29 10:55:14 +07:00
sauwming b8eea5d015
Fixed assertion for offer with multiple telephone events (#2375) 2020-04-13 13:18:45 +08:00
Nanang Izzuddin 5f689f5d23
Add option to exclude benchmark tests in unit tests (#2321)
* Add option to exclude benchmark tests in unit tests

* Loosen up resolver round-robin testcondition (percent difference allowance from 5% to 10%, the test result variance relies heavily on OS random number distribution).
2020-03-19 14:46:22 +07:00
sauwming 98f70c210f
Add more CI tests on Ubuntu and Mac (#2329) 2020-03-10 16:45:54 +08:00
Nanang Izzuddin c3456980ba Add option to exclude benchmark tests in unit tests 2020-03-03 09:53:07 +07:00
Saúl Ibarra Corretgé c5fdece84a
v4l2: add support for YUV420 (#2310) 2020-02-28 11:41:04 +08:00
sauwming d992606db0
Limit log printing if video conference is connected to a sink port that's not running (#2301)
* Limit log printing

* rev 1

* Add error counter info in the log
2020-02-26 09:18:08 +08:00
mingteluu b76c134fea Add more log in pjsua_vid and vid_conf 2020-02-25 10:51:43 +08:00
Saúl Ibarra Corretgé e6dedfaedd Update parameter docs 2020-02-21 12:29:28 +01:00
Saúl Ibarra Corretgé b65f09e81f vid_stream: add API for sending an RTCP PLI 2020-02-21 12:27:36 +01:00
Riza Sulistyo 0cc933a091 use stream name instead of encoder channel name as log when send rtcp
fail.
2020-02-21 15:15:05 +07:00
Riza Sulistyo a21754043b Close #2282: Fix build error when using ffmpeg version 4.x. 2020-02-18 09:03:56 +07:00
Riza Sulistyo ae2e919d9e Misc (re #2210): Fixed various warnings on Visual Studio 2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6159 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-06 04:02:56 +00:00
Nanang Izzuddin 95c09007dc Misc (re #2210): Fixed various compile warnings on MSVC2005.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6157 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-05 03:05:30 +00:00
Sauw Ming d125d73149 Re #2253: Check for insufficient buffer if remote is sending higher res than we can handle.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6153 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 05:08:14 +00:00
Sauw Ming e215f7990c Re #2253: Changed keyframe max distance to a max of 60s
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6151 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 03:17:56 +00:00
Sauw Ming 283cfc4398 Re #2253: Apply local fmtp setting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6150 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 02:49:13 +00:00
Sauw Ming 7df07048c4 Re #2253
Fix vpx fmtp apply:
- Only adjust the frame rate if it exceeds max-fr
- Maintain aspect ratio when adjusting resolution



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6149 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-03 06:26:55 +00:00
Riza Sulistyo 1b67249cc8 Re #2253:
- Add vpx.h/vpx.c to Visual Studio project files
- Fix compile error/warning from Visual Studio



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6147 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-31 03:15:41 +00:00
Sauw Ming bde1167cc3 Closed #2143: Add AEC info to call info & statistics dump
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6140 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-28 06:58:45 +00:00
Nanang Izzuddin d5ec2f4592 Misc (re #2210): Get rid of annoying persistent log lines due to video conference connection between active capturer and stopped/hidden renderer (thanks to Dmytrii Gonchar for the feedback).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6138 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-28 02:42:42 +00:00
Nanang Izzuddin 85887b2367 Re #2251: Fixed bug in memory capture, wrong user data passed in invoking callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6132 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-10 07:26:36 +00:00
Nanang Izzuddin 74eb0a0289 Re #2251: Fixed bug in memory player, wrong user data passed in invoking callback. Thanks to Marcus Froeschl for the report and the fix.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6131 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-10 07:09:51 +00:00
Sauw Ming e98fe43314 Closed #589: Update Speex AEC to the latest version to get multichannel EC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6129 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-09 09:05:50 +00:00
Sauw Ming 3147bc0235 Re #1778: Temporarily disable VPIO on Mac for stereo due to recording sound defects.
Steps to reproduce:
- Revert this changeset
- Use pjsua to do sound loopback (cc 0 0) with --ec-tail=0 (VPIO disabled->audio fine) and ec-tail=1 (VPIO enabled->recording sound defects)

Several observations:
- Playback is totally fine in VPIO stereo mode.
- Defect more noticable in 44.1 kHz



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6128 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-08 08:55:30 +00:00
Sauw Ming 1e2b570d7a Re #1778: Fixed incorrect calculation for stereo mode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6127 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-08 08:40:04 +00:00
Nanang Izzuddin 245cc13ce8 Re #2255: Fixed compile warning on MacOS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6125 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-24 02:13:32 +00:00
Sauw Ming e9e71f8753 Re #2210 (misc): Fixed incorrect error printing in Darwin dev when there's a runtime session error
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6124 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-23 07:11:50 +00:00
Nanang Izzuddin 4f5a7a5016 Re #2255: Fixed wrong check of fullscreen mode in window creation and added pjsua app commands for fullscreen.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6123 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-23 03:27:09 +00:00
Riza Sulistyo 43e4680406 Close #2257: Filter SRTP crypto setting for DTLS-SRTP profile.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6118 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-16 12:37:57 +00:00
Nanang Izzuddin b9fd883dc2 Close #2255: Add API for making video window full screen.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6117 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-10 03:55:51 +00:00
Nanang Izzuddin e8c72cf9ba Misc (#2210): Put back PJMEDIA_STREAM_CHECK_RTP_PT feature in stream (introduced in #1160).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6116 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-06 05:57:48 +00:00
Nanang Izzuddin 8631ffe736 Fix #2254: Updated SDP encoder of SDES to avoid deactivating/disabling media, it should be done by the parent/SRTP instead.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6115 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-04 09:01:19 +00:00
Sauw Ming 81b29e9aa2 Re #2252: Fixed failed pjmedia-test, due to unsupported conversion format.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6113 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-29 07:53:43 +00:00
Sauw Ming e472147378 Fixed #2251: Deadlock between PJSUA LOCK and conference mutex
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6112 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-29 04:21:17 +00:00
Sauw Ming 3c9fa7ae2d Fixed #2253: Support for VP8 and VP9 video codec
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6110 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-22 06:18:55 +00:00
Sauw Ming 3237e7b188 Fixed #2252: Fix Darwin video issue if supplied image height is different from the resolution
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6109 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-18 06:24:11 +00:00
Nanang Izzuddin 1bfd835547 Re #1437: Fixed linking error when PJMEDIA_HAS_VIDEO is not set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6107 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-13 10:08:59 +00:00
Nanang Izzuddin 2d9f105d82 Close #1437: Video keyframe request/response using RTCP-FB PLI.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6106 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-13 09:11:04 +00:00
Nanang Izzuddin dc0335a046 Close #1297:
- Updated PJMEDIA endpoint to rearrange dynamic payload type allocation in generating SDP for audio, the allocation arranged in pjmedia_audio_pt enumeation is no longer used.
 - Updated PJMEDIA_RTP_PT_TELEPHONE_EVENTS default value to 120, so lower PT values will be used by audio codecs.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6105 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-13 08:09:34 +00:00
Nanang Izzuddin b48fd409dd Close #2088: Generate and negotiate telephone-event with multiple clock-rates in SDP offer/answer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6103 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-08 10:17:16 +00:00
Riza Sulistyo 948bbed19e Close #2250: Enable OpenH264 native log.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6101 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-06 08:10:42 +00:00
Sauw Ming a441c67a54 Fixed #2248: Memory leak if stream fails to be created
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6098 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-30 05:20:06 +00:00
Sauw Ming e001752e3c Re #2210 (misc): Add passthrough codec source into Makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6096 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-22 03:07:26 +00:00
Nanang Izzuddin c342e68d75 Fix #2247: Distorted video sent by iOS 13 devices.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6095 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-21 01:58:11 +00:00
Sauw Ming a0be35b381 Fixed #1778: Support for Voice Processing IO Audio Unit on Mac
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6094 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-17 07:02:50 +00:00
Nanang Izzuddin fc665ef46f Fix #2245: Reconnect video stream listeners in video conference bridge after format changed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6093 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-15 08:58:41 +00:00
Nanang Izzuddin 33a3c9e0a5 Fixed #2239:
- Deinit OpenGL immediately when initialization fails, so video device {{{start()}}} and {{{put_frame()}}} will return immediately.
 - Introduced new media event {{{PJMEDIA_EVENT_VID_DEV_ERROR}}}, used for notifying app when video device reinit (due to format change) fails.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6085 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-04 04:26:39 +00:00
Sauw Ming 59cd1bb5c6 Re #2210 (misc): Add log if WebRTC AEC fails to be created (currently it only supports mono)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6084 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-04 02:38:14 +00:00
Nanang Izzuddin 5dc221e74b Fix #2236: Fixed exception in iOS Video Toolbox H264 due to UI API called on background thread.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6078 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-25 03:34:38 +00:00
Riza Sulistyo 1914af648e Fix #2234: Memory leak with third party resampling.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6076 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-24 14:46:12 +00:00
Sauw Ming d024a392ec Fixed #2229: Limitations in ICE data sending
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6071 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-23 07:25:41 +00:00
Sauw Ming b073ccb3cc Fixed #2231: Potential premature buffer reuse in UDP media transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6070 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-23 07:24:24 +00:00
Nanang Izzuddin 1773fa8da6 Re #2228: Also updated PCM shifting in G722.1.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6065 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-06 05:20:32 +00:00
Nanang Izzuddin 6cf2381849 Re #2228: Fixed bugs in PCM shifting in G722 codec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6064 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-06 05:19:40 +00:00
Nanang Izzuddin ba1182d61e Misc (re #2210): Division by zero in pjmedia_wav_player_port_get_pos(), i.e: when player has just been created (the position is 0) or when no loop is specified and player already reached EOF and stopped (the position is again 0). Thanks to Sergei Rozinov for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6061 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-04 09:57:56 +00:00
Riza Sulistyo efb3a0bb9f Close #2224: De-Initialize ALSA sound device with snd_pcm_drop() instead of snd_pcm_drain() to avoid stuck issue
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6057 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 15:25:13 +00:00
Riza Sulistyo 6adec9df42 Close #2223: ALSA sound device wrapper implementation ignores period size returned by ALSA
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6056 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 15:02:12 +00:00
Riza Sulistyo 34d3063627 Re #2210 (misc): optimize r6049.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6050 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-06 05:00:31 +00:00
Riza Sulistyo 2b44d5b2b2 Re #2210 (misc): Release pool last when destroying android video dev factory.
Thanks to Pandia Rajan for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6049 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-05 12:40:56 +00:00
Nanang Izzuddin cf94e805c3 Misc (re #2210): Added format definitions for NV12 & NV21.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6046 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-29 02:25:34 +00:00
Nanang Izzuddin 805193c622 Fix #2215:
- Reset jitter buffer after Opus ptime decreased.
 - Updated jitter buffer framelist sequence restart detection, also added some tracing logs.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6043 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-25 03:00:33 +00:00
Riza Sulistyo c8f6f091bd Re #2210 (misc): Prevent overflow when searching for the closest video format.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6041 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-19 09:05:23 +00:00
Sauw Ming 46cd329d9e Fixed #2212: Fix potential buffer overflow in Video Toolbox codec
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6038 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-14 17:21:16 +00:00
Nanang Izzuddin 61ffb0ddc4 Misc (re #2147): Fixed compile warnings due to unused var/function.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6020 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-31 06:13:09 +00:00
Sauw Ming 2ba08831e3 Re #2206: Fixed incorrect variable
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6017 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-30 03:32:28 +00:00
Sauw Ming 8def8e58d5 Fixed #2206: Avoid calling SSL_shutdown() in DTLS media transport if handshake isn't completed yet
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6016 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-30 03:27:25 +00:00
Sauw Ming f183fc1389 Re #2147 (misc): Fixed assertion in pjmedia test if video is disabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6013 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-28 06:03:17 +00:00
Riza Sulistyo c217c850f7 Re #2147 (misc): Fix various compilation warnings on VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6009 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-27 15:01:08 +00:00
Riza Sulistyo 4724f14af5 Close #2202: Limit the number of ignored error when receiving RTP/RTCP.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6005 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-26 13:18:02 +00:00
Riza Sulistyo 2b49e900ca Re #2147 (misc): Avoid swig error caused by pjsua_snd_dev_id enum definition.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6001 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 13:57:48 +00:00
Sauw Ming ef5ac1253f Fixed #2107: Add option to use loopback media transport in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5989 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 00:09:57 +00:00
Nanang Izzuddin 64048ef507 Re #1298: Updated PJMEDIA* to use PJ_ERROR consistently.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5982 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 07:24:57 +00:00
Sauw Ming 9358524737 Fixed #2188: RTCP RR not generated if stream's encoder channel is paused
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5968 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-15 02:53:52 +00:00
Riza Sulistyo 939045ae46 Re #2181: Add vid_conf.h/c to pjmedia project for VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5967 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-11 12:17:14 +00:00
Nanang Izzuddin fdc3c5d9be Misc (re #2147): When tracing is enabled, print ALSA error message when opening device failed in device enumeration.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5965 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-10 06:32:27 +00:00
Sauw Ming 681033652a Fixed #2186: Enable video stream keep alive mechanism
* Also add video stream port to video conf when call is on local hold in order for video stream to keep sending keep-alive.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5960 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-27 01:53:57 +00:00
Sauw Ming 2c8710a584 Re #2181: Fixed assertion in darwin_dev pj_assert(frame->size >= stream->frame_size);
But the problem itself is caused by video port, which passes the wrong frame size when the video capture is passive.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5948 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 09:22:21 +00:00
Nanang Izzuddin 151c0d526a Re #2181: Fixed unreleased pool when disconnecting ports in video conference.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5947 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 07:02:23 +00:00
Nanang Izzuddin eafc04d5bf Re #2181: Initial version of video conference implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5939 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-05 06:23:02 +00:00
Riza Sulistyo 4e965d2ad1 Close #2174: Fix out of bound error when enabling GnuTLS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5929 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-09 09:15:11 +00:00
Nanang Izzuddin 8c76e17145 Close #2171:
- Apply returned frame quality filter in OpenH264 decoder (drop the frame if decoder returns dsRefLost dsNoParamSets, dsDepLayerLost).
 - Only publish keyframe missing event when decoder returns non-dsErrorFree (was always publishing the event when no frame is returned, while decoder may return dsErrorFree and no frame returned, e.g: when decoding parameter sets).
 - Added a bit more logs for debugging.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5925 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-17 03:46:35 +00:00
Nanang Izzuddin 7fdb4bf16d Re #2168:
- Added a new PJSUA callback on_media_event().
 - Added audio device error handling into PJSUA2.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5923 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-13 06:57:23 +00:00
Nanang Izzuddin eb94374bc8 Close #2168: Added media event for audio device error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5920 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-12 07:16:46 +00:00
Sauw Ming 3a633fecc0 Fixed #2166: Possible buffer overread if RTCP packet length is invalid
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5919 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-04 02:25:52 +00:00
Sauw Ming 12669335c6 Re #2147 (misc): Fixed incorrect typecast in Speex resampler. Thanks to Sebastian Marek for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5916 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-26 00:57:54 +00:00
Nanang Izzuddin 4957180b34 Misc (re #2147): Removed 'experimental' word for Speex resampling.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5915 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-23 10:06:51 +00:00
Nanang Izzuddin f43b6cb0aa Fix #2163:
- Frame rate calculation is now done using temporary variable, instead of using stream decoding channel state directly.
 - Added condition for applying calculated frame rate: it must be greater than zero.
 - Fixed frame rate comparison to use float, was using integer which might get overflow on 32 bit integer platforms.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5913 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-22 03:33:42 +00:00
Sauw Ming c80b56d1ef Fixed #2160: stuck issue in ioqueue when detaching UDP media transport
- Fixed transport_udp so it won't call another read operation when being stopped.
 - Add robustness checks (assertion) in ioqueue recv, recvfrom, and accept to prevent the same op key being used twice. 



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5907 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-07 04:34:01 +00:00
Sauw Ming ac7e0e618f Re #2157: Clear the callback rtp_cb2() when detaching transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5903 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-05 00:55:21 +00:00
Sauw Ming 91358a9135 Re #2147 (misc): Removed null video device declaration, which has no implementation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5902 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-05 00:47:05 +00:00
Nanang Izzuddin 2bdc03bf22 Misc (re #2147): Assertion in pj_sockaddr_cp() when pjmedia_transport_attach() is called with rem_rtcp zero initialized (thanks Lauri Vänskä for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5901 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-02 06:45:58 +00:00
Sauw Ming 2de667c542 Re #2157: Minor change: prioritize rtp_cb2() and add more robustness
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5898 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-17 00:52:26 +00:00
Sauw Ming 1b030ecdb7 Fixed #2157: Update media transport adapter sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5897 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-16 12:03:21 +00:00
Riza Sulistyo aedbbbbdb9 Re #2147 (misc): Call pj_bzero() to frame_out to avoid undefined value for
bit_info. Thanks to Sai Krishna for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5894 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-02 07:13:16 +00:00
Sauw Ming 1dc36f9a74 Re #2147 (misc): Add assertion in pjmedia_port_info_init() to prevent division by zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5890 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-24 02:45:20 +00:00
Nanang Izzuddin b02d7b6b01 Close #2152: Updated video stream to delay video frame decoding, the minimum delay is configurable via PJMEDIA_VID_STREAM_DECODE_MIN_DELAY_MSEC.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5887 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-19 08:26:41 +00:00
Sauw Ming fdca1bd954 Re #2059 (misc): re r5873, add more comment in the code.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5874 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-03 07:45:04 +00:00
Sauw Ming fdcece45bf Re #2059 (misc): Add log for error info when Darwin capture session fails to start running or encounters an error during runtime.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5873 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-03 07:36:46 +00:00
Sauw Ming 7db2028ec2 Re #2103:
A couple of improvements:
- Now initialize both video port's renderer AND capture buffer
- Support RGB format as well.

Known limitation: YUV currently only supports I420 and YV12
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5868 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-28 02:00:05 +00:00
Sauw Ming 657df2b09e Re #2103: Darwin's capture device is passive, thus the video port's clock will fetch the frames much earlier than when the device is ready, getting zero frames and resulting in green screen on the remote side.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5867 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-23 04:48:03 +00:00
Sauw Ming 34de9fcee0 Re #2103: Move the black screen initialization of the renderer to pjmedia_vid_port_start() instead
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5866 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-23 04:45:13 +00:00
Sauw Ming 4fcfc942d8 Fixed #2139: Fix potentially incorrect buffer allocation for video port renderer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5864 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-21 08:06:43 +00:00
Nanang Izzuddin f654c5aa08 Close #2103: Initiate video port frame buffer with black for I420 & YV12 formats.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5862 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-20 05:30:01 +00:00
Nanang Izzuddin d641faa661 Re #2096: Fixed some compile warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5860 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-16 02:39:36 +00:00
Nanang Izzuddin 893cd9d20b Re #2096: Fixed bug of r5855, SRTP encode_sdp() should not reset bypass_srtp flag in reoffer/answer scenario.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5857 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-15 10:52:28 +00:00
Nanang Izzuddin 952ddfb355 Re #2096: Answer with one SRTP keying only when offered both (thanks Wei-Wei for the feedback).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5855 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-15 02:44:53 +00:00
Sauw Ming 808e9375ae Re #2096: re r5852, fixed assertion in pj_sockaddr_cp() because the address can actually be zero if we haven't received any packets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5853 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-03 09:21:51 +00:00
Sauw Ming b6721dc614 Re #2096: DTLS updates
- Fix assertion when DTLS tries to attach transport, but the ICE transport's source RTP address hasn't been updated.
- Fix DTLS transport attachment in dtls_media_start() which misses rtcp-mux checking, causing rtcp-mux to be disabled.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5852 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-03 02:33:28 +00:00
Sauw Ming fd5674b334 Fixed #2136: Increase default ICE password length as mandated by the RFC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5850 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-01 08:34:19 +00:00
Nanang Izzuddin 2d8776016d Re #2096:
- Updated DTLS-SRTP to ignore stray packet after DTLS nego has been completed.
 - Added few debugging logs.
 - Fixed false SSL error.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5847 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-27 06:16:26 +00:00
Sauw Ming 1db5b2167d Re #2059 (misc): List ALSA audio device even if it fails to open
If an ALSA audio device cannot be opened for recording and playback, it may mean that they are temporarily busy (such as currently being used by another app), so we should still list it.

Thanks to Tobias Schneider for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5846 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-27 02:58:41 +00:00
Nanang Izzuddin 5852395694 Re #2096:
- Added new error code for sending RTP/RTCP failure when DTLS-SRTP nego is in progress.
 - When sending RTP/RTCP fails, only print error message once for consecutive same errors.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5845 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 07:19:39 +00:00
Sauw Ming e98553fbcb Re #2126: Create thread when creating the event manager, which is required for video. Also add more doc about this in pjmedia_event_mgr.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5843 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 03:20:03 +00:00
Riza Sulistyo 8dcaa4496d Re #2126: Add rtcp_fb.h and rtcp_fb.c to pjmedia project file for VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5832 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 07:03:57 +00:00
Sauw Ming 2cfde147cc Fixed #2131: Incorrect Opus fmtp settings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5831 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 06:35:57 +00:00
Sauw Ming f5b93b5f5a Fixed #2128: Add feature to allow responding incoming INVITE/re-INVITE asynchronously and set the SDP answer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5828 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-20 02:19:41 +00:00
Nanang Izzuddin d0b08f08ae Re #2126: Added rtcp_fb.c to Makefile and fixed compile warnings on gcc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5827 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-19 07:25:17 +00:00
Nanang Izzuddin f61de805c8 Re #2126: Implemented incoming RTCP-FB handling, i.e: parse and notify application via PJMEDIA event framework.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5825 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-17 08:11:17 +00:00
Nanang Izzuddin 4028a34cd9 Re #2096: Fixed silly mistake of missing a comma in r5823.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5824 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-16 08:04:02 +00:00
Nanang Izzuddin 8ebab77c7f Re #2096:
- For better interoperability, check remote support for DTLS-SRTP by inspecting SDP a=fingerprint availability instead of UDP/TLS/SRTP/SAVP.
 - Bailout DTLS-SRTP when SDP a=fingerprint is not available.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5823 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-16 07:35:52 +00:00
Nanang Izzuddin 8a883d4ffb Close #2126: Initial implementation of RTCP Feedback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5820 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-12 08:22:31 +00:00
Nanang Izzuddin f31f77289b Misc (re #2059): Updated configure script to:
- make sure that C++ compiler is available, and
 - disable ALSA when ALSA development library is not found.

Thanks Alexander Traud for the feedbacks.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5814 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-26 07:08:24 +00:00
Nanang Izzuddin 147c1021fd Misc (re #2059): Fixed various compile warnings on GCC 8.1 (thanks Alexander Traud for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5813 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-25 07:56:57 +00:00
Riza Sulistyo 1a7c9f8882 Re #2059 (misc): Fixed some error on transport_srtp.c after #2097 + #2096.
- Fixed nullptr exception, because opt pointer might not be set.
- Remove assertion to check pool and sdp in pjmedia_transport_media_start().
Thanks to Ciro Ferraiuolo for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5811 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-22 17:13:02 +00:00
Nanang Izzuddin 8bf2192722 Fixed #2122: Reorder supported format list in Android camera to have I420 before YV12 & NV21.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5810 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-22 08:22:01 +00:00
Nanang Izzuddin 94f40384f8 Fixed #2118:
- Stream buffer calculation is now based on maximum bitrate and maximum receiving frame size.
 - Added buffer size check when getting frame from jitter buffer, pjmedia_jbuf_get_frame*() specification has been updated that 'size' param is now input and output (was output only).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5803 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-06 08:38:29 +00:00
Nanang Izzuddin ba59059944 Re #2089:
- Set default max Opus RX frame length, i.e: param.info.max_rx_frame_size, to 1275. This is to avoid issue of truncated frame in jitter buffer when incoming frame length gets increased (after remote Opus encoder changes Opus params on the fly, e.g: ptime, VBR/CBR, sampling rate). Thanks Marcus Froeschl for the report, the investigation, and the solution.
 - Fixed pjmedia_codec_opus_set_default_param() to initiate codec param with current default settings.
 - Fixed some compile warnings.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5799 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-30 07:41:23 +00:00
Nanang Izzuddin 311d70ad13 Re #2096:
- Fixed memory leak due to not destroyed DTLS-SRTP keying (when it is not active).
 - DTLS-SRTP must not destroy itself, keying destroy must be initiated by SRTP.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5794 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-18 07:12:41 +00:00
Sauw Ming 2eaf3e7653 Fixed #2114: Reset VideoToolbox on iOS when app switches from background to active
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5793 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-18 02:29:04 +00:00
Sauw Ming a7cea667a3 Closed #2113: Implement conference signal level adjustment for a specific connection
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5792 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-15 08:23:44 +00:00
Sauw Ming d44bf2999a Re #2059 (misc): Related to #2031. Add compile-time config for L16 48KHz.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5791 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-14 01:24:43 +00:00
Nanang Izzuddin de3a19fa3d Re #2087: Fixed compile error on iOS target: undeclared identifier 'pjmedia_rtp_hdr'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5790 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-10 08:50:51 +00:00
Nanang Izzuddin 3d718197d7 Misc (re #2059): Frame timestamp not set in get_frame_from_buffer() (thanks Giorgio Alfarano for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5789 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-10 04:01:13 +00:00
Sauw Ming ab6022bae3 Fixed #2087: Support for RTP and RTCP multiplexing
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5788 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-09 06:58:48 +00:00
Sauw Ming 72aee8feda Fixed #2111: Add compile-time setting to specify DTMF duration in ms
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5786 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-24 05:27:57 +00:00
Sauw Ming 469fffc0de Fixed #2110: Incorrect DTMF duration/timestamp for codecs with RTP timestamp unit not using actual sampling rate
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5785 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-23 09:30:55 +00:00
Nanang Izzuddin 852b4f0273 Re #2096: Start UDP transport earlier to allow early DTLS-SRTP nego.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5783 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-18 07:45:46 +00:00
Nanang Izzuddin 2eb03533a1 Re #2096: added log about crypto setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5782 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-18 03:05:59 +00:00
Nanang Izzuddin 7cdd970880 Re #2096:
- Fixed DTLS-SRTP issues with AEAD_AES_256_GCM crypto, e.g: material buffer length too short, silly mistake of missing comma in PJSIP-OpenSSL crypto map.
 - Fixed SRTP error PJMEDIA_SRTP_ESDPREQCRYPTO when crypto count is set to zero and SRTP is in mandatory mode.
 - Fixed SRTP transport attach where stream RTP/RTCP reception callbacks may be overriden by DTLS-SRTP.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5781 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-17 10:52:33 +00:00
Riza Sulistyo 2517f1e5ec Re #2096: When checking hash algo, don't use case sensitive comparision.
Thanks to Christian Scheid for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5780 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-12 00:48:20 +00:00
Riza Sulistyo 1d030de05f Re #2059 (misc): Fix some warnings related to use of external Portaudio.
Thanks to Alexander Traud for the report and patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5779 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-09 12:30:48 +00:00
Sauw Ming 8601a535eb Re #2059 (misc): Comment unused const to prevent compiler warning
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5773 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-03 04:05:41 +00:00
Sauw Ming ec76b5aa04 Re #2059 (misc): Remove warning of unused functions if no audio codecs is enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5772 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-03 00:57:44 +00:00
Sauw Ming ebebac11ec Re #2059 (misc): Removed warning of unused variable
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5770 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 06:34:33 +00:00
Sauw Ming 970752f845 Re #2091: Removed warning of unused function
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5769 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 06:25:54 +00:00
Sauw Ming 1519ac1bdc Fixed #2106: Fixed SID counter for AMR-WB
Thanks to Alexander Traud for the patch



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5766 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 05:53:37 +00:00
Sauw Ming 3e7ac78d81 Re #2059 (misc): Fixed incorrect assertion in pjmedia stream
Thanks to Vyacheslav Yamont for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5764 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-02 05:03:50 +00:00
Riza Sulistyo 111322c0e1 Re #2059 (misc): Don't include test app (exe) when building for Android.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5761 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-27 05:35:03 +00:00
Sauw Ming cea6909212 Re #2059: Fixed the ordering of CXXFLAGS to prevent build issue on Android, such as below:
In file included from /android-ndk-r15c/platforms/android-15/arch-arm/usr/include/linux/posix_types.h:41:0,
                 from /android-ndk-r15c/platforms/android-15/arch-arm/usr/include/sys/types.h:37,
                 from /android-ndk-r15c/platforms/android-15/arch-arm/usr/include/stdio.h:50,
                 from ../../pjlib/include/pj/compat/string.h:39,
                 from ../../pjlib/include/pj/string.h:29,
                 from ../include/pjmedia/frame.h:28,
                 from ../include/pjmedia/port.h:30,
                 from ../include/pjmedia/codec.h:29,
                 from ../include/pjmedia-codec/types.h:29,
                 from ../include/pjmedia-codec/openh264.h:22,
                 from ../src/pjmedia-codec/openh264.cpp:19:
/android-ndk-r15c/sysroot/usr/include/arm-linux-androideabi/asm/posix_types.h:33:37: fatal error: asm-generic/posix_types.h: No such file or directory
 #include <asm-generic/posix_types.h>



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5757 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-19 00:26:55 +00:00
Sauw Ming 17d09ee571 Re #2059: Allow multiple codecs in SDP answer when creating SDP neg with remote offer
Thanks to Alexey Ermoshin for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5756 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-16 07:54:41 +00:00
Nanang Izzuddin 922b4e2ed6 Close #2100:
- Added new APIs:
   * PJMEDIA: pjmedia_srtp_enum_crypto(), pjmedia_srtp_enum_keying()
   * PJSUA: pjsua_config.srtp_opt, pjsua_acc_config.srtp_opt, pjsua_srtp_opt_default()
   * PJSUA2: AccountMediaConfig::srtpOpt, Endpoint::srtpCryptoEnum()
 - Deprecated PJSUA callback on_create_media_transport_srtp() (not removed yet, just warnings).
 - Slightly refactored SRTP code:
   * Fixed potential issue with on_create_media_transport_srtp(), some PJSUA internal values in pjmedia_srtp_setting may be overridden by app.
   * Fixed few issues in SRTP and keying mechanism, e.g: premature local SDP modification (it should be done after verification).
   * Potential minor backward compatibility issue: default value of pjmedia_srtp_setting.crypto_count is now zero, previously it was initialized with all crypto via pjmedia_srtp_setting_default(), actually zero and all cryptos in this setting semantically are the same.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5755 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-15 03:00:59 +00:00
Sauw Ming 1780e6c5df Re #2098: Fixed insufficient buffer length to avoid message truncation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5753 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-08 23:54:40 +00:00
Sauw Ming 106ec876a3 Fixed #865: More clever RTP transport remote address switch
The summary of changes:
- To solve no 2:
Add callback rtp_cb2(pjmedia_tp_cb_param *param) which allows application to get more info from the media transport, such as the packet's source address.
- To solve no 3:
Add compile time option PJMEDIA_TRANSPORT_SWITCH_REMOTE_ADDR (by default enabled). Currently, there are already runtime options PJMEDIA_UDP_NO_SRC_ADDR_CHECKING and PJMEDIA_ICE_NO_SRC_ADDR_CHECKING, but there are a few drawbacks:
 * the options are not exported to the higher level, such as stream, or pjsua.
 * the options are separate for each transport, UDP and ICE, there's no single option to do this.
- To solve no 1:
Using the new rtp_cb2() callback, move the functionality to check the packet's source address to the stream/video stream.
By checking the RTP pt and SSRC, there are a few advantages:
 * When receiving packets from multiple sources, stream can choose the packet with the correct SSRC as advertised from the SDP, and discard the others (see also ticket #1366).
 * If remote address switch is enabled, a faster switch can be achieved as soon as packet with correct ssrc is received, instead of waiting for several consecutive packets (according to setting PJMEDIA_RTP_NAT_PROBATION_CNT).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5752 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-08 02:01:26 +00:00
Nanang Izzuddin 6d20076196 Re #2096:
- Fixed crash in media transport when application calls detach() while the transport only implements detach2().
 - Avoid assertion in UDP media transport when calling detach() without previously calling attach().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5750 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-06 07:42:54 +00:00
Nanang Izzuddin 4a5dc5711d Re #2096: Fixed assertion in SDP answerer when its SRTP is disabled. This is an SDES issue, but related to DTLS-SRTP works (all SRTP keyings have been refactored for DTLS implementation).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5749 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-27 07:44:26 +00:00
Sauw Ming b8226493a8 Fixed #2098: Add SDP attribute SSRC and CNAME
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5748 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-27 03:37:53 +00:00
Nanang Izzuddin 486266b850 Close #2097: Updated UDP media transport to start socket read operation in pjmedia_transport_media_start().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5747 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-26 10:14:27 +00:00
Nanang Izzuddin 4223637bd0 Fixe #2096:
- Fixed re-INVITE scenario: always generate SRTP attr in SDP re-offer/answer as both offerer/answerer (as long as SRTP is not disabled of course), currently it does not generate SRTP attr if active session does not use SRTP.
 - Fixed bug in retrieving video stream info from SDP that caused DTLS transport (UDP/TLS/RTP/SAVP) getting rejected.
 - Added pjsua app param '--srtp-keying=0/1' to choose SRTP keying to be used in the outgoing offer (0=SDES (default), 1=DTLS-SRTP).
 - Few minors, e.g: adding transport_srtp_dtls/sdes.c to pjmedia MSVC2015 project.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5746 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-26 07:50:18 +00:00
Sauw Ming 12affd6c35 Fixed #2093: Crash when parsing SDP with an invalid media format description
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5741 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-21 02:32:36 +00:00
Sauw Ming 6229154cb1 Fixed #2092: Crash when receiving SDP with invalid fmtp attribute
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5740 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-21 02:28:02 +00:00
Riza Sulistyo 0be14c8181 Fix #2091: On iOS11, replace_udp_sock() might fail and lead to unusable UDP transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5737 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-15 13:57:11 +00:00
Sauw Ming c7d20d5111 Fixed #2089: Support receiving Opus packets with various frame lengths
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5734 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-12 06:18:22 +00:00
Sauw Ming a6fe0de627 Re #2084: Make sure the output size of opus_decode() doesn't exceed the available frame size.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5731 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-24 02:37:39 +00:00
Sauw Ming b1bb629773 Fixed #2084: Opus decode/recovery issue when FEC or PLC is enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5728 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-18 04:02:00 +00:00
Sauw Ming c4279ec635 Re #2082: Initial implementation of GnuTLS support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5725 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-15 08:52:29 +00:00
Riza Sulistyo 6a3a672e33 Close #2073: Enable wav playlist to play WAV files with extra chunks after DATA chunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5711 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-07 03:03:50 +00:00
Sauw Ming 2403173ecd Re #2059 (misc): Fixed ffmpeg H264 unpacketization error due to uninitialized unpack_nal_start
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5705 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-29 02:23:08 +00:00
Sauw Ming efb1a7f102 Fixed #2068: Add compile time option to enable/disable simple AGC in conference
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5702 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-27 03:29:07 +00:00
Nanang Izzuddin c8847d0d12 Re #2057: Fixed compile error on MSVC2005 due to var declaration not in the beginning of block (C89 interop).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5698 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-21 06:00:21 +00:00
Sauw Ming 19686af25f Re #2063: Add more doc in other parts of the library
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5697 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-17 04:07:43 +00:00
Riza Sulistyo 8c64f49acb Re #2059 (misc): Set conference's port rx_level to 0 when get frames from the
port is skipped. Thanks to Kal Conley for the original patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5696 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-16 13:25:04 +00:00
Sauw Ming 3eb2db9847 Fixed #2057: Optimization: Improve conference mix loop performance
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5687 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-09 22:48:17 +00:00
Riza Sulistyo 8438c3eab6 Re #2045 (misc): Fix various warning raised from using clang 4.0.1. Thanks to
Alexander Traud for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5678 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-01 04:55:29 +00:00
Sauw Ming 0a1f0aa252 Fixed #2053: Update pjsua_get_snd_dev() info before calling on_snd_dev_operation() callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5677 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-27 06:30:50 +00:00
Sauw Ming 773323dd8f Re #2045 (misc): Continuation of r5673: Set endpt to NULL after iLBC deinit(). Thanks to Kal Conley for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5674 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-16 10:20:18 +00:00
Sauw Ming 39fe6052d5 Re #2045 (misc): Prevent iLBC codec to be initialized more than once
Thanks to Kal Conley for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5673 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-16 03:49:22 +00:00
Riza Sulistyo 93c3c1bd29 Re #2045(misc): To prevent assertion, don't copy rem_rtcp on pjmedia_stream_create()/pjmedia_vid_stream_create() if address is not set.
Thanks to Lauri Vanksa for the Report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5671 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-06 06:54:37 +00:00
Riza Sulistyo 2838ed1049 Close #2050: Enabling AES-GCM when using external libSRTP version 1.x or 2.0.0.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5670 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-05 04:40:20 +00:00
Sauw Ming f9a385c4f0 Re #2045 (misc): Fix PLC from being active too early
Thanks to Kal Conley for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5667 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-29 02:36:49 +00:00
Riza Sulistyo e58d5bfec9 Re #1994(misc): Fix warning on VS2015 when enabling video, opus, webrtc ec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5659 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 02:58:42 +00:00
Sauw Ming 51519471d8 Re #1993: With the update of bundled libSRTP to 2.1, external SRTP needs to be of version 2.x as well. This changeset will allow external SRTP users the option to continue using their current version 1.x.
* Also add autodetection of external SRTP version via the configure script.

Thanks to Alexander Traud for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5656 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-22 02:42:22 +00:00
Riza Sulistyo e307352851 Re #1994(misc): Fixed various warnings on VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5654 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-20 04:34:27 +00:00
Sauw Ming 9b1eaa7903 Re #2022: Enable encode_decode_test() for Video Toolbox in pjmedia video codec unit tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5652 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-20 02:09:42 +00:00
Sauw Ming 6327086923 Re #1994 (misc): Fixed various warnings thrown by GCC 6.3. Thanks to Alexander Traud for the info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5646 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-08 11:16:09 +00:00
Riza Sulistyo 087584a93f Re #2035: Don't include srtp.h on pjmedia config.h, which raise error when including PJSIP from install dir.
Thanks to Peter Koletzki for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5643 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-22 04:59:57 +00:00
Sauw Ming cc2ecbfb28 Re #1994 (misc): Prevent possible overflow in video bps calculation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5642 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-17 02:48:38 +00:00
Riza Sulistyo add2753ff5 Re #2035: Should check enough space for (MAX_TRAILER_LEN+4) before srtp_protect_rtcp().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5640 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 13:31:14 +00:00
Riza Sulistyo 1932df820e Fix #2035: Make sure transport SRTP buf size is sufficient before calling
srtp_protect() and srtp_protect_rtcp().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5639 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 10:44:10 +00:00
Sauw Ming e34fa7ed5e Fixed #2032: NAT64 support for IPv4 interoperability
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5636 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 02:51:59 +00:00