Commit graph

1990 commits

Author SHA1 Message Date
sauwming
dec146d750
Use port range when creating loop media transport (#2312) 2020-02-28 10:53:48 +08:00
Nanang Izzuddin
072fee1e68
Merge pull request #2297 from pjsip/tls1.3
Add TLS proto for TLS 1.3 (only for OpenSSL backend)
2020-02-27 09:48:22 +07:00
mingteluu
6e8bf7f337 more details in the log 2020-02-25 11:58:08 +08:00
mingteluu
b76c134fea Add more log in pjsua_vid and vid_conf 2020-02-25 10:51:43 +08:00
Nanang Izzuddin
4fa33725bd Add TLS proto for TLS 1.3 2020-02-21 18:07:04 +07:00
Nanang Izzuddin
38ca44800a Fixing silly mistake in #2290: missing handling for incoming call 2020-02-21 11:31:24 +07:00
Nanang Izzuddin
d2ece7dd87 Disable SDP media with no codec 2020-02-20 14:57:22 +07:00
nanangizz
3980472947 Decrease send counter in transaction when its state is shifting to TERMINATED (where it cancels itself from send notification) and there is pending send. 2020-02-18 19:41:02 +07:00
Riza Sulistyo
c71d3d49cc Misc (re #2210): Fixed formatting mistake when printing destination on keep-alive log.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6161 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-07 12:02:00 +00:00
Sauw Ming
6741c75da7 Re #2264: Fixed crash if pjsua_var.acc[acc_id].regc is NULL
Note that the regc instance itself hasn't been destroyed since the refcount has been incremented, but acc->regc can already be NULL-ed.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6160 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-07 08:20:56 +00: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
Sauw Ming
601d6e6824 Fixed #2266: Allow Via header with IPv6 containing []
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6158 74dad513-b988-da41-8d7b-12977e46ad98
2020-02-06 02:52:10 +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
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
0e129f8665 Fixed #2264: Potential deadlock between pjsua lock and sip transport's lock
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6142 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-29 04:05:51 +00:00
Nanang Izzuddin
5cb740f72b Misc (#2210): Added early check whether account is registered before sending unregistration in pjsua_acc_modify() (thanks to Peter Koletzki for the suggestion).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6141 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-29 03:48:51 +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
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
Sauw Ming
2f3a1234d0 Closed #2261: Prevent unnecessary locking when adding group lock handler
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6136 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-17 00:59:51 +00:00
Sauw Ming
45675996ab Fixed #2260: Potential deadlock between sip_transaction and sip_reg
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6134 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-16 06:37:40 +00:00
Sauw Ming
824298c8ee Closed #2259: Fix check to cleanup provisional media
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6126 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-26 03:36:57 +00:00
Nanang Izzuddin
a414fb61f4 Re #2256: Readjusted build configs (after r6120 & r6121) to accomodate the convention that CXXFLAGS always includes CFLAGS in all PJSIP modules.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6122 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-19 11:31:55 +00:00
Nanang Izzuddin
1a1db21d52 Re #2256: Fixed build error for iOS target due to changes in r6120.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6121 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-19 10:00:53 +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
Riza Sulistyo
dfb6aa264d Close #2258: Add PJSUA2 API to get and set OPUS codec setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6119 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-17 10:06:01 +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
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
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
666251bbf9 Misc (re #2210): Fixed macro setting PJSIP_MAX_TIMER_COUNT issues: not overridable and bad docs (thanks to Christian Ambach for the report and the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6102 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-07 03:22:42 +00:00
Sauw Ming
4976aaa25e Re #2210 (misc): Clarify in the doc that on_stream_created()/destroyed() callback is for audio stream
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6097 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-25 01:42:02 +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
3589e6f759 Re #2241: Fixed compile error due to declaration after code on older compilers or pre-C99 specs, such as MSVC2005.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6092 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-14 02:33:04 +00:00
Nanang Izzuddin
755f33d492 Fixed #2243:
- pjsip_tpmgr_acquire_transport2() should skip transports being shutdown in the lookup iteration.
 - Added some tracing logs in sip_transport.c.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6090 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-11 02:23:03 +00:00
Nanang Izzuddin
dc4ed48423 Fixed #2242: Message buffer not set correctly in pjsip_rx_data_clone().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6089 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-10 06:54:12 +00:00
Riza Sulistyo
d2938b4cdc Fixed #2241: Update "sent-by" field of Via header on CANCEL request for proxy scenario.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6088 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-08 08:32:53 +00:00
Nanang Izzuddin
d5a9caf6aa Fixed #2240:
- Avoid double pjsip_inv_dec_ref() by evaluating the local var 'state' instead of 'inv->state' in checking DISCONNECTED state in 'inv_set_state()', as the 'on_state_changed()' callback may recursively call 'inv_set_state()' and shift the state to DISCONNECTED.
 - Avoid inv sess destroy in the callback by increasing ref count.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6087 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-04 07:31:40 +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
de55ff2b28 Fixed #2238: Local hold is not reset if there's failure during reinvite/update
We set local_hold later, after sending the message is successful.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6083 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-02 03:42:13 +00:00
Sauw Ming
67cafdf1ec Re #2210 (misc): Add doc and extra check for Endpoint::utilLogWrite(LogEntry)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6081 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-30 06:08:48 +00:00
Riza Sulistyo
7ba4ca7835 Close #2232: Crash on Endpoint::libDestroy() when there is an active call.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6074 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-23 22:47:05 +00:00
Sauw Ming
8ed4a1c9eb Re #2209: Add checking if expiration is specified for determining if there's an active registration
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6068 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-11 01:03:47 +00:00
Nanang Izzuddin
e4d0bb45d7 Misc (re #2210): Set local media port to zero when remote media port is zero in PJSUA early SDP verification, so disabled media will not be verified, otherwise unnecessary assertion due to failure verification may be raised.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6063 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-06 01:59:50 +00:00
Nanang Izzuddin
354d7da9fa Fix #2227: Added callback for sending ACK.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6062 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-05 05:03:12 +00:00
Nanang Izzuddin
7dbfebb815 Fix #2226: Skip authentication handling in evsub module if it is already done by other module.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6060 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-04 07:49:44 +00:00
Riza Sulistyo
29883b397c Close #2222: Introduce a new compiler setting to allow to use cnonce for SIP authentication without hyphen character
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6055 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 14:13:32 +00:00
Nanang Izzuddin
737e915274 Close #2219: Initialize enum fields in PJSUA2 objects.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6051 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-15 05:11:41 +00:00
Nanang Izzuddin
3464650ee0 Misc (re #2210): Added SIP transport type DLTS. Note that this is not an implementation, just for app so it can register its own implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6047 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-29 02:32:55 +00:00