I have set my debug log of asterisk to 10 and did a new try to get the logs, i just changed some values of my ip addresses and my phone number but here is the complete log history:
Attempting call on SIP/A_PHONE_NUMBER@linkNewVoice for A_PHONE_NUMBER@discagem_automatica:1 (Retry 1)
== Using SIP RTP CoS mark 5
-- Called A_PHONE_NUMBER@linkNewVoice
> 0x719ef8014580 -- Strict RTP learning after remote address set to: REMOTE_IP:21898
-- SIP/linkNewVoice-0000000f is making progress
> 0x719ef8014580 -- Strict RTP switching to RTP target address REMOTE_IP:21898 as source
> 0x719ef8014580 -- Strict RTP learning complete - Locking on source address REMOTE_IP:21898
-- SIP/linkNewVoice-0000000f answered
-- Executing [A_PHONE_NUMBER@discagem_automatica:1] Verbose("SIP/linkNewVoice-0000000f", "1, "Iniciando discagem automática para A_PHONE_NUMBER"") in new stack
"Iniciando discagem automática para A_PHONE_NUMBER"
-- Executing [A_PHONE_NUMBER@discagem_automatica:2] Set("SIP/linkNewVoice-0000000f", "FILENAME=1_1737125419.24.wav") in new stack
-- Executing [A_PHONE_NUMBER@discagem_automatica:3] MixMonitor("SIP/linkNewVoice-0000000f", "1_1737125419.24.wav, b") in new stack
[Jan 17 11:50:31] WARNING[41003][C-00000008]: app.c:3124 parse_options: Unrecognized option: ' '
-- Executing [A_PHONE_NUMBER@discagem_automatica:4] Set("SIP/linkNewVoice-0000000f", "horario_discagem=2025-01-17 11:50:31") in new stack
== Begin MixMonitor Recording SIP/linkNewVoice-0000000f
> Returned 0 columns [UPDATE asterisk_queues_contact SET status = 'dialing', updated_at = NOW() WHERE id = 2631]
-- Executing [A_PHONE_NUMBER@discagem_automatica:7] Set("SIP/linkNewVoice-0000000f", "ODBC_UPDATE=") in new stack
-- Executing [A_PHONE_NUMBER@discagem_automatica:8] Queue("SIP/linkNewVoice-0000000f", "URAProvoqueTIM,t,,,") in new stack
-- Started music on hold, class 'default', on channel 'SIP/linkNewVoice-0000000f'
== Using SIP RTP CoS mark 5
-- Called SIP/AGENT_EXTENSION
-- SIP/AGENT_EXTENSION-00000010 is ringing
> 0x719ef8020160 -- Strict RTP learning after remote address set to: AGENT_LOCAL_IP:48629
> 0x719ef8020160 -- Strict RTP learning after remote address set to: AGENT_PUBLIC_IP:48629
-- SIP/AGENT_EXTENSION-00000010 answered SIP/linkNewVoice-0000000f
-- Stopped music on hold on SIP/linkNewVoice-0000000f
-- Channel SIP/AGENT_EXTENSION-00000010 joined 'simple_bridge' basic-bridge <c4ec9dc5-5bf4-4a81-b0ab-f1f25c25f887>
-- Channel SIP/linkNewVoice-0000000f joined 'simple_bridge' basic-bridge <c4ec9dc5-5bf4-4a81-b0ab-f1f25c25f887>
> 0x719ef8020160 -- Strict RTP learning after ICE completion
> 0x719ef8020160 -- Strict RTP learning after remote address set to: AGENT_PUBLIC_IP:48629
> 0x719ef8020160 -- Strict RTP qualifying stream type: audio
> 0x719ef8020160 -- Strict RTP switching source address to AGENT_LOCAL_IP:48629
> 0x719ef8020160 -- Strict RTP learning complete - Locking on source address AGENT_LOCAL_IP:48629
-- Channel SIP/linkNewVoice-0000000f left 'simple_bridge' basic-bridge <c4ec9dc5-5bf4-4a81-b0ab-f1f25c25f887>
-- Channel SIP/AGENT_EXTENSION-00000010 left 'simple_bridge' basic-bridge <c4ec9dc5-5bf4-4a81-b0ab-f1f25c25f887>
== Spawn extension (discagem_automatica, A_PHONE_NUMBER, 8) exited non-zero on 'SIP/linkNewVoice-0000000f'
-- Executing [h@discagem_automatica:1] Verbose("SIP/linkNewVoice-0000000f", "1, "Queue status: , Member name: 102"") in new stack
"Queue status: , Member name: 102"
-- Executing [h@discagem_automatica:2] Set("SIP/linkNewVoice-0000000f", "status=") in new stack
-- Executing [h@discagem_automatica:3] Set("SIP/linkNewVoice-0000000f", "horario_finalizacao=2025-01-17 11:50:47") in new stack
-- Executing [h@discagem_automatica:4] GotoIf("SIP/linkNewVoice-0000000f", "0?5:7") in new stack
> Returned 0 columns [UPDATE asterisk_queues_contact SET status = 'retry', updated_at = NOW() WHERE id = 2631]
-- Executing [h@discagem_automatica:7] Set("SIP/linkNewVoice-0000000f", "ODBC_UPDATE=") in new stack
-- Executing [h@discagem_automatica:8] NoOp("SIP/linkNewVoice-0000000f", "Finish if_discagem_automatica_1") in new stack
> Returned 0 columns [INSERT INTO asterisk_bilhete_agents (fila, agent_name, numero_ramal, horario_discagem, status, horario_finalizacao, id_operacao, callid, extensao) VALUES ('URAProvoqueTIM', '', 'A_PHONE_NUMBER', '2025-01-17 11:50:31', '', '2025-01-17 11:50:47', '1', '1737125419.24', 'A_PHONE_NUMBER')]
-- Executing [h@discagem_automatica:9] Set("SIP/linkNewVoice-0000000f", "ODBC_RESULT=") in new stack
[Jan 17 11:50:47] NOTICE[41003][C-00000008]: pbx_spool.c:463 attempt_thread: Call completed to SIP/A_PHONE_NUMBER@linkNewVoice
== MixMonitor close filestream (mixed)
== End MixMonitor Recording SIP/linkNewVoice-0000000f