Vlad1983 писал(а):про NAT дельное замечание нужно в пирах
т.е. у вас в шаблоне [ertelecom-in](!) вместо nat=force_rport,comedia выставить nat=no
чтоб видеть дебаг в /etc/asterisk/logger.conf в строку console => добавить уровень debug
спасибо. попробовал: убрал нат, добавил дебаг, сделал рестарт, перешел в деблевел 10, ничего не поменялось.
[Sep 17 21:02:20] DEBUG[17276]: chan_sip.c:9161 find_call: = Looking for Call ID: db110e0a1fba11e3a46e5cf3fc1c586c@188.187.253.2 (Checking From) --From tag 3960279515-3809589791-4082921124-1817713916 --To-tag
[Sep 17 21:02:20] DEBUG[17276]: acl.c:979 ast_ouraddrfor: For destination '192.168.0.51', our source address is '192.168.0.65'.
[Sep 17 21:02:20] DEBUG[17276]: chan_sip.c:4031 ast_sip_ouraddrfor: Setting SIP_TRANSPORT_UDP with address 192.168.0.65:5060
[Sep 17 21:02:20] DEBUG[17276]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting '188.187.253.2:5161' into...
[Sep 17 21:02:20] DEBUG[17276]: netsock2.c:192 ast_sockaddr_split_hostport: ...host '188.187.253.2' and port '5161'.
[Sep 17 21:02:20] DEBUG[17276]: chan_sip.c:17941 check_for_nat: NAT detected for 188.187.253.2:5161 / 192.168.0.51:1029
[Sep 17 21:02:20] DEBUG[17276]: chan_sip.c:8764 sip_alloc: Allocating new SIP dialog for db110e0a1fba11e3a46e5cf3fc1c586c@188.187.253.2 - INVITE (No RTP)
[Sep 17 21:02:20] DEBUG[17276][C-0000003c]: chan_sip.c:28063 handle_incoming: **** Received INVITE (5) - Command in SIP INVITE
[Sep 17 21:02:20] DEBUG[17276][C-0000003c]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting '188.187.253.2:5161' into...
[Sep 17 21:02:20] DEBUG[17276][C-0000003c]: netsock2.c:192 ast_sockaddr_split_hostport: ...host '188.187.253.2' and port '5161'.
[Sep 17 21:02:20] DEBUG[17276][C-0000003c]: chan_sip.c:17941 check_for_nat: NAT detected for 188.187.253.2:5161 / 192.168.0.51:1029
[Sep 17 21:02:20] DEBUG[17276][C-0000003c]: netsock2.c:138 ast_sockaddr_split_hostport: Splitting '188.187.253.2:5161' into...
[Sep 17 21:02:20] DEBUG[17276][C-0000003c]: netsock2.c:192 ast_sockaddr_split_hostport: ...host '188.187.253.2' and port ''.
[Sep 17 21:02:20] DEBUG[17276][C-0000003c]: chan_sip.c:3874 __sip_xmit: Trying to put 'SIP/2.0 401' onto UDP socket destined for 192.168.0.51:1029
[Sep 17 21:02:20] DEBUG[17276]: chan_sip.c:9161 find_call: = Looking for Call ID: db110e0a1fba11e3a46e5cf3fc1c586c@188.187.253.2 (Checking From) --From tag 3960279515-3809589791-4082921124-1817713916 --To-tag as390455c1
[Sep 17 21:02:20] DEBUG[17276][C-0000003c]: chan_sip.c:28063 handle_incoming: **** Received ACK (6) - Command in SIP ACK
[Sep 17 21:02:20] DEBUG[17276][C-0000003c]: chan_sip.c:4566 __sip_ack: Stopping retransmission on 'db110e0a1fba11e3a46e5cf3fc1c586c@188.187.253.2' of Response 1: Match Found
далее повторения тогоже (эртелеком пытается несколько раз пропихнуть инвайт)...
192.168.0.51 - внутренний ip шлюза