Во вложении.
Провобовал прописывать IP в iax.conf bindaddr, чтобы модуль слушал только один сетевой интерфейс, т.к.на сервере их два, но не помогло.
udp 0 0 172.16.16.1:iax
у нас netstat -a показывает занятый порт по имени, типа
nmap -sU host ip_addr_piter and port 4569 ??
в logger.conf ответ на ваш вопрос о выводе дебага.
# iptables -L -nv
Chain INPUT (policy ACCEPT 7 packets, 625 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 4 packets, 448 bytes)
pkts bytes target prot opt in out source destination
# iptables -L -nv
Chain INPUT (policy ACCEPT 12 packets, 800 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:4569
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 5 packets, 700 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:4569
# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.221 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::215:5dff:fe00:240c prefixlen 64 scopeid 0x20<link>
ether 00:15:5d:00:24:0c txqueuelen 1000 (Ethernet)
RX packets 136662 bytes 13618922 (12.9 MiB)
RX errors 17686 dropped 0 overruns 0 frame 0
TX packets 19283 bytes 3939628 (3.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.10.1 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::215:5dff:fe00:240d prefixlen 64 scopeid 0x20<link>
ether 00:15:5d:00:24:0d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 32343 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 6 dropped 0 overruns 6 carrier 6 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 15895 bytes 4885076 (4.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 15895 bytes 4885076 (4.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# netstat -nap | grep asterisk
tcp 0 0 0.0.0.0:5038 0.0.0.0:* LISTEN 2645/asterisk
tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 2645/asterisk
tcp 0 0 192.168.0.221:36134 192.168.0.225:5432 ESTABLISHED 2645/asterisk
udp 0 0 0.0.0.0:4520 0.0.0.0:* 2645/asterisk
udp 0 0 0.0.0.0:53691 0.0.0.0:* 2645/asterisk
udp 18432 0 0.0.0.0:4569 0.0.0.0:* 2645/asterisk
udp 0 0 0.0.0.0:2727 0.0.0.0:* 2645/asterisk
udp 0 0 0.0.0.0:5000 0.0.0.0:* 2645/asterisk
udp 0 0 0.0.0.0:5060 0.0.0.0:* 2645/asterisk
udp6 0 0 :::48283 :::* 2645/asterisk
unix 2 [ ACC ] STREAM LISTENING 109024 2645/asterisk /var/run/asterisk/asterisk.ctl
unix 3 [ ] STREAM CONNECTED 110985 2645/asterisk
unix 2 [ ] DGRAM 109048 2645/asterisk
# tcpdump -n -i eth0 port 4569 -vv
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
22:31:17.120267 IP (tos 0x0, ttl 128, id 60272, offset 0, flags [none], proto UDP (17), length 71)
192.168.0.250.4569 > 192.168.0.221.4569: [udp sum ok] UDP, length 43
22:31:17.327181 IP (tos 0x0, ttl 128, id 60273, offset 0, flags [none], proto UDP (17), length 71)
192.168.0.250.4569 > 192.168.0.221.4569: [udp sum ok] UDP, length 43
22:31:17.529635 IP (tos 0x0, ttl 128, id 60274, offset 0, flags [none], proto UDP (17), length 71)
192.168.0.250.4569 > 192.168.0.221.4569: [udp sum ok] UDP, length 43
22:31:17.933324 IP (tos 0x0, ttl 128, id 60275, offset 0, flags [none], proto UDP (17), length 71)
192.168.0.250.4569 > 192.168.0.221.4569: [udp sum ok] UDP, length 43
22:31:18.726720 IP (tos 0x0, ttl 128, id 60276, offset 0, flags [none], proto UDP (17), length 71)
192.168.0.250.4569 > 192.168.0.221.4569: [udp sum ok] UDP, length 43
PBX Core settings
-----------------
Version: 13.14.1~dfsg-2+deb9u3
Build Options: LOADABLE_MODULES, OPTIONAL_API
Maximum calls: Not set
Maximum open file handles: 1024
Root console verbosity: 0
Current console verbosity: 11
Debug level: 10
Maximum load average: 0.000000
Minimum free memory: 0 MB
Startup time: 22:29:55
Last reload time: 22:29:55
System: Linux/4.9.0-4-amd64 built by pbuilder on x86_64 2017-12-29 14:35:39 UTC
System name:
Entity ID: 00:15:5d:00:24:0c
PBX UUID: 205c7973-256d-427a-9dfa-f09ee53553ba
Default language: en
Language prefix: Enabled
User name and group: /
Executable includes: Disabled
Transcode via SLIN: Enabled
Transmit silence during rec: Disabled
Generic PLC: Enabled
Min DTMF duration:: 80
RTP dynamic payload types: 96-127
* Subsystems
-------------
Manager (AMI): Enabled
Web Manager (AMI/HTTP): Disabled
Call data records: Enabled
Realtime Architecture (ARA): Enabled
* Directories
-------------
Configuration file:
Configuration directory: /etc/asterisk
Module directory: /usr/lib/asterisk/modules
Spool directory: /var/spool/asterisk
Log directory: /var/log/asterisk
Run/Sockets directory: /var/run/asterisk
PID file: /var/run/asterisk/asterisk.pid
VarLib directory: /var/lib/asterisk
Data directory: /usr/share/asterisk
ASTDB: /var/lib/asterisk/astdb
IAX2 Keys directory: /usr/share/asterisk/keys
AGI Scripts directory: /usr/share/asterisk/agi-bin
Вернуться в Конфигурация и настройка Asterisk
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 47