Commit Graph

6463 Commits

Author SHA1 Message Date
Amilcar Ubiera 5c28fc6368
Fix to ssl_sock_imp_common warning 'io_read': 'void' function returning a value MSVC(C4098) (#3727) 2023-10-09 13:27:39 +08:00
Nanang Izzuddin 4f8b7513ae
Fix pjsip_mwi_notify() may be called without body (#3723) 2023-10-04 13:08:30 +07:00
Riza Sulistyo be0c6c4049
Add on_rejected_incoming_call() callback (#3683)
* Add on_rejected_incoming_call() callback

* Modification based on comments

- save incoming rdata to be passed as callback parameter

* Fix failed unit test

* Call the callback from pjsua_call_on_incoming()

* Remove tdata from callback param

* Modification based on comments

* Modification based on comments

* Add doc

* Fix build error on C89 compiler (e.g: VS2005) and change the status code to using defined/enum error for uniformity

* Add call_id to the callback param
2023-10-03 18:04:37 +07:00
Nanang Izzuddin 6dc9b8c181
Merge pull request from GHSA-f76w-fh7c-pc66
* Add group lock to media transport

* Also add group lock to SRTP-DTLS

* Put lock protection to avoid race condition between destroy() & dtls_on_recv()
2023-10-03 10:59:03 +08:00
Riza Sulistyo 2c1207c30b
Call pjmedia_srtp_deinit_lib() when srtp_init() fail (#3719) 2023-10-02 21:08:42 +07:00
Nanang Izzuddin b8fbdb2502
Fix build errors & warnings on MSVC2005 (#3722) 2023-10-02 09:00:56 +07:00
sauwming e43a6dac98
Fixed deadlock between SIP transaction and dialog (#3714) 2023-09-29 10:18:07 +08:00
sauwming 05d03ad9ee
Fixed Coverity and build warnings (#3707) 2023-09-21 17:43:10 +08:00
sauwming 7ff31e3113
Set default SSL sockopt param to have TCP_NODELAY for GnuTLS backend (#3708) 2023-09-20 18:04:13 +08:00
sauwming cde87db7d7
Add option to set RX telephone-event PT (#3705) 2023-09-19 14:51:56 +08:00
JRazek 01d37bf15a
update rust bindgen 0.60.1 -> 0.66.1 (#3679) 2023-09-18 15:25:54 +08:00
Nanang Izzuddin d21ff6106d
Add MSG_NOSIGNAL flag to sendto() (#3695) 2023-09-18 12:37:37 +07:00
sauwming 431ddc71ed
Add video to iOS swift pjsua2 sample app (#3381) 2023-09-18 10:57:28 +08:00
Nanang Izzuddin ad152c2f42
Update video handling in Android PJSUA2/SWIG sample apps (#3673) 2023-09-12 11:49:51 +07:00
Nanang Izzuddin 31d5e19fa0
Fix race condition in registration in updating last transport used. (#3680) 2023-09-06 13:03:40 +07:00
Nanang Izzuddin eff4826803
Docs: more fixes on sample/source links (#3675) 2023-09-06 09:56:26 +07:00
Jad K. Haddad e17b92b973
Fix invalid pointers #3670 (#3672) 2023-08-31 17:07:02 +08:00
Nanang Izzuddin 486053782b
Fix late PJSUA2 object destroy on Android (#3674) 2023-08-31 13:40:43 +07:00
sauwming ee5879bda9
Fixed RTCP packet lost calculation (#3653) 2023-08-31 08:13:36 +08:00
Nanang Izzuddin 013c30304d
Fix docs for broken PJLIB sample links (currently the samples are doxygen pages and breathe-apidoc does not process doxygen page) (#3671) 2023-08-29 09:17:53 +07:00
Nanang Izzuddin 43a338e4c9
Fix bug in PJSUA2 media port signal adjustment info (#3668) 2023-08-28 16:52:03 +07:00
Riza Sulistyo d51e247135
Add option to disable renegotiation on TLSv1.2 or earlier (#3663)
* Add option to enable SSL_OP_NO_RENEGOTIATION on OpenSSL

* Add the option to runtime configuration

* Modification based on comments

* Add the implementation files and pjsua2 modification
2023-08-23 09:52:04 +07:00
Nanang Izzuddin fd8880397f
Add native SSL socket instance in TLS verification callback (#3630) 2023-08-22 13:49:07 +07:00
Riza Sulistyo af82c9085a
Prevent crash when reading cert file on Apple's Network framework SSL backend (#3664) 2023-08-22 11:23:30 +07:00
sauwming 828d8d1907
Avoid race condition in SSL's on_handshake_complete() (#3448) 2023-08-08 09:19:30 +08:00
Evgeniy c3575d05d2
Set default values in tonegen sample (#3651) 2023-08-04 11:02:07 +07:00
Shubham Fuloria 8f1e366560
Resolved: VidGUI Sample Application Linking Error (#3637) 2023-08-03 17:35:57 +07:00
Nanang Izzuddin 63b2f9ba41
Possible infinite loop in iOS replace socket (#3650) 2023-08-03 10:26:19 +07:00
sauwming 82d3fcff54
Fixed potentially duplicate RTCP FB attribute on response (#3643) 2023-07-21 16:42:28 +08:00
sauwming 378d752e85
Fixed pjmedia wsola test failure (#3641) 2023-07-20 17:19:24 +08:00
Nanang Izzuddin 5969541128
Add API to limit retransmission count for outgoing requests in transaction layer (#3631) 2023-07-20 09:31:29 +07:00
Mike Bradeen d2c0c3daf3
Split logging to keep Warning regarding dropped packet at level 2 while moving the packet contents to 4 (#3476) (#3636) 2023-07-20 10:23:33 +08:00
Matthew Fredrickson 1a324c632b
If we don't clear the thread local error queue prior to calling SSL functions, sometimes other connections leave stale errors which will be returned and falsely attributed to the current SSL connection when calling SSL_get_error() (#3633) 2023-07-17 14:44:57 +08:00
Shubham Fuloria 10d1cd9b75
redeclared variable error fixed (#3629) 2023-07-17 08:50:10 +08:00
Nanang Izzuddin 54bce14d2d
Fix compile errors on old compilers (C90 prohibits variable decl in mid block, C++98 does not have Vector::data(), MSVC2005 project misses some new SRTP files) (#3625) 2023-07-11 13:07:37 +07:00
Nanang Izzuddin cea2a90c1f
Update transport config docs regarding QoS settings for TLS (#3624) 2023-07-10 14:08:13 +07:00
sauwming bb09b94889
Transaction state not propagated properly to on_call_tsx_state() cb (#3614) 2023-07-07 10:01:46 +08:00
Riza Sulistyo 21f40c8625
Support Python3 for github CI (#3612)
* Support Python3 for github CI

* Fix runtime error due to changes in telnetlib for python3

This will also remove support for python2

* Fix runtime error due to changes in socket lib

* Fix runtime error

* Fix error

* Replace imp to importlib to fix warning

* Fix some error

- On windows, error EACCESS when binding/opening socket
- Fix UnicodeEncodeError/UnicodeDecodeError
2023-07-06 15:38:04 +07:00
Riza Sulistyo c5d7e438cb
Only validate public address when IP address is supplied on TCP/TLS (#3599)
* Only validate public address when IP address is supplied on TCP/TLS

* Add doc
2023-07-05 11:16:06 +07:00
Nanang Izzuddin 617428685d
Update the QoS DSCP map to follow RFC4594 guidelines (#3610) 2023-07-05 10:44:07 +07:00
Nanang Izzuddin ca7e2a3017
Bug in RTCP-FB NACK packet generation (#3608) 2023-07-05 10:43:41 +07:00
Riza Sulistyo 914ce755a6
Support OpenSSL3 with "no-deprecated" build option (#3603) 2023-07-05 11:39:01 +08:00
Riza Sulistyo 8e69c977c7
Don't call SSL_shutdown() when receiving SSL_ERROR_SYSCALL or SSL_ERROR_SSL (#3577) 2023-07-05 11:38:21 +08:00
sauwming a0ac2478fc
Implement DTLS-SRTP for RTCP (#3571) 2023-07-05 11:37:44 +08:00
sauwming b6ce6c4ce7
Send RTCP even if the media stream is inactive (#3615) 2023-06-28 15:40:48 +08:00
Jaco Kroon 3ad3cdbf14
Fix wave port creation if the input wave file contains exactly one frame. (#3596) 2023-06-27 14:07:39 +08:00
sauwming db78bc0c46
Check the return status of pj_getaddrinfo() when creating contact (#3601) 2023-06-27 14:07:04 +08:00
sauwming c600708a3b
Make evsub expiry duration consistent (#3602) 2023-06-20 10:38:02 +08:00
sauwming a5023f7fdd
Use configured bound or public address for outgoing UDP SIP messages (#3595) 2023-06-19 09:38:13 +08:00
Riza Sulistyo 2c56bdceaf
Xamarin samples for Android and iOS (#3584) 2023-06-16 10:44:15 +08:00