From 71cb7b97cff47eb5f3a3816ec2a52bd9faefe47e Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Tue, 19 Dec 2023 04:13:40 +0200 Subject: [PATCH] [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 ;tag=gBpey2Q8jrmNc To: sipp ;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. --- .../mod_sofia/test/sipp-scenarios/uac_digest_leak-tcp.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/endpoints/mod_sofia/test/sipp-scenarios/uac_digest_leak-tcp.xml b/src/mod/endpoints/mod_sofia/test/sipp-scenarios/uac_digest_leak-tcp.xml index 7276fa1d46..8294c0df1a 100644 --- a/src/mod/endpoints/mod_sofia/test/sipp-scenarios/uac_digest_leak-tcp.xml +++ b/src/mod/endpoints/mod_sofia/test/sipp-scenarios/uac_digest_leak-tcp.xml @@ -95,5 +95,6 @@ +