Commit Graph

5935 Commits

Author SHA1 Message Date
nanangizz 99660f6add Changed version to 2.12 2022-02-24 14:54:38 +07: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
Nanang Izzuddin 062204bd5d
Fix cseq generation in pjsip_dlg_create_request(). (#2996) 2022-02-24 13:17:06 +07:00
sauwming c4531e0ddc
Hangup call in crossover scenario between CANCEL and 200 response (#2994) 2022-02-23 12:39:45 +08:00
sauwming 088690b607
Fixed failed pjsua test due to incorrect SRTP ROC check (#2993) 2022-02-23 12:10:44 +08:00
Riza Sulistyo 88b91260ad
Handle padding included on image from Camera2 API (#2991) 2022-02-22 11:47:09 +08:00
Riza Sulistyo 0ac02c2c8d
Prevent memory leak on OpenH264 due to multiple decoder allocation (#2987) 2022-02-22 11:41:07 +08:00
sauwming b5af6819a0
Fixed failure to resume video when unholding the call (#2988) 2022-02-22 11:40:10 +08:00
sauwming 87a63f1725
Reenable periodic RTP transmission on silence (#2989) 2022-02-22 11:39:10 +08:00
Nanang Izzuddin db3235953b
Merge pull request from GHSA-ffff-m5fm-qm62
* Update pjsip_ua_unregister_dlg():
- update the hash key if the dialog being unregistered is used as hash key.
- add an assertion check to make sure that the dlg_set to be removed is valid (can be found in the hash table).

* Change hash key string comparison method.
2022-02-21 07:24:52 +08:00
sauwming 9b37e587bc
Add feature to init SRTP ROC and check if SRTP ROC needs to be reset/maintained (#2846) 2022-02-18 10:06:29 +08:00
sauwming 3c2219e4d3
Fixed Android build issues on NDK r23 and r24 (#2974) 2022-02-16 11:38:44 +08:00
sauwming b1d29fd4e7
Fixed call hangup crash when ending session fails (#2980) 2022-02-16 11:27:35 +08:00
sauwming e79d28e665
Fixed iOS ipjsua app inability to auto answer (#2975) 2022-02-15 19:28:30 +08:00
Tobias Schlager d2387d0121
Avoid assertions when using PJ_HAS_THREADS 0 (#2958) 2022-02-15 17:10:10 +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
sauwming 691c687f66
Fixed assertion in multipart test (#2972) 2022-02-15 11:19:13 +08:00
Riza Sulistyo 835d4073d7
Fix decode issue on FFMpeg 4.3.2 (#2976) 2022-02-15 10:56:01 +08:00
sauwming c9715f4ffc
Modified default C++ compiler for configure-iphone (#2977) 2022-02-15 10:55:12 +08:00
sauwming eda6fb5894
Fixed build failure for libwebrtc-aec3 (#2978) 2022-02-15 10:51:12 +08:00
Grazhdan Oleg 14b0ef44df
Fix incorrect pjmedia_sdp_neg_state in case of SDP parsing error (#2908) 2022-02-14 17:27:11 +08:00
Krzysztof Marciniak f5249ca70e
Added pjsip_tsx_set_timers to change timers at runtime (#2781)
* Added pjsip_tsx_set_timers to change timers at runtime

Added new function pjsip_tsx_set_timers in sip_transaction.c
which allows to change session timers during runtime.
It also allows to change timer values independently,
currently all timers are set at various ratios from
t1 during init. This was required for server which could
change timeout configuration on runtime, but could be
usable in other projects.

* Add synchronization of timer values in pjsip_cfg().

Add synchronization of timer values to pjsip_cfg() and another
function to (re)synchronize timer values from pjsip_cfg(),
`pjsip_tsx_initialize_timer_values()`.

`pjsip_tsx_set_timers` now accepts zeroed arguments to mean
that it should not change that timer value.
2022-02-14 12:49:29 +08:00
George Joseph 668a828631
Add additional unit test options (#2961) 2022-02-11 12:28:03 +08:00
sauwming a5fa35305a
Fixed OpenSSL server context initialization (#2973) 2022-02-11 09:36:49 +08:00
Riza Sulistyo 9ffd718d17
Add support to boringssl (#2856) 2022-02-11 08:32:01 +07:00
Andreas Wehrmann c4bad5df14
do not #define snprintf and vsnprintf on Visual Studio 2015 and newer (#2971) 2022-02-11 09:12:23 +08:00
sauwming c765e75252
Fix Windows CI build to use VS 2022 2022-02-10 16:28:53 +08:00
jimying dc2e5c6546
fix vid_streamutil not working on mac (#2875) 2022-02-10 10:57:57 +08:00
sauwming ddefd578b1
Fixed ice session assertion when there's no checklist (#2955) 2022-02-10 10:57:07 +08:00
sauwming 74c0309d80
Race condition between Apple SSL destroy and event callback (#2825) 2022-02-09 17:02:49 +08:00
sauwming 2caced6fcf
Fix failure to manually reply re-INVITE (#2968) 2022-02-09 14:27:12 +08:00
Nanang Izzuddin 639e7dc7e6
Add Oboe audio device backend for Android (#2707) 2022-02-08 13:58:29 +08:00
sauwming 119623b633
Misleading log when answering a call in CONFIRMED state (#2950) 2022-02-08 12:02:37 +08:00
sauwming 5beae3816a
OpenSSL server-side enhancements to support session reuse and SNI (#2954) 2022-02-08 11:54:01 +08:00
Nanang Izzuddin 2d5a37f92e
Replace deprecated Android Camera framework with Camera2 (#2797) 2022-02-08 11:39:27 +08:00
Nanang Izzuddin 6bda5dfb6b
NAT64: handle special case where server put FQDN (which resolved to IPv6 only) in SDP answer. (#2926) 2022-02-08 11:33:51 +08:00
Nanang Izzuddin e0056814a9
Avoid double BYE when pjsua_call_hangup() is called multiple times (#2859) 2022-02-08 11:28:44 +08:00
Nanang Izzuddin c7c4ebc7b0
Add check if module has been unregistered in mod_ua module (in sip_ua_layer.c). (#2840) 2022-02-08 11:28:17 +08:00
Nanang Izzuddin c12d12cab7
Fix deadlock after immediate hangup on video call (#2837) 2022-02-08 11:27:42 +08:00
Riza Sulistyo 4fa7528c9d
Allow registration refresh to continue when REGISTER response contains expires parameter set to 0 (#2809) 2022-02-08 11:24:48 +08:00
Riza Sulistyo 313d536c28
Implement verify callback to TLS connection (#2962) 2022-02-08 11:15:38 +08:00
sauwming d979253c92
Merge pull request from GHSA-qcvw-h34v-c7r9
* Perform buffer length checks

* Add asssertion sanity checks
2022-02-08 08:15:07 +08:00
George Joseph 551273f639
Additional multipart improvements (#2953)
Added the following APIs:
pjsip_multipart_find_part_by_header()
pjsip_multipart_find_part_by_header_str()
pjsip_multipart_find_part_by_cid_str()
pjsip_multipart_find_part_by_cid_uri()
2022-02-02 09:30:14 +07:00
sauwming 077b465c33
Merge pull request from GHSA-7fw8-54cv-r7pm 2022-01-26 13:28:57 +08:00
sauwming 22af44e68a
Merge pull request from GHSA-m66q-q64c-hv36
* Prevent OOB read during RTP/RTCP parsing

* Add log

* Add more logs
2022-01-26 08:03:48 +08:00
sauwming a5e052f2a5
Fix video issues upon format change (#2911) 2022-01-25 08:39:46 +08:00
sauwming f99639fede
Fix aviplay crash when using ffmpeg video codec (#2940) 2022-01-24 11:40:15 +08:00
sauwming c9a75bed34
Add parameter assertion check in pjsip_uri_get_uri() (#2893) 2022-01-19 19:22:06 +08:00
Nanang Izzuddin ecd18ee4d4
Fix issue of not rescheduled keep-alive timer for Flow-Timer when ka_interval (UDP keep-alive interval setting) is zero/disabled. (#2943) 2022-01-18 13:41:57 +08:00