Commit Graph

2185 Commits

Author SHA1 Message Date
Riza Sulistyo 7a702b9aab
Add option to disable ice mismatch check. (#2538)
* Add option to disable ice mismatch check.

* Fix check error and modify doc.

* Modification based on comments.
2020-10-12 12:38:12 +07:00
sauwming ce18018cc1
Fix incorrect copying of destination info when creating CANCEL (#2546) 2020-10-12 13:31:25 +08:00
Sergey Strelchenko 004f7f7d8c
Fixed wrong macros PJ_DEF. PJ_DECL is correct. (#2545) 2020-10-12 11:58:53 +08:00
Max Truxa 9c66083712
Implement stream pre-create callback (#2507) 2020-10-05 14:20:46 +07:00
Nanang Izzuddin 7147e2e985 Merge branch 'master' of https://github.com/pjsip/pjproject 2020-10-05 10:33:35 +07:00
Nanang Izzuddin 1749cf8a50 Misc (re #2504): Updated PJSUA_VID_REQ_KEYFRAME_RTCP_PLI docs, it is supported since 2.10. 2020-10-05 10:33:14 +07:00
Riza Sulistyo 510716631e Add option to disable ice mismatch check. 2020-10-02 14:18:51 +07:00
Nanang Izzuddin da46a61baf
Invite state not shifting to CONFIRMED state after sending ACK manually (#2528)
Also updated docs:
 - on_send_ack(): explicitly mention that ACK request must be created using pjsip_inv_create_ack().
 - pjsip_inv_create_ack(): SDP answer to be set using pjsip_inv_set_sdp_answer(), was pjsip_create_sdp_body().
2020-09-30 14:33:25 +07:00
sauwming a184b14f8c
Speaker only setting still requires audio input device (#2522) 2020-09-29 11:29:15 +08:00
sauwming e2d8ee0f49
Suppress CodeQL warnings (#2530)
Also exclude some third party libs and python source
2020-09-23 18:45:59 +08:00
Nanang Izzuddin 4ec0b6485c
Avoid invoking callback on_pager_status twice when resending with auth fails. (#2489) 2020-08-18 11:35:33 +07:00
Max Truxa 5925c42ea3
Pass JB discard algorithm along other JB settings (#2506) 2020-08-14 10:35:11 +08:00
Nanang Izzuddin 32153443e7 Misc (re #2504): Fixed compile error 'declaration after statement', e.g: on MSVC2005 2020-08-10 11:37:29 +07:00
sauwming 92d2e8df9a
Fix sip transaction to send pending message (#2471) 2020-07-20 11:32:54 +08:00
andreas-wehrmann 973bb671a1
PJ adjustable pool sizes (#2395)
Make several pool sizes settable via compile time macro settings. This can be used to deal with memory fragmentation issues in long running applications that encounter temporary high loads.
2020-07-15 11:46:59 +07:00
sauwming b0aa9e93a7
Fixed failed reinvite if call opt is NULL (#2478) 2020-07-03 17:22:44 +08:00
Max Truxa 5f14950cb5
Add callbacks to receive RTP DTMF events (#2447) 2020-06-26 16:06:21 +08:00
Nanang Izzuddin 11fd8da3ed
Fixed bug in ICE callback implementation in PJSUA to reschedule timer after failed in acquiring dialog. (#2468) 2020-06-24 09:03:21 +07:00
sauwming 87653d5a22
Check current inv state before decreasing ref count (#2459) 2020-06-15 14:14:45 +08:00
Riza Sulistyo de9f0713b3
Possible leak tdata when receiving 200 OK response after the invite session is destroyed. (#2432)
* Possible leak tdata when receiving 200 OK response after the invite
session was destroyed.

* Add comments linking the PR to the changes.

* Add safety check.

* Fix possible leaked tdata when ACK is not sent due to timeout.
2020-06-10 15:20:51 +07:00
Riza Sulistyo f45f2d435a
Allow demote SRTP call to RTP when using re-INVITE with PJSUA_CALL_REINIT_MEDIA (#2451)
* - Allow demote SRTP call to RTP when using re-INVITE with
PJSUA_CALL_REINIT_MEDIA
- DTLS renegotiation when receiving re-INVITE with modified media
transport address

* Revert DTLS_DEBUG to 0.

* modification based on comments.

* modified comment.
2020-06-10 10:42:53 +07:00
Truong-Thanh-Quang 6503ec40a8
Fix dtmf signal &duration parsing in dtmf-relay INFO message (#2425) 2020-06-09 15:14:25 +07:00
Nanang Izzuddin 5d216a94c8
Fix bug when sending IM using null content (continuation of #2452) (#2454)
Also update on_pager_status() callback: set body param with message body (i.e: tdata->msg->body) when IM is sent using null content.
2020-06-09 12:35:19 +07:00
Nanang Izzuddin 55cd705114
Allow NULL content in sending IM if msg_data has body/multipart (#2452) 2020-06-04 13:19:17 +07:00
sauwming c2d7c7616f
Call on_call_media_event() callback asynchronously to avoid deadlock (#2446) 2020-05-22 15:07:28 +08:00
Guido Falsi 78683646c8
Fix race condition in parallel builds (#2426)
* Some targets residing in `OBJDIRS` are missing a dependency on that directory, which results in a race condition, causing build to fail sometimes due to the directory not existing when running parallel builds.

* The `PJSUA_LIB` variable is not defined anywhere, resulting in an empty value, and no correct dependency on the pjsua shared library for `pjsua2`. The correct variable seems to be `PJSUA_LIB_LIB`, defined at the start of this same `Makefile`.
2020-05-11 13:50:39 +07:00
sauwming 95c29aa1d2
Avoid undefinition of standard macros s_addr and s6_addr (#2423) 2020-05-06 09:38:26 +08:00
sauwming bb60df2346
Fixed assertion when receving an INVITE response during an UPDATE (#2419) 2020-05-05 14:02:14 +08:00
sauwming b53b8e8651
Fix duplicate 408 status phrase
Re #2381
2020-05-01 17:18:02 +08:00
Nanang Izzuddin b23633707c
More CI works (#2376)
* pjsua-test:
  - Update pjsua-test module call: wait ICE update before checking media
  - Attempt to fix all failed tests by sipp module: changed SIPp port from 6000 to 50070 (port used by recvfrom module)
  - Update call module: confirm codec priority after change, fix DTLS-SRTP expect may race with state CONFIRMED
  - Add timeout check in telnet-ing to pjsua
  - ICE nego may race with call state CONFIRMED, so mod call better just sleep instead of expecting 'ICE nego success'.

* Other unit tests:
  - Print stack trace on crash on Linux and DarwinOS via SIGSEGV signal handler.
  - Update resolver test: print log on callback error, replace assertion checks with error return, fix comments, sleep periods, fix received packet count may be > 1 if server ignore the request (for example when the test machine experiencing high CPU load).
  - Update ccpp.yml: add -g for jobs with unit-tests.
  - More lenient on tsx retransmission count check in pjsip-test.
  - Update tsx_uac/s_test.c: allow retransmission timing diff from 150 to 500ms to accommodate possible CPU spike on some test machines.
2020-04-30 11:25:19 +07: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
sauwming 1c985975ce
Status phrases (#2381)
* pjsip: Add new status phrases

Taken from various (newer) SIP RFC's.

* psjip: Make status phrases match the RFC's

Replace homebrew phrases with the standard phrases from the SIP RFC's.

* pjsip: Add new status codes to pjsip_status_code enum

* Update symbols.i

* Fix indentation of symbols.i

Co-authored-by: sauwming <ming@teluu.com>
2020-04-29 11:58:31 +08:00
Nanang Izzuddin 8cd15e8073
Increment outgoing RTP timestamp on inactive or receive only stream (#2340) 2020-04-29 10:55:14 +07:00
Nanang Izzuddin 346550de5e
VideoPreview not updating its device ID after device fast-switched (#2368) 2020-04-29 09:59:08 +07:00
Alex Hermann d1c2cd097f pjsip: Add new status codes to pjsip_status_code enum 2020-04-28 09:00:59 +02:00
Alex Hermann 50a7ed0d06 psjip: Make status phrases match the RFC's
Replace homebrew phrases with the standard phrases from the SIP RFC's.
2020-04-10 14:26:59 +02:00
Alex Hermann 687c58d76d pjsip: Add new status phrases
Taken from various (newer) SIP RFC's.
2020-04-10 14:26:39 +02:00
andreas-wehrmann b3ca3b50e1
don't use private account pool for allocating the address; (#2379)
it's not used in the account directly and will lead to a very slow increase in memory usage over time.
2020-04-09 17:53:42 +08:00
sauwming e1edb64d4d
Handle case when provisional response is sent after a final one (#2350)
Handle case when provisional response is sent after a final one
- If 100rel is required, prevent retransmission if the initial send fails, since the retransmission will cause a crash later.
- Otherwise, return error instead of asserting in sip_transaction
2020-03-20 10:37:11 +08:00
Nanang Izzuddin 5f689f5d23
Add option to exclude benchmark tests in unit tests (#2321)
* Add option to exclude benchmark tests in unit tests

* Loosen up resolver round-robin testcondition (percent difference allowance from 5% to 10%, the test result variance relies heavily on OS random number distribution).
2020-03-19 14:46:22 +07:00
sauwming ddf48e2045
Fix parallel build failure (#2306)
Re #2300:
* Fix parallel build failure when building pjsua2 due to typo in pjsip's Makefile
* Fix parallel build failure for swig component
2020-03-19 15:35:26 +08:00
Nanang Izzuddin 8c09346142
Video capture device ID reverted back to default in SIP session refresh (#2341) 2020-03-19 14:26:28 +07:00
明月惊鹊 68e5350335
Fix account ID verification in pjsua_call_make_call() (#2332) 2020-03-06 18:00:28 +07:00
Nanang Izzuddin cc2198c278 Loosen up resolver round-robin testcondition (percent difference allowance from 5% to 10%, the test result variance relies heavily on OS random number distribution). 2020-03-03 17:34:45 +07:00
Nanang Izzuddin c3456980ba Add option to exclude benchmark tests in unit tests 2020-03-03 09:53:07 +07:00
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
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
Nanang Izzuddin 747a9c190e Re #2211: Fixed compile error in pjsip_dlg_create_uac() on MSVC2005, var declaration should be at the beginning of function.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6042 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-22 08:53:01 +00:00
Riza Sulistyo 0fe5acf5e9 Close #2211: Use group lock for SIP dialog.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6037 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-10 07:15:08 +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
Riza Sulistyo 2c5dc72dd5 Re #2210 (misc): Minor patch for SSL error message. Thanks to George Joseph for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6034 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-01 05:41:29 +00:00
Nanang Izzuddin b81fd15124 Misc (re #2147): Fixed compile warnings "dynamic exception specifications are deprecated in C++11".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6026 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-12 06:00:35 +00:00
Sauw Ming 65bc26e7c1 Re #2198:
* Do not return IPv6 address for loop transport
* Fixed failed PJSIP test because of  result count mismatch due to the additional IPv6 address



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6025 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-12 05:04:32 +00:00
Nanang Izzuddin 0a6ca0c45f Re #2181: Fixed incorrect index in getEncodingVideoMedia() & getDecodingVideoMedia iterations.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6024 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-12 04:51:10 +00:00
Riza Sulistyo 8cefecd714 Re #2147 (misc): Fix failed pjsip-test (transport_loop_test) caused by r6002.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6021 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-31 10:13:40 +00:00
Sauw Ming 58593ba22c Fixed #2205: Use bound address for outgoing UDP SIP messages
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6015 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-29 08:02:02 +00:00
Riza Sulistyo c217c850f7 Re #2147 (misc): Fix various compilation warnings on VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6009 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-27 15:01:08 +00:00
Sauw Ming 215a173519 Re #2181: Suppressed a couple of compilation warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6008 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-27 06:34:57 +00:00
Riza Sulistyo 765e804fda Close #1017: TURN TLS transport implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6004 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-24 03:32:17 +00:00
Riza Sulistyo 26d59020b3 Close #2201: Restart UDP transport after replace_udp_socket fail when sending data.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6003 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 17:47:55 +00:00
Riza Sulistyo 7c1f2f277d Close #1019: Support for multiple listeners.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6002 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 17:21:59 +00:00
Sauw Ming ccba81f943 Re #2198: Fixed wrong check that can return both IPv4 and IPv6 addresses
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5998 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 01:18:22 +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
Nanang Izzuddin f3eac1d578 Re #2181: Fixed undefined reference linking errors when PJSUA_HAS_VIDEO is not set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5992 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 02:57:44 +00:00
Nanang Izzuddin 98e035a46e Re #2191: Fixed crash in SIP transport destroy due to bug introduced by r5971, i.e: group lock is set after registering tp to tpmgr, so tpmgr won't call pj_grp_lock_add_ref(), but in unregisteration, group lock is set, so tpmgr will call pj_grp_lock_dec_ref().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5991 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 02:54:52 +00:00
Sauw Ming ef5ac1253f Fixed #2107: Add option to use loopback media transport in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5989 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 00:09:57 +00:00
Sauw Ming 2a8a1ff81f Re #2189: Fixing various bugs:
* assertion: !Endpoint::instance().mediaExists(*this) in Media::registerMediaPort() when using AudioMedia
Sound device is already registered in the conference bridge, while AudioMediaPlayer/Recorder creation function, i.e. pjsua_player_create(), pjsua_playlist_create(), and pjsua_recorder_create() already call pjmedia_conf_add_port(), so mediaExists() will always return TRUE.

* Endpoint.mediaAdd() should check in its own internal list if the media exists, rather than querying pjsua.

* Calling Endpoint::libDestroy() first, then deleting Endpoint will cause crash, since the mutex to remove the medias has been deleted in libDestroy().
The introduction of the mutex is in r5964.

* DevAudioMedia never removes itself from mediaList, potentially causing infinite loop/crash.

* Call medias, i.e. AudioMediaHelper, also never gets removed from mediaList.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5986 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-10 08:27:22 +00:00
Sauw Ming 2e505e6a57 Re #2181: Fixed incorrect index in getAudioMedia() iteration
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5985 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-10 08:24:34 +00:00
Nanang Izzuddin bcabd15299 Re #1298: Updated PJSIP* to use PJ_ERROR consistently.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5984 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 08:18:18 +00:00
Nanang Izzuddin 7d75682aed Re #1298: Updated PJSUA-LIB to use PJ_ERROR or pjsua_perror when applicable.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5979 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 04:00:00 +00:00
Sauw Ming 481a9c32d8 Fixed #2196: Assertion due to unset sip error code when media initialization fails during incoming call
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5978 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-06 10:55:35 +00:00
Sauw Ming 4673810b64 Fixed #2195: Assertion when receiving more calls than the configured maximum
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5977 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-06 10:44:20 +00:00
Sauw Ming 316c315d97 Fixed #2194: onStreamDestroyed callback is not called upon call disconnection
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5976 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-06 10:05:03 +00:00
Nanang Izzuddin 25076466c8 Fixed #2192: Update dialog local contact for non registering account.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5973 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-25 08:39:49 +00:00
Nanang Izzuddin 0971e7dd7d Re #2181: Implemented video conference APIs for PJSUA2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5972 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-23 10:49:56 +00:00
Nanang Izzuddin 4ad9acd150 Fixed #2191:
- Stricter double timer entry scheduling prevention.
 - Integrate group lock in SIP transport, e.g: for add/dec ref, for timer scheduling.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5971 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-23 08:42:45 +00:00
Nanang Izzuddin 8fda2f9f36 Close #2189: fixed PJSUA2 thread safety issue in list of objects manipulation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5969 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-15 10:52:16 +00:00
Riza Sulistyo 9cabb4ec5f Misc (re #2147): Add lock to prevent race condition when accessing media list.
Thanks to Niclas Larsson for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5964 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-08 01:24:10 +00:00
Riza Sulistyo b9f923adfc Misc (re #2147): Enable to change SIP outbound instance id when modifying account.
Thanks to Jure Erznožnik for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5963 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-08 01:18:17 +00:00
Sauw Ming b73c5a8350 Re #2187: Delay the creation of video capture until it is needed
Also in this commit: add PJSUA_LOCK() and UNLOCK() around access of pjsua_vid_win



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5962 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-01 07:28:24 +00:00
Sauw Ming 881f21ea85 Fixed #2187: Avoid starting video capture if the setting vid_out_auto_transmit is false
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5961 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-29 01:52:59 +00:00
Sauw Ming 681033652a Fixed #2186: Enable video stream keep alive mechanism
* Also add video stream port to video conf when call is on local hold in order for video stream to keep sending keep-alive.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5960 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-27 01:53:57 +00:00
Nanang Izzuddin f01387d5aa Misc (re #2147): Add info and checks about Extra Audio Device supporting mono channel only.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5956 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-21 08:46:13 +00:00
Nanang Izzuddin 063e244d49 Fix #2184: PJSUA2 cannot switch from null audio device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5955 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-20 03:23:34 +00:00
Nanang Izzuddin 63be4785a5 Fix #2183: Fixed bug of dialog not destroyed on late media scenario: pjsua_call_on_incoming() should decrement dialog session counter when media channel is not initialized.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5954 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-19 08:24:57 +00:00
Sauw Ming a97f2c453b Fixed #2182: Prevent crash in unpublishing presence when deleting account
Note that this fix only covers the account deletion scenario. It doesn't prevent the race condition between deleting account in publish_cb and accessing the publish session itself, which should be solved using a locking mechanism.

Thanks to Bogdan Bogdan Chifor for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5949 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 09:29:09 +00:00
Sauw Ming 7a070560a2 Re #2147 (misc): Contact params update when modifying account
The current contact params updates are not applied when calling pjsua_call_modify(). Updating contact header can be quite complicated so a simpler workaround is to trigger account registration first (the same solution is used to update force_contact).

Thanks to Lars Olsson for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5946 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 05:22:49 +00:00
Nanang Izzuddin fa49fd0872 Re #2181: Fixed assertion due to removing an invalid port from video conference in pjsua_vid_stop_stream().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5945 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 03:22:19 +00:00
Nanang Izzuddin 4d8a81b318 Re #2181: Fixed build error when PJMEDIA_HAS_VIDEO is set to zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5944 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 02:57:45 +00:00
Nanang Izzuddin eafc04d5bf Re #2181: Initial version of video conference implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5939 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-05 06:23:02 +00:00
Nanang Izzuddin 3feefb6a09 Re #2147: Added logging and explicit SIP error code for assertions in SIP message verification.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5937 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-28 09:09:42 +00:00
Nanang Izzuddin 765535c742 Re #2150: Fixed crash in SIP TLS transport after TCP socket accept error, e.g: after wakeup from background on iOS. Thanks Marcus Froeschl for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5936 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-26 03:40:57 +00:00
Sauw Ming 5031c72a22 Fixed #2175: Make sure that last ACK has been sent before retransmitting it.
Also update the doc that the callback can now be called more than once.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5931 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-21 08:48:02 +00:00
Sauw Ming 2c62b847f2 Re #2173: Fixed assertion caused by PJMEDIA_SDP_EMISSINGCONN, if incoming INVITE contains unsupported media (such as video when PJSIP is built without video).
The assertion happens in:
pjsip_inv_verify_request3: Assertion `(status=pjmedia_sdp_validate(l_sdp))==PJ_SUCCESS' failed.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5930 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-21 03:56:53 +00:00
Riza Sulistyo fe7079db9d Close #2173: On PJSUA2, application will not be notified when when SDP nego fails due to unsupported codec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5928 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-08 09:43:21 +00:00
Sauw Ming cfd58588f6 Re #2147 (misc): set wholeMsg string of SipTxData to the whole message instead of the whole buffer.
Thanks to Michael Loeffler for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5926 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-03 00:56:58 +00:00
Nanang Izzuddin 7fdb4bf16d Re #2168:
- Added a new PJSUA callback on_media_event().
 - Added audio device error handling into PJSUA2.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5923 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-13 06:57:23 +00:00
Riza Sulistyo 8c190227f5 Close #2170: When using pjsua2 API, Re-INVITE with no SDP will be responded with 488 response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5922 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-12 15:36:17 +00:00
Riza Sulistyo df4f51bab1 Close #2169: Update invite options when receiving INVITE provisional response with Allow UPDATE header.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5921 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-12 13:50:22 +00:00
Nanang Izzuddin eb94374bc8 Close #2168: Added media event for audio device error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5920 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-12 07:16:46 +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
Sauw Ming cc44fb2875 Fixed #2164: Subscription may get terminated when NOTIFY is challenged
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5917 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-28 04:01:28 +00:00
Nanang Izzuddin e18f103391 Misc (re #2147): Invalid media direction (dir=NONE) when receiving first video event PJMEDIA_EVENT_FMT_CHANGED (thanks Giorgio Alfarano for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5914 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-22 10:11:25 +00:00
Sauw Ming 673948c847 Re #2159: Replace std::mutex with PJSIP's own pj_mutex_t, since std::mutex is only available starting C++11
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5912 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-22 02:39:29 +00:00
Riza Sulistyo cdbb718e10 Close #2162: If transport restart fail, don't proceed with updating contact on IP change process.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5911 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-21 10:08:04 +00:00
Riza Sulistyo 5c97c41263 Close #2161: Avoid deadlock triggered by incoming message when transport is being shutdown.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5909 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-21 08:22:34 +00:00
Sauw Ming 8fdc6ca3b3 Re #2147 (misc): Put back the printing of contact_rewrite_method, which is missing due to r5833
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5906 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-06 01:30:56 +00:00
Sauw Ming 3b60912a4a Fixed #2159: Add synchronization for Endpoint::libRegisterThread()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5904 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-05 02:40:54 +00:00
Sauw Ming 0f846fedff Re #2147 (misc): Fixed account modification lock codec setting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5900 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-18 05:32:22 +00:00
Nanang Izzuddin 47eec2b367 Close #2158:
- Added OnCallTransferRequestParam.newCall to allow application to instantiate a new Call for the new outgoing call in transfer scenario.
 - Also added OnCallReplacedParam.newCall mainly for informational purpose (that app should instantiate new Call for replace scenario).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5899 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-17 04:38:39 +00:00
Nanang Izzuddin c468861746 Fix #2156: Fixed object slicing issue in AudioDevInfo/VideoDevInfo by replacing MediaFormatVector with MediaFormatVideoVector and MediaFormatAudioVector.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5896 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-08 05:04:13 +00:00
Sauw Ming 78f35d34ff Re #2155: Fixed incorrect parameter passed to pjsua_call_cleanup_flag()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5893 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-26 10:29:37 +00:00
Sauw Ming 36784ecc34 Fixed #2155: Cleanup call setting flag before sending reinvite on IP change
This changeset also clears PJSUA_CALL_UNHOLD flag after calling pjsua_call_set_hold/hold2()



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5892 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-26 05:58:47 +00:00
Sauw Ming 42e5ee52e1 Re #2147 (misc): Fixed build error of undefined reference to `pjmedia_srtp_enum_crypto' if PJMEDIA_HAS_SRTP is disabled.
Thanks to Alexei Gradinari for the patch



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5891 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-26 00:56:51 +00:00
Nanang Izzuddin 5a4bab3e56 Re #2150: Added native SSL error code in SIP TLS accept failure callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5889 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-21 08:29:12 +00:00
Riza Sulistyo 2814a6f384 Re #2150: Add local address to pjsip_tls_on_accept_fail_param.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5888 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-19 10:43:00 +00:00
Riza Sulistyo 9968e46140 Close #2151: Call tp_drop_data_cb() when there is PJSIP_EMISSINGHDR or PJSIP_EINVALIDSTATUS error on incoming message.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5886 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-18 12:45:47 +00:00
Riza Sulistyo e5bc0e68b9 Close #2150: Add new callback to notify when accept operation fails on TLS
listener.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5885 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-18 12:07:50 +00:00
Sauw Ming 99db1094f6 Fixed #2149: Add option to disable transport connection reuse via the setting pjsip_tpselector.disable_connection_reuse
Thanks to Joshua Colp for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5884 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-14 01:27:32 +00:00
Sauw Ming cb1f07cbac Fixed #2148: Add parsing support for the OAuth 2.0 authentication mechanism
Thanks to Joshua Colp for the patch submission.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5883 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-07 02:56:38 +00:00
Sauw Ming a0bf9103e8 Re #2147 (misc): Fix incorrect call state info on incoming call in PJSUA2
In PJSUA2, due to ticket #1916, on_incoming_call() can be called earlier, during on_create_media_transport().

At this time, call->inv->state is still INV_STATE_NULL (instead of INV_STATE_INCOMING).

This patch only fixes the call info, but doesn't change the invite state itself.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5882 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-06 10:20:24 +00:00
Riza Sulistyo ec69079d6d Close #2145: Don't rearrange media when sending re-INVITE with
PJSUA_CALL_REINIT_MEDIA.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5878 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 15:12:58 +00:00
Riza Sulistyo cb888bda8e Re #2049 (misc): Add local RTP/RTCP address information to MediaTransportInfo.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5877 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 14:57:07 +00:00
Sauw Ming 8267dc98f9 Re #2100: Fixed the incorrect string comparisons
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5876 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 02:25:34 +00:00
Sauw Ming d68a5a9753 Re #2100: Fix the optimization part of r5872, which didn't work since we don't preserve the old strings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5875 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 02:16:02 +00:00
Sauw Ming 6d35e02662 Re #2100: Fixed duplication of crypto names and keys to use pj_strdup(). Otherwise, when the account/global config's input strings are modified (or deallocated) after being passed to PJSIP, then the crypto name matching will fail and we will generate error: PJMEDIA_SRTP_ENOTSUPCRYPTO
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5872 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-03 07:13:40 +00:00
Nanang Izzuddin 94fe7a3a2c Fix #2144: Updated PJSUA media update to work on call->media directly (previously on call->media_prov). Note that at this point (i.e: after SDP nego), PJSUA won't revert media state (back to before SDP nego) on any media update failure.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5871 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-31 03:15:23 +00:00
Riza Sulistyo 0d6e7d6037 Re #2141: Fix variable declaration misplacement.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5870 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-28 07:05:43 +00:00
Riza Sulistyo 2c3e39b2f5 Close #2141: Add TCP initial receive timeout for server connection.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5869 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-28 05:42:25 +00:00
Nanang Izzuddin 62927ef6d3 Fix #2138:
- Updated ICE STUN & host candidates generation to be more forgiving on errors, i.e: continue gathering candidates using any available data instead of returning error.
 - Added more logs for debugging.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5861 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-16 02:56:52 +00:00
Nanang Izzuddin 5c8b34c348 Re #2135: Disabled a couple of tests in tsx_destroy_test() that rely on TCP connect timeout, as the timeout delay may vary among OSes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5858 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-16 01:00:04 +00:00
Nanang Izzuddin 833fa97e90 Misc (re #2059): False error/exception returned by IP change Endpoint::handleIpChange() on Android, it returns error "Address already in use" immediately while a retry attempt is scheduled (i.e: param.restartLisDelay is set to non-zero). Thanks Christian Scheid for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5856 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-15 03:00:18 +00:00
Riza Sulistyo 8f4661df4c Re #2070: Missed silly mistake on log formatting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5854 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-06 04:14:06 +00:00
Riza Sulistyo 6f1f14dd3b Fixed #2137: Race condition in 183 re-transmission can result in a deadlock.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5851 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-01 09:22:26 +00:00
Nanang Izzuddin 87862fcd81 Re #2135: Updated 'pjsip-test' to adapt to the recent library changes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5848 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-30 02:32:25 +00:00
Sauw Ming e98553fbcb Re #2126: Create thread when creating the event manager, which is required for video. Also add more doc about this in pjmedia_event_mgr.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5843 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 03:20:03 +00:00
Sauw Ming 8caccfe4f2 Re #2126: re 5841: move the event manager creation and destruction in pjsua_media instead
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5842 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 03:05:10 +00:00
Sauw Ming 1070fd13ea Re #2126: re: r5825, create pjmedia_event_mgr when initializing audio subsystem.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5841 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 02:50:06 +00:00
Sauw Ming ce2667ccd8 Re #2133: Add log when skipping the IPv4 STUN resolution
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5840 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 00:15:17 +00:00
Sauw Ming 71392a7ddc Fixed #2133: Skip IPv4 STUN resolution if account is using NAT64
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5839 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-25 23:56:39 +00:00
Nanang Izzuddin 5ddf559756 Close #2132: Updated pjsua_acc_find_for_incoming() to use weighted score algo in selecting account, where transport type match has higher priority.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5838 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-25 09:58:37 +00:00
Sauw Ming e79dfe5c05 Re #2126: Fixed missing conversion of rtcpFbConfig from and to pjsua account config
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5837 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-24 00:29:48 +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
Nanang Izzuddin ad7d4fe0d4 Fixed #2130: Fixed issue of re-INVITE not sent for non-registering accounts on IP change scenario.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5830 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 02:19:22 +00:00
Sauw Ming f5b93b5f5a Fixed #2128: Add feature to allow responding incoming INVITE/re-INVITE asynchronously and set the SDP answer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5828 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-20 02:19:41 +00:00
Nanang Izzuddin f61de805c8 Re #2126: Implemented incoming RTCP-FB handling, i.e: parse and notify application via PJMEDIA event framework.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5825 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-17 08:11:17 +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
Riza Sulistyo 6844393258 Close #484: Allow to use binary certificate in TLS transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5821 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-15 14:09:23 +00:00
Nanang Izzuddin 8a883d4ffb Close #2126: Initial implementation of RTCP Feedback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5820 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-12 08:22:31 +00:00