Commit Graph

6176 Commits

Author SHA1 Message Date
jimying 649c05eb70
Fix scan-build (Clang Static Analyzer) build fail (#3443) 2023-03-16 14:07:02 +08:00
jimying 8c41a770fe
Use PJ_ARRAY_SIZE() replace sizeof()/sizeof() (#3439) 2023-03-14 18:33:54 +08:00
jimying dfe315ac5f
makefile: use $(MAKE) replace make (for BSD compatibility) (#3436) 2023-03-14 17:36:44 +08:00
sauwming 874ca0dfd6
Fixed pjsua app cli redirection answer (3xx) (#3437) 2023-03-14 10:59:00 +08:00
sauwming fd6125c4dd
Fixed buffer overflow in h264 unpacketizer (#3434) 2023-03-14 10:25:46 +08:00
jimying b4184bb56d
Fix build with CFLAGS -Wextra warning reports (#3428) 2023-03-14 09:56:18 +08:00
sauwming d1c5e4da5b
Merge pull request from GHSA-q9cp-8wcq-7pfr
* Prevent heap buffer overflow when parsing DNS packet

* Fixed incorrect check in get_name*()
2023-03-14 09:45:23 +08:00
Andreas Wehrmann 5e2d564781
don't shadow local function parameter (#3435) 2023-03-13 17:11:01 +08:00
jimying 065599d8f2
Fix strtol overflow (#3426) 2023-03-13 16:09:47 +08:00
Nanang Izzuddin 0321bae17d
Fix SSRC media source in generating RTCP-FB. (#3429) 2023-03-13 11:14:27 +07:00
sauwming 669465a7d0
Add more fuzzing tests (#3422) 2023-03-13 09:18:54 +08:00
Jad K. Haddad a2ceae2652
Rust bindings for pjsua (#3275) 2023-03-13 09:05:20 +08:00
Kexin Li ea5452e85d
[Fix #3385 Assertion error] return status for proper status checking afterwards (#3389) 2023-03-13 09:04:39 +08:00
sauwming 93b6d942cf
Limit the number of searched blocks searched for pool allocation (#3423) 2023-03-13 07:58:05 +08:00
Florian Xaver f60d1c4746
Add function for printing SDP attributes (#3417) 2023-03-07 10:17:23 +07:00
Riza Sulistyo 88d2c65d57
Add doc to pjsua_config::enable_unsolicited_mwi and UaConfig::mwiUnsolicitedEnabled (#3415)
* Add doc to pjsua_config::enable_unsolicited_mwi and UaConfig::mwiUnsolicitedEnabled

* Fix text
2023-03-01 19:30:56 +07:00
Riza Sulistyo 5fbf6b2537
Check tp_ref validity before referencing it in pjsip_tpmgr_acquire_transport2() (#3413) 2023-03-01 11:20:37 +07:00
Riza Sulistyo a672d40b56
Handle incoming MWI when there is no available account (#3411)
* Handle incoming MWI when there is no available account

* Remove not needed pjsua_acc_find_for_incoming()

* Change the response code

* Add the response text

* Change response text
2023-02-28 15:16:04 +07:00
sauwming b4c4481866
Fixed bug in resample_resample (#3405) 2023-02-28 09:51:32 +08:00
Riza Sulistyo 2e0cc0123f
Fix multiple definition of pj_time_local_to_gmt() and pj_time_gmt_to_local() (#3408) 2023-02-28 07:54:17 +07:00
Nanang Izzuddin f7b8768a9a
Terminate dialog after receiving 481/408 response for UPDATE in early dialog state. (#3393) 2023-02-27 09:50:18 +07:00
sauwming b08b90edab
Fixed SDP fmtp parsing (#3401) 2023-02-27 09:53:14 +08:00
sauwming 24b0c483a0
Fixed video port's format change race (#3398) 2023-02-27 09:52:24 +08:00
jimying a27867898e
Misuse PJ_DECL in some function define (#3402) 2023-02-23 19:37:03 +08:00
郑澍禾 15dc790931
Fixed incorrect buffer count (#3403) 2023-02-23 19:36:40 +08:00
Nanang Izzuddin b0a90b1ab2
Allow dialog establishment when remote does not provide To tag (#3394) 2023-02-23 12:26:54 +07:00
sauwming 37862667bf
Use better initial values for pool initialization (#3396) 2023-02-23 12:47:08 +08:00
sauwming 3203025dcf
Add Android audio driver names (#3399) 2023-02-23 11:48:01 +08:00
jimying 497d05d99c
ffmpeg_codec: ffmpeg_codec_open() should use pjmedia_vid_codec_param_clone() copy codec param (#3384) 2023-02-22 13:07:03 +08:00
sauwming 433ddab27a
Fixed native iOS preview issue (#3350) 2023-02-22 13:04:26 +08:00
sauwming 5a80dd2e3d
Fixed buffer memory usage in video conference (#3395) 2023-02-22 13:03:50 +08:00
sauwming 66c101f3d3
Add API to shutdown TURN session with the appropriate error status (#3392)
* Add pj_turn_session_shutdown2()

* Minor: fix indentation
2023-02-20 19:00:57 +08:00
jimying efd05c3ca2
make the timer more precise (#3391) 2023-02-20 16:58:50 +08:00
sauwming 086d9d2206
Fixed ioq winnt build failure (#3358) 2023-02-20 12:09:22 +08:00
Riza Sulistyo 5a2d61cad7
FIx Android Mediacodec h264 SPS/PPS decoder config (#3360) 2023-02-20 12:08:00 +08:00
sauwming e99cb7bbb3
Formulate headers in new request upon receiving 3xx (#3386) 2023-02-20 12:07:23 +08:00
jimying 8054a92cd5
Fix doc error (#3375) 2023-02-16 10:03:01 +08:00
Nanang Izzuddin cba612aa98
Fix SDP m= line parser, verify port & port count are numeric (#3382)
* Fix SDP m= line parser, verify port & port count are numeric & add overflow check.
* Change SDP media parser to parse media type as token (was until space).
* Handle the case of missing c= line (allowed when port is zero) in sipecho.
* Check & update pj_strtoul() usages in SDP
* Add the problematic SDP to fuzzing seed corpus.
2023-02-15 16:39:56 +07:00
Benny Prijono 897d4066a4
Add oss-fuzz badge 2023-02-15 13:37:09 +07:00
Benny Prijono 18003e331b
Add link to Audio Troubleshooting 2023-02-15 13:19:14 +07:00
Nanang Izzuddin 98adc154db
Fix assertion in sipecho sample due to sending response statelessly on a stateful transaction (#3383)
Update pjsip_endpt_respond_stateless() to accept a terminated tsx, and update sipecho to use it.
2023-02-14 15:38:49 +07:00
Riza Sulistyo 642179a0e5
Make sure that NOTIFY tdata is set before sending it. (#3373) 2023-02-13 11:08:37 +08:00
jimying 0d4201f956
Fix pjmedia_converter_convert2() param declare and define is not match (#3370) 2023-02-13 11:06:25 +08:00
Benny Prijono de64969899
Incorrect pjlib-test on GitHub CI (#3374)
* Fix pjlib-test not returning error on error

* Add --ci-mode in pjlib-test and pjlib-test-ci Makefile target

* Better sleep_duration_test(): more lenient under --ci-mode and stricter under normal mode
2023-02-10 17:22:11 +07:00
Riza Sulistyo 5d693f87dc
Fix error when adding buddy (#3371) 2023-02-07 17:41:02 +07:00
Kexin Li 8319a6d12b
[Issue 3367 fix] Sipecho updates pj status properly when responding to invalid incoming message with status 400 (#3369) 2023-02-07 17:38:00 +07:00
sauwming 35924fbc2d
Handle invalid SDP when call is in early state (#3359) 2023-02-07 09:37:29 +08:00
Riza Sulistyo 55283c1d4d
Change swigwin binary source to avoid failing to download (#3361) 2023-02-03 16:27:10 +08:00
sauwming 99b1dd8ea9
Fixed crash if jb max size equals frame ptime (#3351) 2023-02-03 16:26:37 +08:00
sauwming f484d296e5
Remove assertion when even package exists (#3352) 2023-02-03 16:26:10 +08:00