Commit Graph

297 Commits

Author SHA1 Message Date
Goodicus a7c4d83807
Enable Late Offer Answer Mode (LOAM) feature in the pjsua (#3869) 2024-03-21 16:58:24 +07:00
Goodicus d692a9940f
Implement Dialog Event subscription (client only) (#3754) 2024-01-29 14:28:15 +08:00
Nanang Izzuddin 8e9857a81e
Miscelaneous Coverity fixes (#3792)
* Fix CID: 1527652, 1524421, 1524414, 1524392
* Fixed UPnP data races
2024-01-02 11:53:57 +08:00
Nanang Izzuddin e235868cef
Add option to shutdown all transports on IP change (#3781) 2023-11-21 09:23:31 +07:00
sauwming 48800cbfbb
Add option for dual stack IPv4&IPv6 account config (#3590) 2023-06-09 13:59:35 +08:00
bennylp 5ed9461bbe Replace unsafe string functions such as strcpy, strncpy, strcat, and sprintf with newly implemented pj_ansi_strxcpy, pj_ansi_strxcpy2, and pj_ansi_strxcat 2023-03-24 11:11:20 +07:00
bennylp ce8508ab51 Fixed coverity scan warnings 2023-03-16 16:51:42 +07:00
jimying b4184bb56d
Fix build with CFLAGS -Wextra warning reports (#3428) 2023-03-14 09:56:18 +08:00
Riza Sulistyo 5ac9104514
Expand tab to spaces and remove $Id$ (#3292) 2022-11-22 16:26:54 +07:00
Riza Sulistyo e5c425d570
Fix ASAN error when app_init() failed (#3224) 2022-09-19 17:09:02 +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
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
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
Nanang Izzuddin c87056e178
Add call dump to pjsua_media_channel_deinit() (#2855) 2021-10-20 12:45:20 +07:00
Riza Sulistyo 74c34399d6 Misc (re #2504): Suppress some compile warning on VS Windows. 2021-03-09 07:32:36 +07:00
sauwming 2eea0ace2b
Report disconnection event immediately when hanging up a call (#2600) 2020-12-04 10:29:45 +08: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
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
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
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 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
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
Nanang Izzuddin d53bc8244c Re #2179: Fixed linking error when PJSIP_HAS_TLS_TRANSPORT is not defined.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5999 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 09:07:36 +00:00
Sauw Ming 6a8a5920b6 Fixed #2198: SIP resolve to return both IPv4 and IPv6 synthesized addresses (if any) for IPv4 address literals.
- Also included in this changeset: ipv6 option of sample pjsua_app will now try IPv6 STUN, bind the account to IPv6 transport and set the IPv6 media



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5995 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-17 09:37:18 +00:00
Nanang Izzuddin 5dfa75be7d Re #2179: Wipe out memory used for storing SSL keys in PJSIP TLS transport and pjsua app. Thanks Peter Koletzki for the feedback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5994 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 09:41:52 +00:00
Sauw Ming aef92670e1 Fixed #2165: Support video only call in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5918 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-04 02:16:47 +00:00
Riza Sulistyo 070dece2e9 Close #2036: Support DTMF via SIP INFO.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5834 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 07:32:54 +00:00
Riza Sulistyo 696a919a31 Close #2070: Print IPv6 addresses with brackets.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5833 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 07:15:08 +00:00
Riza Sulistyo b34ad8be7f Close #2038: Review pjsua app sample about pjsua_call_info usage.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5822 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-15 14:29:50 +00:00
Nanang Izzuddin 922b4e2ed6 Close #2100:
- Added new APIs:
   * PJMEDIA: pjmedia_srtp_enum_crypto(), pjmedia_srtp_enum_keying()
   * PJSUA: pjsua_config.srtp_opt, pjsua_acc_config.srtp_opt, pjsua_srtp_opt_default()
   * PJSUA2: AccountMediaConfig::srtpOpt, Endpoint::srtpCryptoEnum()
 - Deprecated PJSUA callback on_create_media_transport_srtp() (not removed yet, just warnings).
 - Slightly refactored SRTP code:
   * Fixed potential issue with on_create_media_transport_srtp(), some PJSUA internal values in pjmedia_srtp_setting may be overridden by app.
   * Fixed few issues in SRTP and keying mechanism, e.g: premature local SDP modification (it should be done after verification).
   * Potential minor backward compatibility issue: default value of pjmedia_srtp_setting.crypto_count is now zero, previously it was initialized with all crypto via pjmedia_srtp_setting_default(), actually zero and all cryptos in this setting semantically are the same.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5755 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-15 03:00:59 +00:00
Nanang Izzuddin 4223637bd0 Fixe #2096:
- Fixed re-INVITE scenario: always generate SRTP attr in SDP re-offer/answer as both offerer/answerer (as long as SRTP is not disabled of course), currently it does not generate SRTP attr if active session does not use SRTP.
 - Fixed bug in retrieving video stream info from SDP that caused DTLS transport (UDP/TLS/RTP/SAVP) getting rejected.
 - Added pjsua app param '--srtp-keying=0/1' to choose SRTP keying to be used in the outgoing offer (0=SDES (default), 1=DTLS-SRTP).
 - Few minors, e.g: adding transport_srtp_dtls/sdes.c to pjmedia MSVC2015 project.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5746 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-26 07:50:18 +00:00
Sauw Ming 0a1f0aa252 Fixed #2053: Update pjsua_get_snd_dev() info before calling on_snd_dev_operation() callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5677 74dad513-b988-da41-8d7b-12977e46ad98
2017-10-27 06:30:50 +00:00
Nanang Izzuddin 7d9a05c9a3 Re #1513: Applied the new API pj_pool_safe_release().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5534 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-19 07:41:25 +00:00
Sauw Ming 4048dad7c5 Fixed #1921: Add support to handle IPv6 transports in pjsua_transport API and transport keep alive
Also:
- add more detailed transport info for TCP and TLS transport
- fixed pjsua sample app which tries to get IPv4 local address from IPv6 transport.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5308 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-19 06:55:16 +00:00
Nanang Izzuddin 88358fd268 Re #1881: Fixed compile warnings on VS2015 about declaration hides previous declaration.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5170 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-25 08:45:46 +00:00
Nanang Izzuddin a0ca842333 Fix #1876: Don't restart renderer when only fps is changing, just modify the clock instead.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5149 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-06 07:10:33 +00:00
Sauw Ming 31da64e8ae Re #1757: Modify display video function in r4813 so it can display video preview as well
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4848 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-22 04:52:53 +00:00
Nanang Izzuddin 97fc0976fc Misc (re #1751): Fixed compile error 'Implicit declaration of function is invalid in C99' on Xcode 5.1.1.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4822 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-22 07:31:32 +00:00
Riza Sulistyo 2d91e02341 Misc (re #1751): Fixed compile error on stereo_demo due to changes on pjmedia_port_info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4814 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-10 01:56:40 +00:00
Sauw Ming 2015de408d Re #1757: Add example to display video in ipjsua (require ffmpeg libraries)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4813 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-08 09:43:01 +00:00
Nanang Izzuddin 3537c545df Misc (re #1630): Fixed some more typos in the codes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4724 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-31 08:52:09 +00:00
Riza Sulistyo 218c3d54c8 Re #1643: Fix some build warnings detected on VS2012
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4634 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23 09:29:35 +00:00
Nanang Izzuddin 72af1d7d29 Misc (re #1630): pjsua app param '--ip-addr' doesn't affect RTP address of local accounts.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4603 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-26 09:57:34 +00:00
Benny Prijono 49d40b98d9 Fixed #1693: Pay attention to reg_hdr_list and sub_hdr_list in pjsua_acc_modify(), and also fixed pjsua_acc_get_config()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4580 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-06 08:02:24 +00:00
Riza Sulistyo 35112ebfed Re #1643: Restore configuration reset with added modification on app destroy. It was deleted from code to enable cli retain config values when restarted
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4525 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-28 12:03:36 +00:00