IAX Port 4569

Home » Asterisk Users » IAX Port 4569
Asterisk Users 16 Comments

Does asterisk listen on port 4569 by default?

I’m running version Asterisk 11.25.1 and have a problem registering Zoiper (IAX) to Asterisk. I’m getting an error:
Registration refused

16 thoughts on - IAX Port 4569

  • Dear Thelma,

    Yes. Asterisk listen on port 4569 UDP on default config.

    Please, look at the Asterisk logfile, for clues about your issue. Or enable IAX2 debug vía Asterisk CLI.

    Other ideas:

    * Check that your server firewall permit UDP port 4569 incoming traffic.

    * Run tcpdump over the network interface of your server where the registration packets suppose come in. Look ir at least the softphone registration request are reaching the server.

    * Check if the credentials configured un the softphone mach the credentials configured on the server.

    Cheers

    El 5 jun. 2017 9:48, escribió:

  • Another idea:

    * Run netstat -tulpn command on Linux box AND look if there are an Asterisk process listening on 4569 UDP port on 0.0.0.0

    El 5 jun. 2017 10:00, “Victor Villarreal” escribió:

  • I’m getting:
    netstat -a |grep 4569
    udp 0 0 0.0.0.0:4569 0.0.0.0:*

    Should I be getting localhost IP?

    Thelma

  • Another might be to make sure iptables isn’t blocking the connection.

    You can run iptables -L -n -v To see if its set to block any ports.

  • No, I don’t think it is IP table issue, I’ve not upgraded dd-wrt for a while and it was zoiper was working OK with my previous version of asterisk.

    After upgrade to 11.25.1 it stop working. I’m sure port forwarding on dd-wrt is working OK as I have port 80 and
    443 open.

    Thelma

  • You can use tcpdump in your server to verify if it is receiving the packets.

    tcpdump -ni any port 4569

    So you have more than one ip in the server?

  • I think you need to increase verbose output and search in
    /var/log/asterisk/full for any error message related to IAX2 registration or simil.

    2017-06-05 17:12 GMT-03:00 :

  • Yes, it is working!

    tcpdump -ni any port 4569
    dropped privs to tcpdump tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
    14:20:42.184521 IP 10.0.0.108.4569 > 10.0.0.100.4569: UDP, length 53
    14:20:42.184921 IP 10.0.0.100.4569 > 10.0.0.108.4569: UDP, length 37
    14:20:42.190529 IP 10.0.0.108.4569 > 10.0.0.100.4569: UDP, length 83
    14:20:42.190639 IP 10.0.0.100.4569 > 10.0.0.108.4569: UDP, length 71
    14:20:42.191378 IP 10.0.0.108.4569 > 10.0.0.100.4569: UDP, length 12
    14:20:45.320191 IP 192.168.141.7.4569 > 192.168.141.1.4569: UDP, length 31
    14:20:45.338718 IP 192.168.141.1.4569 > 192.168.141.7.4569: UDP, length 65
    14:20:45.338875 IP 192.168.141.7.4569 > 192.168.141.1.4569: UDP, length 82
    14:20:45.357173 IP 192.168.141.1.4569 > 192.168.141.7.4569: UDP, length 40
    14:20:45.357331 IP 192.168.141.7.4569 > 192.168.141.1.4569: UDP, length 65
    14:20:45.376559 IP 192.168.141.1.4569 > 192.168.141.7.4569: UDP, length 53
    14:20:45.376630 IP 192.168.141.7.4569 > 192.168.141.1.4569: UDP, length 12
    ^C
    12 packets captured
    12 packets received by filter
    0 packets dropped by kernel

    Thelma

  • Use the command bellow to check if is Asterisk opening the port.

    netstat -nap | grep 4569

    You need to see something like this output, otherwise your asterisk is not opening the port.

    udp 0 0 0.0.0.0:4569 0.0.0.0:*
    10244/asterisk

    Att, H

  • There are two different networks connecting in the tcpdump, 10 and 192.

    In this example that you send, are you trying to connect from different ips in different server ips?

    Regards,

    .

  • yes it does. netstat -nap | grep 4569
    udp 0 0 0.0.0.0:4569 0.0.0.0:* 17375/asterisk

    Thelma

  • From the tcpdump I’d say your asterisk server is talking to Zoiper.

    I think Victor suggested turning on “iax2 set debug on”. You should see the raw the messages there. You might even see why Asterisk is refusing the registration.

    Chris

  • In article <87af2f00-9973-f338-1cbc-9ce0a5bf7d21@sys-concept.com>, wrote:

    Check the settings in /etc/asterisk/logger.conf, for example:


    ;debug => debug
    ;security => security
    ;console => notice,warning,error
    ;console => notice,warning,error,debug console => notice,warning,error,debug,verbose(5)
    messages => notice,warning,error full => notice,warning,error,debug,verbose,dtmf,fax

    If you don’t have verbose listed for console, then AFAIK, you won’t see verbose messages however many -v options you give it!

    Cheers Tony

  • Run this command:

    tcpdump -pni any -s0 -vvv port 4569 -w /tmp/iax.pcap

    Try to authenticate and do calls, after that stop the command and send to us the file /tmp/iax.pcap that i can see and help you.

    If you want add-me at whatsapp

    Att, Hélvio Junior dCAA – Digium Certified Asterisk Administrator SafeId – Gestão de identidades e Acessos
    +55 41 | 9 9855-9300, single-sign-on.com.br helvio.junior@safetrend.com.br

    Em 05/06/2017 20:35, thelma@sys-concept.com escreveu: