Commit Graph

21949 Commits

Author SHA1 Message Date
Dragos Oancea 71cb7b97cf [unit-tests ] Attempt to mitigate sofia bug with TCP.
"
------------------------------------------------------------------------
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/TCP 192.168.192.2:5080;branch=z9hG4bKeS0Dvget9vFBe
From: sut <sip:1001@192.168.192.2:5080;transport=tcp>;tag=gBpey2Q8jrmNc
To: sipp <sip:1001@127.0.0.1:5062;transport=tcp>;tag=1
Call-ID: 1-18918@192.168.192.2
CSeq: 76919576 BYE
Proxy-Authenticate: Digest algorithm=MD5, realm="freeswitch.org", nonce="69d327e5"
Content-Length: 0

tport.c:3055 tport_deliver() tport_deliver(0x6150000b7280): msg 0x6190003e9480 (394 bytes) from tcp/192.168.192.2:5062/sip next=(nil)
nta.c:3378 agent_recv_response() nta: received 407 Proxy Authentication Required for BYE (76919576)
nta.c:3445 agent_recv_response() nta: 407 Proxy Authentication Required is going to a transaction
nta.c:9697 outgoing_estimate_delay() nta_outgoing: RTT is 2.961 ms
tport.c:4253 tport_release() tport_release(0x6150000b8680): 0x6190003e8a80 by 0x613000093200 with 0x6190003e9480
auth_digest.c:114 auth_digest_challenge_get() auth_digest_challenge_get(): got 4
nua_stack.c:301 nua_stack_event() nua(0x61200019ec40): event r_bye 407 Proxy Authentication Required
nta.c:8829 outgoing_free() nta: outgoing_free(0x613000093200)
tport.c:2316 tport_set_secondary_timer() tport(0x6150000b8680): reset timer
tport.c:2316 tport_set_secondary_timer() tport(0x6150000b7280): reset timer
tport.c:2316 tport_set_secondary_timer() tport(0x6150000b7280): reset timer
nua_stack.c:389 nua_application_event() nua: nua_application_event: entering
nua.c:1170 nua_handle_unref_user() nua nua_handle_unref_user(0x61200019ec40): entering
nua_stack.c:558 nua_signal() nua(0x61200019ec40): sent signal r_handle_unref
nua.c:1157 nua_unref_user() nua: nua_unref_user: entering
nua.c:365 nua_handle_magic() nua: nua_handle_magic: entering
nua_stack.c:558 nua_signal() nua((nil)): sent signal r_unref
nua_stack.c:599 nua_stack_signal() nua(0x61200019ec40): recv signal r_handle_unref
nua.c:1170 nua_handle_unref_user() nua nua_handle_unref_user(0x61200019ec40): entering
nua_stack.c:599 nua_stack_signal() nua((nil)): recv signal r_unref
nua_stack.c:558 nua_signal() nua(0x61200019ec40): sent signal r_handle_unref
nua_stack.c:599 nua_stack_signal() nua(0x61200019ec40): recv signal r_handle_unref
nua.c:1157 nua_unref_user() nua: nua_unref_user: entering
nua_stack.c:558 nua_signal() nua((nil)): sent signal r_unref
nua_stack.c:599 nua_stack_signal() nua((nil)): recv signal r_unref
8d95eac1-d89d-4619-aaa1-0720ea649626 2023-12-19 00:45:36.203584 36.67% [DEBUG] switch_core_state_machine.c:59 sofia/external/1001@127.0.0.1:5062 Standard HANGUP, cause: NORMAL_CLEARING
"

It looks there's no event coming to the unit-test because the flow is not reaching mod_sofia.
2023-12-19 04:15:26 +02:00
Dragos Oancea 0fe571ad3d [unit-tests] fix sipp tests (decrease SIP timers, increase wait before unit-test shut-down, so it does not report false memory leaks) 2023-12-19 04:09:27 +02:00
Andrey Volk c155ea7008 [Core] Fix implicit conversion from enumeration type 'switch_odbc_status_t' to different enumeration type 'switch_status_t'. 2023-12-14 13:44:22 +03:00
Jakub Karolczyk 48608177d7 [core] Fix missing 192 key lengths 2023-12-13 00:27:59 +03:00
Andrey Volk f7e19e5134 [mod_sofia] BYE Reason header was limited in length. 2023-12-11 22:48:00 +03:00
Arun Raghavan f05b7507aa [mod_conference] Avoid a race in member->read_impl access
The conference output loop accesses the member's read_impl while
resampling. The output loop also spawns off the input loop thread, which
is where the member->read_impl is actually initialised. This results in
an uncommon race where the output loop sometimes gets an uninitialised
member->read_impl and bails with logs something like this:

2023-10-12 18:19:01.436844 [DEBUG] conference_loop.c:1340 Setup timer soft success interval: 20  samples: 960 from codec L16
2023-10-12 18:19:01.436844 [DEBUG] conference_loop.c:1497 Outbound conference channel answered, setting CFLAG_ANSWERED
2023-10-12 18:19:01.436844 [NOTICE] switch_core_media.c:15852 Activating write resampler
2023-10-12 18:19:01.436844 [DEBUG] switch_core_media.c:16097 Engaging Write Buffer at 1920 bytes to accommodate 0->1920
2023-10-12 18:19:01.436844 [ERR] switch_core_media.c:16112 Write Buffer 0 bytes Failed!

As a solution, we initialise the member->read_impl even before we start
up the input loop, so that this race can never happen.
2023-11-07 09:42:27 -05:00
Jakub Karolczyk 104c0b3fec [core] Fix flopping routes on ICE negotiation 2023-10-12 12:15:46 +00:00
Andrey Volk f5a41d3092
[mod_pgsql] Coverity: 1227660 Logically dead code 2023-10-05 18:05:32 +03:00
Andrey Volk d08424384b
[Core] Coverity: 1024552 Logically dead code 2023-10-05 18:03:32 +03:00
Andrey Volk 79ce088101
[Core] Coverity: Dereference before null check
* [Core] Coverity: 1060958 Dereference before null check

* [Core] Coverity: 1024236 Dereference before null check
2023-10-05 00:26:26 +03:00
Andrey Volk c4115537e0
[Core] Coverity: Use of 32-bit time_t
* [Core] Coverity: 1500270 Use of 32-bit time_t

* [Core] Coverity: 1500229 Use of 32-bit time_t

* [Core] Coverity: 1500235 Use of 32-bit time_t

* [Core] Coverity: 1500244 Use of 32-bit time_t

* [Core] Coverity: 1500250 Use of 32-bit time_t

* [Core] Coverity: 1500245 Use of 32-bit time_t

* [Core] Coverity: 1500255 Use of 32-bit time_t

* [Core] Coverity: 1500370 Use of 32-bit time_t

* Cleanup
2023-10-04 18:24:16 +03:00
Andrey Volk 792eee44d0
Merge pull request #2232 from signalwire/coverity_1364946
[core] Coverity 1364946 Unchecked return value
2023-09-11 14:06:48 +03:00
Andrey Volk ff71b9089c
Merge pull request #2233 from signalwire/coverity_1325269
[core] Coverity 1325269 Dereference before null check
2023-09-11 14:06:05 +03:00
Jakub Karolczyk bb9afcb388
[core] Coverity fixes
* [core] Coverity 1518099, 1518097, 1518098 (Unchecked return value from library)

* [core] Coverity 1468551 Unchecked return value

* [core] Coverity 1468293 Unchecked return value

* [core] Coverity 1468274 Explicit null dereferenced

* [core] Coverity 1395588 Unchecked return value

* [core] Coverity 1395515 Logically dead code

* [core] Coverity 1364984 Result is not floating-point

* [core] Coverity 1395554, 1468440 Dereference before null check

* [core] Coverity 1024487 Dereference after null check

* [core] Coverity 1024872 Unchecked return value

* [core] Coverity 1025822 Unchecked return value

* [core] Coverity 1025823 Unchecked return value

* [core] Coverity 1087637, 1346467, 1087638 Unchecked return value

* [core] Coverity 1107607 Unchecked return value

* [core] Coverity 1210777 Unchecked return value

* [core] Coverity 1227670 Dereference before null check

* [core] Coverity 1024551 Logically dead code

* [core] Coverity 1024560 Logically dead code

* [core] Coverity 1024664 Operands don't affect result

* [core] Coverity 1364957 Dereference after null check

* [core] Coverity 1395572 Logically dead code

* [core] Coverity 1412459 Unchecked return value

* [core] Coverity 1412490 Unchecked return value

* [core] Coverity 1395515/2 Logically dead code

* [core] Coverity cleanup
2023-09-08 20:17:57 +03:00
Jakub Karolczyk 4c51ba9064 [core] Coverity 1364946 Unchecked return value 2023-09-08 17:54:58 +01:00
Jakub Karolczyk ebcb099a01 [core] Coverity 1325269 Dereference before null check 2023-09-08 17:54:33 +01:00
Dragos Oancea b6ccc27e6f [core] JB audio: check for jb type and silence some debug. (#1191) 2023-09-05 23:19:59 +03:00
Andrey Volk 5c289cc063 swigall 2023-08-13 16:00:05 +00:00
Andrey Volk 9347c96712 [Core] check_ice: sanitize second field of the candidates. Add new switch_is_uint_in_range() API. 2023-08-13 15:49:58 +03:00
Sergei Rozhkov eb918fe180
[Core] Fix switch_console.c for Galera Mariadb cluster
Fix in switch_console.c file.
Adds column names when inserting data.
Calls to use the complete table in Galera Multi-Master Cluster
2023-08-11 23:13:00 +03:00
Andrey Volk 113889b14d
Merge pull request #1554 from wmasilva/mod_verto-msg_event_add_context_header
[mod_verto] Add context into msg event header
2023-08-11 20:08:31 +03:00
Sergei Rozhkov c5be6262b4
[mod_mariadb] Fix "DeadLock. The retries are over." message.
Co-authored-by: Sergei Rozhkov <git@zserg.ru>
2023-08-11 19:53:32 +03:00
António Silva 558d3a6b11 [mod_verto] Add context into msg event header 2023-08-11 18:36:47 +03:00
Matteo ffadaffdd8
[core] Use auto DH params with openssl3
Co-authored-by: Matteo Brancaleoni <matteo.brancaleoni@voismart.it>
2023-08-11 14:33:40 +03:00
Seven Du 9cad385930
[mod_logfile] add logfile open error log and fixes a missing \n 2023-08-11 14:21:59 +03:00
Andrey Volk 41507363f3 [Core] Fix greedy_sort for codecs containing different fmtp 2023-07-31 21:30:35 +03:00
Andrey Volk cfb39e88dc [Core] Sanitize match count during negotiation 2023-07-31 21:30:25 +03:00
Andrey Volk 6b67970bbb [Core] Add new switch_channel_get_variable_strdup() and switch_channel_get_variable_buf() APIs that avoid allocating channel variables in a session's memory pool. 2023-07-28 22:29:22 +03:00
Andrey Volk 1f364254a6
Merge pull request #2181 from signalwire/shout
[mod_shout] Replace deprecated meta functions with shout_set_meta()
2023-07-25 03:27:16 +03:00
Andrey Volk 820e42aa89
Merge pull request #2178 from signalwire/rtmp
[mod_rtmp] Add OpenSSL 3 support.
2023-07-25 03:04:26 +03:00
Andrey Volk 47e18be18d [mod_shout] Replace deprecated meta functions with shout_set_meta() 2023-07-25 02:49:51 +03:00
Andrey Volk c37ed7c816 [Core] switch_curl_process_mime(): fix build on older systems. 2023-07-25 01:44:20 +03:00
Andrey Volk f7e5ae793e
Merge pull request #2175 from signalwire/curl
[Core, mod_cidlookup, mod_curl, mod_httapi, mod_http_cache, mod_kazoo, mod_shout] Add new switch_curl_mime APIs replacing switch_curl_process_form_post_params() and make code be compatible with libcurl>=7.87.0
2023-07-25 01:28:57 +03:00
Andrey Volk 64f8ff03be [Core, mod_mariadb, mod_ilbc] Fix build on gcc 12. 2023-07-25 00:25:53 +03:00
Andrey Volk 2ef59577a9 [mod_rtmp] Add OpenSSL 3 support. 2023-07-24 23:47:47 +03:00
Andrey Volk 5966077030 [Core, mod_cidlookup, mod_curl, mod_httapi, mod_http_cache, mod_kazoo, mod_shout] Add new switch_curl_mime APIs replacing switch_curl_process_form_post_params() and make code be compatible with libcurl>=7.87.0 2023-07-24 23:40:27 +03:00
Andrey Volk 0cdf1a5757
Merge pull request #2177 from signalwire/skinny
[mod_skinny] Fix build on Debian 12: error: array subscript 'skinny_message_t {aka struct skinny_message}[0]' is partly outside array bounds
2023-07-24 23:07:15 +03:00
Andrey Volk 62c1036b51
Merge pull request #2176 from signalwire/test
[Unit-tests] Fix possible overflows and an undefined variable in the test framework.
2023-07-24 22:33:47 +03:00
jpfox156 00818e7b25
[Core] OpenSSL 3 support 2023-07-24 21:56:46 +03:00
Andrey Volk cced3e7f1b [Unit-tests] Fix possible overflows and an undefined variable in the test framework. 2023-07-24 21:23:53 +03:00
Andrey Volk 1b58c8bdd0 [mod_skinny] Fix build on Debian 12: error: array subscript 'skinny_message_t {aka struct skinny_message}[0]' is partly outside array bounds 2023-07-24 21:15:52 +03:00
Andrey Volk 0f445e1ddd
[core, mod_opus] more elastic jitterbuffer with Opus codec
* [core, mod_opus] more elastic jitterbuffer with Opus codec

* [Core] JB: Fix crash on null channel

* [Core] JB: Fix target_seq race in check_jb_size()

* Code cleanup

---------

Co-authored-by: Julien Chavanton <jchavanton@gmail.com>
2023-07-21 20:03:00 +03:00
Jakub Karolczyk 55f2dc4759
[core] Coverity fixes
* [core] Coverity CID 1024233 (Dereference before null check)

* [core] Coverity CID 1024239 (Dereference before null check)

* [core] Coverity CID 1024242 (Dereference before null check)

* [core] Coverity CID 1024243 (Dereference before null check)

* [core] Coverity CID 1024453 (Dereference before null check)

* [core] Coverity CID 1024554 (Logically dead code)

* [core] Coverity CID 1024868 (unchecked return value from library)

* [core] Coverity CID 1024869 (unchecked return value from library)

* [core] Coverity CID 1468281 (Dereference before null check)

* [core] Coverity CID 1024238 (Dereference before null check)

* [core] Coverity CID 1468621 (Copy into fixed size buffer)

* [core] Coverity CID 1024871 (Unchecked return value)
2023-07-21 13:49:40 +03:00
Andrey Volk 9f8de014a1 [mod_av] Add FFmpeg 5.1.3 support on Windows. 2023-07-18 19:38:06 +03:00
Jakub Karolczyk 667783831b [mod_av] Migrate to FFmpeg 5.1 2023-07-18 10:32:05 +00:00
Andrey Volk 2f81317ac1
Merge pull request #2155 from signalwire/move_to_packetizer
[core,mod_av,unit-tests] Make transition to core packetizer
2023-07-17 18:31:27 +03:00
Andrey Volk fdce50e420 [Core] Fix missing MEDIA_PARAMS in message_names. 2023-07-16 21:20:56 +03:00
Andrey Volk 34f1d974f5 Revert "[core, mod_opus] more elastic jitterbuffer with Opus codec (#2069)"
This reverts commit 67840823c1.
2023-07-12 18:18:17 +03:00
Andrey Volk 95457f7922 Revert "[mod_opus] Fix Windows build regression made by previous commit"
This reverts commit 25afda9be0.
2023-07-12 18:17:52 +03:00
Victor Seva 2cf57c41b6 [mod_python3] fix build on Python 3.10+
fix #2145
2023-07-10 19:21:04 +02:00