Commit Graph

187 Commits

Author SHA1 Message Date
sauwming f406002f68
Fix warning of uninitialized value in fuzz-crypto (#3946) 2024-05-07 08:02:17 +08:00
sauwming 58a101c945
Fixed race condition in ACK handling of INVITE message (#3752) 2023-11-03 11:55:21 +08:00
Riza Sulistyo 21f40c8625
Support Python3 for github CI (#3612)
* Support Python3 for github CI

* Fix runtime error due to changes in telnetlib for python3

This will also remove support for python2

* Fix runtime error due to changes in socket lib

* Fix runtime error

* Fix error

* Replace imp to importlib to fix warning

* Fix some error

- On windows, error EACCESS when binding/opening socket
- Fix UnicodeEncodeError/UnicodeDecodeError
2023-07-06 15:38:04 +07:00
sauwming 8d9312913b
Fixed failed CI pjsua tests (#3517) 2023-04-24 08:15:36 +08:00
bennylp d32ec571f5 (Take 4): testing new GH action in this branch 2023-03-28 17:23:37 +07:00
bennylp 326bf6d00a (Take 3): testing new GH action in this branch 2023-03-28 14:35:59 +07:00
bennylp 91470a0b99 Add GH actions for coverity scan 2023-03-28 11:52:47 +07:00
bennylp 2aaad7daf5 Enable more features in config_site.h to be checked by coverity scan 2023-03-23 09:11:14 +07:00
sauwming 29d872af40 Merge branch 'master' into coverity01 2023-03-20 18:29:57 +08:00
sauwming 15902a8184
Respond with ACK first before hanging up call for dialog fork (#3445) 2023-03-20 09:38:49 +08:00
jimying 651df5b501
fuzz: PJMEDIA_HAS_VIDEO macro protect (#3446) 2023-03-17 11:31:15 +08:00
Arjun 3fd4726d7f
oss-fuzz ideal integration (#3430) 2023-03-16 16:29:59 +08:00
sauwming 4680c7add7 Merge master 2023-03-14 10:24:59 +08:00
sauwming 669465a7d0
Add more fuzzing tests (#3422) 2023-03-13 09:18:54 +08: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
Nanang Izzuddin b0a90b1ab2
Allow dialog establishment when remote does not provide To tag (#3394) 2023-02-23 12:26:54 +07:00
bennylp 8038b4e640 Fix error in upload syntax 2023-02-20 14:40:49 +07:00
bennylp f2f028f0ae Always rebuild the project to avoid submitting stale result 2023-02-17 00:57:34 +00:00
bennylp 105a9787c7 Add README.md 2023-02-17 00:18:03 +00:00
bennylp fbc42195e8 Draft version of coverity scan script 2023-02-16 13:19:02 +00: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
sauwming 35924fbc2d
Handle invalid SDP when call is in early state (#3359) 2023-02-07 09:37:29 +08:00
Alexey Vasilyev 930d80e5fc
Added PRACK SDP offer processing (#2995) 2023-01-30 13:42:58 +08:00
sauwming 662965f2f7
Separate CI per platform (#3339) 2023-01-25 19:12:10 +08:00
Arjun f5580e3faf
Fuzzing Support for oss-fuzz (#3297) 2022-12-01 10:36:26 +08:00
Riza Sulistyo 5ac9104514
Expand tab to spaces and remove $Id$ (#3292) 2022-11-22 16:26:54 +07:00
Alexey Vasilyev 4c81caa411
Don't terminate call on failed SDP negotiation during EARLY state (#3137) 2022-11-07 11:09:14 +08:00
Benny Prijono c03ab41ed5
Documentation fixes for docs.pjsip.org v2.0 project (#3202)
* Improve robustness of sample apps. Fixing crash in aviplay

* Changes in documentation

* Add first pjsua2 hello world sample (from PJSUA2 guide)

* Fix doxygen documentation for docs.pjsip.org v2

* Add make clean-doc target

* Replace Trac ticket URL with GitHub issues URL

* Remove pjsip-book because the correct one is in pjproject_docs
2022-08-09 06:16:16 +07:00
sauwming b04abebc33
Fixed issues with event subscription regarding on_rx_refresh() and unsubscription (#3126) 2022-06-06 11:40:41 +08:00
Riza Sulistyo 8e95490e37
Add compile time option to allow multiple Authorization header (#3010) 2022-03-24 13:53:03 +08: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 5c9cc3cea4
Pjsua test fix on multiple authentication header scenario (#2922) 2021-12-22 09:09:21 +08:00
Nanang Izzuddin f7ff6b2440 Misc (re #2698): Update python test:
- Retry running pjsua upon failure (due to address-in-use error, happened quite frequently on MacOS in GitHub CI).
- Minor fixes: missing 'self', add slight delay after closing socket to reduce possibility of address-in-use error, make sure sip port is not equal to telnet port.
2021-07-08 17:14:23 +07:00
lin.sun 35810cc2bb
Example command line for pjsua testing with sipp. (#2750) 2021-07-01 11:15:42 +08:00
sauwming bdbeb7c4b2
Skip unsupported digest algorithm (#2408)
Co-authored-by: Nanang Izzuddin <nanang@teluu.com>
2021-04-22 14:03:28 +08:00
Nanang Izzuddin b6bf662221 Misc (re #2698): Skip pjsua test scripts-sipp/uac-reinvite-bad-via-branch on MacOS due to unreliable result, i.e: always getting 200 response. Note that the test objective is to detect/avoid assertion, the test scenario will keep sending INVITE until receiving 500 response (indicating bad/duplicated Via branch is detected), on fast machines where INVITE tsx destroyed quickly, pjsua will send 200 response, instead of 500. 2021-04-20 15:34:27 +07:00
Nanang Izzuddin aadc643a01
Fixed assertion in media update of session refresh after previous SDP offer has been rejected (#2627) 2021-02-15 10:18:02 +07:00
Riza Sulistyo 5e8eb2eb13
Github action/CI for windows. (#2344) 2020-12-15 13:37:59 +07:00
Nanang Izzuddin d65cacddd3
Implement trickle ICE (#2588)
Squash & merge trickle-ice dev branch to master.
2020-12-11 09:40:57 +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
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
Nanang Izzuddin 6bbd5ed66a
Update pjsua-test module call to wait for ICE & DTLS-SRTP nego before checking media (#2353) 2020-03-23 15:05:44 +07:00
Nanang Izzuddin 2ea82e9e6c
Attempt to fix intermittent errors in pjsua-test (#2330)
* Update sipp script uas-forked-200.xml to avoid problem due to unpredictable response order
* Fix uac-reinvite-bad-via-branch.xml scenario when pjsua answer is 200
2020-03-19 15:04:27 +07:00
Nanang Izzuddin fedc629c4a
More pjsua-test work: print full log to help investigating any failed test, and other minor updates. (#2322)
* pjsua-test print full test log if test failed
* Update subscription check condition in pjsua presence test
* Update ccpp.yml
2020-03-04 09:11:37 +07:00
Nanang Izzuddin 848ce29fa5
More pjsua-test work: retry telnet on fail and runall.py emits exit/error code (#2320)
More pjsua-test work: run.py retry telnet on fail and runall.py emits exit/error code
2020-03-03 10:17:27 +07:00
Nanang Izzuddin 48a8aebc45
Update python pjsua-test to use telnet CLI (#2309)
* Update pjsua test to use pjsua telnet CLI, configurable via `DEFAULT_TELNET` setting in `inc_cfg.py`, set it to `False` to return to the old behavior using console prompt+stdin/stdout.
* Update pjsua test indentation: replace tab->space.
2020-03-02 09:48:54 +07:00
sauwming 9f208e962c
Add option to disable certain pjsua tests (#2289)
* Add option to disable certain pjsua tests
* install sipp for pjsua test CI
2020-02-27 18:01:37 +08:00
nanangizz 6ea8618d90 Close #2280: delete compare WAV tool in test dir 2020-02-14 16:10:01 +07:00
Nanang Izzuddin 8631ffe736 Fix #2254: Updated SDP encoder of SDES to avoid deactivating/disabling media, it should be done by the parent/SRTP instead.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6115 74dad513-b988-da41-8d7b-12977e46ad98
2019-12-04 09:01:19 +00:00
Nanang Izzuddin f55a1e198e Misc (re #2147): Updated automated test configs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6023 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-11 05:24:02 +00:00