Commit Graph

1269 Commits

Author SHA1 Message Date
sauwming 40a06fba2c Misc (re #3087): Update iOS sample app projects and fix build warnings 2022-11-01 12:02:49 +08:00
Riza Sulistyo 74569f926a
Fix build warning and error for UWP (#3276)
* Fix build warning and error for UWP

* Include in6_addr.h directly on UWP
2022-10-27 10:47:21 +07:00
Nanang Izzuddin c12693f3d9
Option to use SIP UPDATE for refreshing calls in IP change (#3146)
* Option to use SIP UPDATE for refreshing calls in IP change

* Updated docs

* Add AccountIpChangeConfig.reinvUseUpdate in PJSUA2

* Add logs for debugging and display menu 'I' for IP change in pjsua app (the IP change action was already there just hidden).
2022-10-19 09:12:59 +07:00
orbea c804b31f85
Fix build fail on alpine linux (with musl libc) : no execinfo.h (#3263)
The execinfo.h header is GNU specific and is not available with musl.

Gentoo Issue: https://bugs.gentoo.org/867343

Co-authored-by: jimying <yingqw.js@gmail.com>
2022-10-17 13:32:23 +08:00
Nanang Izzuddin 1840604af5
Add two VS2015 projects for CSharp: SWIG binding builder & sample app (#3217) 2022-09-29 09:08:23 +08:00
liviu-rolo b21000ec65
typos (#3118) 2022-09-29 08:58:22 +08:00
Riza Sulistyo e5c425d570
Fix ASAN error when app_init() failed (#3224) 2022-09-19 17:09:02 +07:00
Benny Prijono c03ab41ed5
Documentation fixes for docs.pjsip.org v2.0 project (#3202)
* Improve robustness of sample apps. Fixing crash in aviplay

* Changes in documentation

* Add first pjsua2 hello world sample (from PJSUA2 guide)

* Fix doxygen documentation for docs.pjsip.org v2

* Add make clean-doc target

* Replace Trac ticket URL with GitHub issues URL

* Remove pjsip-book because the correct one is in pjproject_docs
2022-08-09 06:16:16 +07:00
Riza Sulistyo 86b6711777
Fix configure error on android NDK r25 (#3200)
* Fix configure error on android NDK r25

* Pass libc++_shared.so path to Makefile (java/csharp)

* Only pass the STD Cpp lib and env var rename
2022-08-05 14:49:15 +07:00
sauwming 122a2ce343
Fix SWIG C# build script to consider OS other than iOS and Android (#3199) 2022-08-04 11:43:17 +08:00
sauwming 12f854135a
Update third party media sample implementation (#3193) 2022-07-28 09:53:17 +08:00
Nanang Izzuddin 6ff18b4f8a
Lock ordering issue in video conference bridge (#3183) 2022-07-21 15:10:54 +07:00
sauwming 82247cb8c0
Add UPnP support for SIP UDP and media UDP transports (#3184) 2022-07-21 11:25:05 +08:00
sauwming 72311468f2
Perform async rendering in the main thread on Mac & iOS (#3166) 2022-07-07 14:56:56 +08:00
Nanang Izzuddin 80d3385b69
Update VAD docs/help (#3165)
Update VAD docs/help, some codecs (e.g: Opus & SILK) have VAD disabled by default.
2022-07-05 09:40:47 +07:00
Nanang Izzuddin db39b275f6
Update SWIG symbols.i for WebRTC AEC3 (#3148) 2022-06-20 12:15:48 +08:00
Bastian Triller 3c2d4b3ae2
fix typos (#3096) 2022-05-05 13:46:43 +08:00
sauwming 7231318c9c
Fixed build failure in Xamarin C# project (#3032) 2022-05-04 09:32:55 +08:00
Nanang Izzuddin 41023dad10
Some callbacks not invoked in call replace in PJSUA2 (#3059)
Warning: potential backward incompatibility issue, previously the replacing call can use any account (selected using pjsua_acc_find_for_incoming() and app may override via callback), now it is forced to use the same account.
2022-04-26 13:30:41 +07:00
Riza Sulistyo 6713e02036
Handle crash when converting std::string with non UTF-8 character on Android (#3065)
* Handle crash when converting std::string with non UTF-8 character on Android

* Add convert Java String to std::string
2022-04-26 10:29:07 +07:00
liviu-rolo 516c69ab87
minor output changes: keystroke_help (#3011) 2022-03-25 09:14:15 +08:00
liviu-rolo 4a8cf9f3fc
"--version" command line option does not work (#3003) 2022-03-03 12:43:14 +08:00
sauwming 6f197385c7
Miscellaneous fixes (#2969)
* Suppressed various compilation warnings
* Fixed CodeQL warning
* Fixed build warning on Android and Linux
* Fix build warning on Visual Studio
* Update target Android SDK version to 29 (for pjsua2 & app), to avoid gradle error: 'Google Play requires that apps target API level 29 or higher'.
* Add support for Camera2 API to ipjsua android app.
* Fix assertion on Win32 app (MSVC2005) because ICE transport info size is 160 bytes while the allocated buffer is just 144 bytes.
* Enable python unit test on windows for github actions.
* Avoid assertion in pjsua test caused by double calling of pjsua_conf_remove_port()
2022-02-24 14:46:01 +07:00
sauwming 3c2219e4d3
Fixed Android build issues on NDK r23 and r24 (#2974) 2022-02-16 11:38:44 +08:00
sauwming e79d28e665
Fixed iOS ipjsua app inability to auto answer (#2975) 2022-02-15 19:28:30 +08:00
Riza Sulistyo d5477c1eed
Release wav player and recorder pool to clean up when calling pjsua_destroy() (#2979)
* Release wav player and recorder pool on pjsua_destroy2()

* Modification based on comments

* Modification based on comments

* modification based on comments
2022-02-15 13:21:38 +07:00
Florian Xaver 4cc86a6a3c
Fix documentation and usage of txdata ref counter (#2957) 2022-02-15 13:53:47 +08:00
jimying dc2e5c6546
fix vid_streamutil not working on mac (#2875) 2022-02-10 10:57:57 +08:00
Nanang Izzuddin 639e7dc7e6
Add Oboe audio device backend for Android (#2707) 2022-02-08 13:58:29 +08:00
Nanang Izzuddin 2d5a37f92e
Replace deprecated Android Camera framework with Camera2 (#2797) 2022-02-08 11:39:27 +08:00
sauwming f99639fede
Fix aviplay crash when using ffmpeg video codec (#2940) 2022-01-24 11:40:15 +08:00
Florian Xaver e84b3318d7
Support Digest AKA authentication in PJSUA2 (#2785) 2022-01-17 10:18:00 +08:00
ryancaicse bc32549bb3
Fix some resource leaks (#2928) 2021-12-27 10:05:22 +08:00
George Joseph f395420e3f
pjsip-apps: Set initial log level to 1 (#2912)
When pjsua is started or when the python bindings are initialized
tons of debug log messages are emitted before the command line
"log-level" arguments are processed.  This causes quite a bit
of unnecessary log space to be used.  To combat this,
pj_log_set_level(1) is now called before anything else.  The
command line arguments can, of course, still set any level
later on.
2021-12-09 15:44:37 +08:00
Nanang Izzuddin 7dcf16dca5
Fix issues in updating media dir to "none" in the middle of a call (#2906)
* Fix issues in updating media dir to NONE in the middle of a call

* Update PJSUA2 CallSetting::mediaDir declaration for SWIG. Note: adding SWIG template for MediaDirVector as vector of pjmedia_dir enum causes some error: SWIG treats enum as int, so vector of pjmedia_dir will be wrapped as vector of int, as there is already IntVector, SWIG rejects duplicated vector of int.
2021-12-06 14:38:33 +07:00
Riza Sulistyo cc680d21e6
Change "md5" algorithm name to uppercase to comply with the standard (#2889) 2021-11-18 13:15:07 +07:00
jimying de9bdf3dc0
aviplay render window add flags border & resizable (#2868) 2021-10-29 13:47:46 +08:00
Nanang Izzuddin c87056e178
Add call dump to pjsua_media_channel_deinit() (#2855) 2021-10-20 12:45:20 +07:00
Riza Sulistyo 661a8cef67
Add support to windows on ARM build (#2807)
* Add support to ARM64 configuration for win32 build

* Add changes notes to webrtc and webrtc_aec3 third party sources

* Remove reference to libwebrtc_aec3 from libpjproject. Add reference it manually if libwebrtc_aec3 is needed.

* Fix build error on Release configuration.
2021-08-30 10:39:48 +07:00
Riza Sulistyo 115b1db6dc
Support webrtc-aec3 on windows (#2775)
* Support webrtc-aec3 on windows

* Add modification to PJSIP_NOTES
2021-07-28 14:39:47 +07:00
Florian Xaver f39de17f5f
Fix compilation of 3rdparty_media_sample (introduced by #1463) (#2770) 2021-07-28 08:45:26 +07:00
Nanang Izzuddin c80f59eb90
SDL full-screen mode fixes and enhancement (#2759)
- Add fullscreen mode PJMEDIA_VID_DEV_FULLSCREEN_DESKTOP (no video mode change), which is mapped to SDL_WINDOW_FULLSCREEN_DESKTOP.
- Fix resizing while in full-screen.
- Update PJSUA, PJSUA2 & pjsua app, e.g: fullscreen setting was boolean (fullscreen enabled/disabled), now it is enum: disabled, fullscreen, or fullscreen desktop.
2021-07-21 11:47:07 +07:00
Emre TUFEKCI 11316a3bd5
swift-C++ binding & swift pjsua2 sample app (#2723) 2021-06-11 09:52:34 +08:00
sauwming 0046373595
Add support for WebRTC AEC3 (#2722) 2021-06-03 11:50:47 +08:00
Nanang Izzuddin b7a46394d2 Misc (re #2698): Increase the RTP packet size & PCM buffer size in pcaputil sample app. 2021-05-24 17:21:37 +07:00
sauwming 1cb34f56a7
Specify media direction when making, answering, or updating call (#2705) 2021-05-17 09:58:19 +08:00
sauwming b48bae83bc Misc (re #2504): Add microphone usage permission for ipjsua swift app 2021-03-09 18:24:39 +08:00
sauwming ec78f808c5 Misc (re #2504): Fix runtime warning of UI API called on a background thread in ipjsua 2021-03-09 18:17:23 +08:00
sauwming 63981ce325 Misc (re #2504): Fix illegal threading exception in ipjsua app when running on device 2021-03-09 18:00:36 +08:00
Nanang Izzuddin 7f508cac14 Misc (re #2504): fix pjsua app, command cl only list max 4 conference ports 2021-03-09 11:12:34 +07:00
Riza Sulistyo 74c34399d6 Misc (re #2504): Suppress some compile warning on VS Windows. 2021-03-09 07:32:36 +07:00
sauwming eaf5622f6a Misc (re #2504): Remove optional libraries from ipjsua project 2021-03-08 16:53:58 +08:00
sauwming 6d0fd193c8 Update ipjsua project settings and disable use of deprecated API 2021-03-08 16:37:18 +08:00
Nanang Izzuddin 28d858ca91
Add simple Kotlin app (#2648) 2021-02-22 10:44:09 +07:00
sauwming 64cb72a581
iOS Swift sample app (#2636) 2021-02-11 10:57:01 +08:00
Alex Kalmuk 974cb47351
Add --disable-pjsua2 option for targets which lacks C++ (#2630) 2021-01-28 10:45:32 +08:00
Riza Sulistyo 5e8eb2eb13
Github action/CI for windows. (#2344) 2020-12-15 13:37:59 +07:00
Nanang Izzuddin 22b47a3673
Fix crash in starting CLI telnet when port is in already use (#2607) 2020-12-15 12:19:52 +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
sauwming 2eea0ace2b
Report disconnection event immediately when hanging up a call (#2600) 2020-12-04 10:29:45 +08:00
Nanang Izzuddin 634e7cf3d8 Misc (re #2504): Fix pjsua app: avoid using my_atoi() on non-NULL-terminated strings. 2020-11-13 17:19:16 +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
Martin Navne 047dc3862a
Add event manager to the JB simulator (#2515)
The event manager is needed for stream subscriptions.
2020-09-01 16:55:11 +08:00
Max Truxa 5925c42ea3
Pass JB discard algorithm along other JB settings (#2506) 2020-08-14 10:35:11 +08:00
Bogdan Cristea a35a53b4d9
Update vidgui sample app for video calls for Qt5 (#2415) 2020-05-18 16:08:17 +08:00
Max Truxa 97a3b349cf
Populate info format field in pjmedia_conf_get_port_info() (#2388) 2020-05-01 17:38:54 +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
byoungdale 87df84ec12
Crash in simpleua sample app due to uncreated pool (#2394)
The issue occurred if video is disabled.
Co-authored-by: sauwming <ming@teluu.com>
2020-04-29 14:10:11 +08:00
sauwming 559a5754e9
Fix indentation of symbols.i 2020-04-28 16:44:31 +08:00
sauwming e6a957551c
Update symbols.i 2020-04-28 16:42:27 +08:00
sauwming ddf48e2045
Fix parallel build failure (#2306)
Re #2300:
* Fix parallel build failure when building pjsua2 due to typo in pjsip's Makefile
* Fix parallel build failure for swig component
2020-03-19 15:35:26 +08:00
Riza Sulistyo 76f34a1d23
Add wildcard to represent "All" codec when changing codec priority on CLI mode on pjsua sample app. (#2307) 2020-02-27 17:43:02 +07:00
Perry Ismangil 5516ebfbcb
Bitrise Android builds (#2291)
* For #2281 upgrading Gradle plugin

* For #2281 upgrading Gradle plugin

* Upgrading Gradle in swig Android
2020-02-22 15:43:28 +00:00
Riza Sulistyo 2d9261c1ae Add more VS 2015 stuff to .gitignore and fix some projects settings. 2020-02-19 19:17:22 +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
Riza Sulistyo 4f035f338e Close #2105: Add option to specify SWIG bindings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6156 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 11:14:21 +00:00
Sauw Ming f73d0a2416 Re #2210: Update sample app ipjsua project files based on Xcode 11.3.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6154 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 05:25:48 +00:00
Nanang Izzuddin b99e98bb09 Close #2265: Fixed compatibility issues on Python 3.7 or above.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6152 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-04 04:47:32 +00:00
Sauw Ming c5e970e850 Re #2262: Suppressed compile warnings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6144 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-29 04:40:45 +00:00
Riza Sulistyo ec2c39edc4 Close #2262: Notify when IP change handling is completed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6137 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-28 01:47:56 +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
Nanang Izzuddin 192a6bfc43 Fix #2256: Mini refactored Android configure script:
- added CXXFLAGS & LDFLAGS parsing (from ndk-build output), CXXFLAGS was set to CFLAGS.
 - updated WebRTC instruction set to use SSE2, was generic, for Android emulator (x86 ABI).
 - updated C++ library/STL backend to use c++_shared, somehow '-lc++_static' is ignored after the refactor, also the official NDK docs mentions that c++_static may cause undefined behavior for app with multiple shared libraries (note pjsua2 app may use other shared libraries).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6120 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-19 02:57:20 +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 ab93cd51b6 Re #2210 (misc): Update JavaFX sample app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6086 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-04 06:59:57 +00:00
Riza Sulistyo 3e45db57b1 Re #2232: Fix build error for swig wrapper. This fix will allow swig to import the preprocessor in config_site.h and config.hpp.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6080 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-26 12:06:07 +00:00
Nanang Izzuddin 0dda8c8cca Close #2233: Changed enumeration approach in SWIG Java to type-unsafe enums.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6075 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-24 11:12:45 +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
Nanang Izzuddin b1f400b6d4 Fix #2216: reverted back changes in ticket #2198: r6025, r5998, r5995.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6044 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-26 05:40:42 +00:00
Sauw Ming 5e8cbdb548 Re #2209: Fixed build failure on Android due to incompatible type
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6036 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-01 08:30:17 +00:00
Sauw Ming 3f58d4d10d Fixed #2209: Insufficient variable storage to contain Expires header field/ parameter
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6035 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-01 07:12:43 +00:00
Sauw Ming e281f2e8ec Re #2147 (misc): Suppressed various warnings from XCode (iOS)
- this function declaration is not a prototype, and some typecasts



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6028 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-13 05:58:18 +00:00
Sauw Ming 428569df63 Re #2147 (misc): Suppressed warnings of unused function and misused comma
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6027 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-13 03:59:27 +00:00
Nanang Izzuddin b81fd15124 Misc (re #2147): Fixed compile warnings "dynamic exception specifications are deprecated in C++11".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6026 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-12 06:00:35 +00:00
Nanang Izzuddin bdd13d3e3a Misc (re #2147): Updated Android pjsua2 sample app: enable SRTP optional mode without requiring SIP TLS transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6012 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-28 05:21:00 +00:00
Nanang Izzuddin fb6fe27aaf Misc (re #2147): Fix Android pjsua2 sample app: call state text & call button text in call activity not updated accordingly.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6011 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-28 04:59:45 +00:00
Sauw Ming 215a173519 Re #2181: Suppressed a couple of compilation warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6008 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-27 06:34:57 +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