Commit Graph

5810 Commits

Author SHA1 Message Date
Perry Ismangil bf96913963
Create SECURITY.md (#2776)
Initial commit
2021-07-28 06:18:37 +01:00
Florian Xaver f39de17f5f
Fix compilation of 3rdparty_media_sample (introduced by #1463) (#2770) 2021-07-28 08:45:26 +07:00
Riza Sulistyo 43d1bc90d7
Avoid deadlock on unsubscribe event (#2771) 2021-07-27 11:29:38 +07:00
Nanang Izzuddin d5f95aa066
Merge pull request from GHSA-cv8x-p47p-99wr
* - Avoid SSL socket parent/listener getting destroyed during handshake by increasing parent's reference count.
- Add missing SSL socket close when the newly accepted SSL socket is discarded in SIP TLS transport.

* - Fix silly mistake: accepted active socket created without group lock in SSL socket.
- Replace assertion with normal validation check of SSL socket instance in OpenSSL verification callback (verify_cb()) to avoid crash, e.g: if somehow race condition with SSL socket destroy happens or OpenSSL application data index somehow gets corrupted.
2021-07-23 11:49:21 +08: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
santevid 05cad67f52
Fix in the SDP negotiator - if the offer's media is disabled, do not compare transports (#2763) 2021-07-13 17:36:49 +08:00
Momo Takanashi 6a700a6276
Added pj_turn_sock_connect for TURN TCP Allocations (#2754) 2021-07-13 11:17:59 +07:00
Dan Oprescu 0966d4c6dd
Fix 's default constructor to do what the documentation says. (#2762) 2021-07-12 08:54:22 +07:00
Nanang Izzuddin f7ff6b2440 Misc (re #2698): Update python test:
- Retry running pjsua upon failure (due to address-in-use error, happened quite frequently on MacOS in GitHub CI).
- Minor fixes: missing 'self', add slight delay after closing socket to reduce possibility of address-in-use error, make sure sip port is not equal to telnet port.
2021-07-08 17:14:23 +07:00
Nanang Izzuddin 277ba23257 Merge branch 'master' of https://github.com/pjsip/pjproject 2021-07-08 13:47:25 +07:00
Nanang Izzuddin 8813fe2520 Re #2760: Fix documentation of pj_grp_lock_create(), group lock reference counter is initialized with zero instead of one (thanks to Cameron Pickett for the report). 2021-07-08 13:47:10 +07:00
Riza Sulistyo 70074ede91 Linker error when building pjmedia_test, pjsip_test and sample project when using Visual Studio, some of them caused by #2753. 2021-07-07 16:47:05 +07:00
Nanang Izzuddin 8ef2a3c0d0 Re #2753: Compile error when PJSIP_AUTH_HAS_DIGEST_SHA256 is disabled (or without OpenSSL). 2021-07-06 14:46:09 +07:00
Riza Sulistyo 99a1146a10
Filter RTP based on source address early to avoid invalid RTP session update (#2713) 2021-07-06 11:33:39 +07:00
SebaLedesma abf2b4c54f
Support for SHA-256 algorithm in SIP Digest Authentication (#2753) 2021-07-06 11:17:11 +07:00
Nanang Izzuddin d962342702
Apply volume settings in opening ALSA sound device, also add input volume setting (#2755) 2021-07-06 11:11:56 +07:00
Nanang Izzuddin e36026d45b
Update and rename bug_report.md to bug_report.yml 2021-07-02 09:31:46 +07:00
lin.sun 35810cc2bb
Example command line for pjsua testing with sipp. (#2750) 2021-07-01 11:15:42 +08:00
SamVanBelle 3402d7f897
Reset SSL BIOs (#2745) (#2746) 2021-07-01 11:15:16 +08:00
Nanang Izzuddin bc6f0ee6e3
Avoid call disconnection due to request timeout when network change happens. (#2737) 2021-06-29 15:00:58 +07:00
Nanang Izzuddin dfc511df26
Update configure-android for Android NDK 22, folder 'platforms' is now removed, the script needs it to detect latest platform version. (#2739) 2021-06-29 15:00:34 +07:00
Nanang Izzuddin cb35c79f21
Allow app modify video encoding param in on_stream_precreate() (#2741) 2021-06-29 15:00:12 +07:00
Nanang Izzuddin 4dbc8fca31
Fix TCP/TLS connect issue when epoll using EPOLLONESHOT (#2747) 2021-06-29 14:59:45 +07:00
Riza Sulistyo 3844cd1b8b
Avoid deadlock when restarting SIP UDP transport due to holding pjsua lock (#2731)
* Avoid deadlock when restarting SIP UDP transport due to holding pjsua
lock.

* Add callback to lock/unlock any lock held when waiting for the read spin loop finish.

* Use simpler approach by unlocking before restarting UDP transport.

* Add doc to pjsip_udp_transport_restart() and pjsip_udp_transport_restart2() of the possibility of deadlock.
2021-06-29 14:58:22 +07:00
Nanang Izzuddin 5b591b44be
Add option --enable-speex-resample to configure script (#2742) 2021-06-29 09:17:32 +07:00
Nanang Izzuddin b88ba9be64 Misc (re #2698): Update libsamplerate license info (thanks to Olle Frimanson for the info). 2021-06-18 13:43:12 +07:00
Nanang Izzuddin a5bd5e9d44 Misc (re #2698): Update docs of TD timer in SIP transaction, which also affects tsx timeout timer for both INVITE & non-INVITE tsx since https://trac.pjsip.org/repos/changeset/3203.
Thanks to Pirmin Walthert for the feedback.
2021-06-16 17:07:53 +07:00
Emre TUFEKCI 11316a3bd5
swift-C++ binding & swift pjsua2 sample app (#2723) 2021-06-11 09:52:34 +08:00
sauwming df30cc273a
Reset DTLS state when stopping DTLS transport (#2726) 2021-06-07 14:37:46 +08:00
sauwming 0046373595
Add support for WebRTC AEC3 (#2722) 2021-06-03 11:50:47 +08:00
sauwming 0dcd025ef6
Update doc for ignoring stream keep alive (#2719) 2021-05-31 16:07:36 +08:00
sauwming 557bbbdd88
Disable maintaining ROC when restarting SRTP (#2720) 2021-05-31 16:06:52 +08:00
sauwming d245ffaf91
Ignore 192.0.0.0/29 address (#2718) 2021-05-31 16:06:25 +08:00
Nanang Izzuddin cb30280529
Fixed possible DTLS nego failure when using ICE with host and relay candidates (#2715) 2021-05-25 09:17:48 +07: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 f0ff5817d0
Fix double free of stun session (#2709) 2021-05-17 09:56:27 +08:00
Theo Buehler 40c4e10c1b
Do not redefine SSL_CIPHER_get_id() for LibreSSL (#2708)
Both SSL_CIPHER_get_id() and SSL_set_session() are available in all
LibreSSL versions. SSL_CIPHER will become opaque in LibreSSL 3.4.x,
so this redefinition reaching into the struct will break the build.
2021-05-10 14:12:53 +08:00
sauwming ed28d04a66
Fixed remote address change checking in DTLS transport (#2703) 2021-04-23 13:24:43 +08:00
sauwming bdbeb7c4b2
Skip unsupported digest algorithm (#2408)
Co-authored-by: Nanang Izzuddin <nanang@teluu.com>
2021-04-22 14:03:28 +08:00
Nanang Izzuddin b6bf662221 Misc (re #2698): Skip pjsua test scripts-sipp/uac-reinvite-bad-via-branch on MacOS due to unreliable result, i.e: always getting 200 response. Note that the test objective is to detect/avoid assertion, the test scenario will keep sending INVITE until receiving 500 response (indicating bad/duplicated Via branch is detected), on fast machines where INVITE tsx destroyed quickly, pjsua will send 200 response, instead of 500. 2021-04-20 15:34:27 +07:00
sauwming f5949e8590 Merge branch 'master' of github.com:pjsip/pjproject 2021-04-19 14:26:33 +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
Nanang Izzuddin 41bc488e1c
Avoid crash/exception in unregistering socket on iOS after SIP UDP socket-replace fails (#2691) 2021-04-19 09:18:20 +07:00
Sean Bright 4746ecff38
sdp.c: Use correct conversion specifier for uint32_t (#2693) 2021-04-15 13:38:06 +07:00
Riza Sulistyo 36b2510af0
Update openssl for windows download link 2021-04-12 16:37:33 +07:00
Sébastien Blin 997a468a5e
ip_helper_generic: ignore non running interfaces (#2687) 2021-04-12 13:21:31 +07:00
sauwming ea7105c222
Allow SIP transaction to continue for certain case despite transport error (#2683) 2021-04-01 16:06:10 +08:00
Nanang Izzuddin 4772d62ed2
Fix reject incoming call before sending any response (auto 100/trying response is disabled) (#2676) 2021-04-01 11:50:57 +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