Commit Graph

5691 Commits

Author SHA1 Message Date
jmaggard10 d34228fedd
Add musl target detection in config.sub (#2566) 2020-12-10 13:48:33 +07:00
Sean Bright 86f3ea6059
Don't infinite loop when searching CLI history list (#2560)
- The easiest way to clean up the history list when moving an item is to just remove it and reinsert, so use pj_list_erase().
- Also in inserting entry to CLI history list (`insert_history()`): trim string before compare (as history entries are trimmed), replace pj_list_insert_nodes_after() with pj_list_erase(), avoid buffer overflow in string copy, and a bit optimization: only copy string when needed.
2020-12-10 13:48:14 +07:00
sauwming 2eea0ace2b
Report disconnection event immediately when hanging up a call (#2600) 2020-12-04 10:29:45 +08:00
Jamil fe963266b1
Add ios arm64e arch support (#2537) 2020-11-24 11:28:32 +08:00
Michael Scheiffler bef8339e31
Conf functions to disconnect all sinks/sources (#2585) 2020-11-24 11:27:57 +08:00
Apteryks 67881cf4f2
libpjproject.pc: Move external libraries to Libs.private. (#2501) 2020-11-24 09:30:18 +07:00
Nanang Izzuddin c6bc0b1e2e
Create new contact for reregistration after transport disconnected (#2572) 2020-11-20 10:53:59 +07:00
Nanang Izzuddin 2925cca94f
Fix bugs in pjsip_inv_answer() (#2472) 2020-11-20 10:52:55 +07:00
Nanang Izzuddin 90a16c523b
Race condition between transport destroy and acquire (#2470)
* Handle race condition between transport_idle_callback() and pjsip_tpmgr_acquire_transport2().
* Add transport destroy state check as additional of transport shutdown state check
2020-11-20 10:52:22 +07:00
Nanang Izzuddin 0d911f82d0
Fix bug in video stream when incoming RTP packet timestamp rolls over. (#2584) 2020-11-20 10:51:30 +07:00
Michael Scheiffler 2701e5eab6
Reordered write_port() in conferencer to avoid writing to a disabled port (#2583) 2020-11-19 10:35:19 +07:00
Andreas Wehrmann fe5ef0c3a4
PJSUA call: fix on_pager_statusX() callbacks for in-dialog requests (#2490)
- on_pager_status() was called twice: once for event TSX_STATE and later for event TIMER
- on_pager_status2() was not called at all
2020-11-19 10:01:17 +07:00
Jeesang Kim 28fe62d69f
Append a vscode for gitignore (#2579) 2020-11-19 09:20:31 +07:00
Nanang Izzuddin b39dd1587d
Fix click noise in libsamplerate (#2565) 2020-11-18 16:55:44 +07:00
Michael Scheiffler 60b1e09cd0
Added underlying buffer configurability for splitcomb (#2570) 2020-11-18 16:53:01 +07:00
Nanang Izzuddin 014600b4a8 Merge branch 'master' of https://github.com/pjsip/pjproject 2020-11-13 17:19:33 +07:00
Nanang Izzuddin 634e7cf3d8 Misc (re #2504): Fix pjsua app: avoid using my_atoi() on non-NULL-terminated strings. 2020-11-13 17:19:16 +07:00
sauwming bba95b8a95
Prevent regc destroy when it is busy (#2575) 2020-11-11 10:28:28 +08:00
sauwming c59a3b3af0
Add getting shared curves for OpenSSL 1.1.1 (#2573) 2020-11-06 14:43:29 +08:00
Michael Scheiffler 540ab3bce6
Added function pjmedia_tonegen_stop_loop() (#2571) 2020-11-06 11:19:51 +08:00
Michael Scheiffler d8f0ed8f84
Fixed memory corruption on unsupported ALSA channel count (#2569) 2020-11-03 08:54:38 +08:00
Nanang Izzuddin f3e091fac0
Invoke on_call_sdp_created callback for new SDP offer generated by pjsua_call_set_vid_strm() (#2564) 2020-11-02 14:46:15 +07:00
Nanang Izzuddin 603de9bbb3 Merge branch 'master' of https://github.com/pjsip/pjproject 2020-10-24 17:25:05 +07:00
Nanang Izzuddin b1e3966f1e Misc (re #2504): Update pjsua test: registration test sometimes fails when the test script fails to connect fast enough to pjsua via CLI telnet (registration completed before the telnet connection established). 2020-10-24 17:24:50 +07:00
sauwming 86fdff32e7
Disallow forceful close of pjsua transport (#2557) 2020-10-23 08:37:03 +08:00
sauwming f72eba9afb
Remove multiplication by channel count in calculating ALSA buffer size (#2556) 2020-10-22 10:12:05 +08:00
sauwming d85f227ff9
ALSA dev incorrectly sets the number of samples per frame (#2549)
* Revert the commit in issue #2223
* Make sure buffer size setting is sufficient
2020-10-15 14:36:13 +08:00
Riza Sulistyo efbe7164e9
Option to send keep alive periodically when stream is started for NAT hole punching (#2518)
* send keep alive when stream is started.

* modification based on comments.

* Add documentation.

* Modification based on comments.

* Grouped configuration.
2020-10-12 14:37:30 +07:00
Riza Sulistyo c6e9af5f5a
Server Name Indication on TLS doesn't allow IP literal. (#2539)
* Server Name Indication on TLS doesn't allow IP literal.

* moved hostname check to SSL backend.

* Remove unwanted changes to the file.
2020-10-12 14:23:43 +07:00
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
Riza Sulistyo 6d18fee00a Modification based on comments. 2020-10-08 11:58:18 +07: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 af76445eb6 Fix check error and modify doc. 2020-10-02 21:01:03 +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 fb8a7772ef
Apple SSL backend using Network framework (#2482) 2020-09-29 11:31:01 +08:00
sauwming a184b14f8c
Speaker only setting still requires audio input device (#2522) 2020-09-29 11:29:15 +08:00
Nanang Izzuddin f834154bd6
ICE initialization never completes due to race condition (#2525)
* Fix possible race in ICE in TURN allocation init so TURN candidate status stays PJ_EPENDING.
2020-09-29 10:14:07 +07:00
Nanang Izzuddin 0157ddcda3
Update default setting for CFHost for getaddrinfo: from enabled to disabled. (#2526) 2020-09-29 10:05:09 +07:00
Nanang Izzuddin db4f8f23b9
Fixed bugs: (#2531)
- Maintain roll over counter in SRTP restart.
- Only reinit probation when SRTP is really restarted, was every srtp_start() (in PJSUA, media_start()/srtp_start() is called every after SDP nego, while SRTP may not be restarted, e.g: when SRTP policy/keys are not changing).
2020-09-29 09:57:01 +07:00
sauwming e2d8ee0f49
Suppress CodeQL warnings (#2530)
Also exclude some third party libs and python source
2020-09-23 18:45:59 +08:00
Perry Ismangil fd3f3ec064
Create codeql-analysis.yml (#2523)
* Create codeql-analysis.yml

Setting up code scanning

Disabled java and C#
2020-09-17 23:03:13 +01:00
sauwming 806c8b490e
Initialize vid conf's buffer with black color (#2510) 2020-09-15 09:58:14 +08:00
Martin Navne 047dc3862a
Add event manager to the JB simulator (#2515)
The event manager is needed for stream subscriptions.
2020-09-01 16:55:11 +08:00
Nanang Izzuddin bd9dff4b02
Media loss after 5 minutes when using ICE+TURN (#2503)
- Assign unique local preferences for candidates with the same type.
- Update component's valid pair condition, instead of just the highest priority, also consider 'nominated' flag.
- Add new compile-time setting PJ_ICE_ST_USE_TURN_PERMANENT_PERM, if set, TURN client session will automatically renew permission for all remote candidates.
- Update local preference for peer reflexive candidate.
- Also update PRIORITY field value in performing connectivity check: use unique local pref (with peer-reflexive candidate type).
- Fix local preference mask for non-standard ICE prio calculation.
2020-08-18 13:03:44 +07: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