[Home]

Summary:ASTERISK-20047: 1.8.13.0 Unable to get own IP address, SIP disabled
Reporter:Zouhair (zz64)Labels:
Date Opened:2012-06-25 15:56:31Date Closed:2012-06-26 03:26:14
Priority:MajorRegression?
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:1.8.13.0 Frequency of
Occurrence
Related
Issues:
Environment:Embedded Linux mips kernel 2.6.8.1 gcc 3.4.2 uClibc 0.9.27Attachments:
Description:Using bindaddr=0.0.0.0 on asterisk (1.8.13.0) does not bind to any interface, when I try bindaddr=192.168.4.1 (lan ip adress) it works but it only listens on 192.168.4.1.

Tested with 1.8.8 and 1.8.13.0; same problem.

I have recent applications running fine on this device like "XMail 1.26" and "openvpn 2.2.1"

#ifconfig
br0       Link encap:Ethernet  HWaddr 00:17:33:FF:FF:00  
         inet addr:192.168.4.1  Bcast:192.168.4.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:2741 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2266 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:235062 (229.5 KiB)  TX bytes:300266 (293.2 KiB)

eth0      Link encap:Ethernet  HWaddr 00:17:FF:FF:A9:00  
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:2741 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2266 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:284400 (277.7 KiB)  TX bytes:309348 (302.0 KiB)
         Interrupt:23 Base address:0x5100

eth1      Link encap:Ethernet  HWaddr 00:17:FF:FF:A9:01  
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 B)  TX bytes:74 (74.0 B)
         Interrupt:25 Base address:0x5120

lo        Link encap:Local Loopback  
         inet addr:127.0.0.1  Mask:255.0.0.0
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

nas_0_8_3 Link encap:Ethernet  HWaddr 00:17:33:FF:FF:03  
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:775 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

tap0      Link encap:Ethernet  HWaddr 00:FF:F5:45:F2:73  
         inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:100
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

tun0      Link encap:UNSPEC  HWaddr 7E-68-7F-FF-7E-64-00-48-00-00-00-00-00-00-00-00  
         inet addr:192.168.11.1  P-t-P:192.168.11.2  Mask:255.255.255.255
         UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
         RX packets:8 errors:0 dropped:0 overruns:0 frame:0
         TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:100
         RX bytes:672 (672.0 B)  TX bytes:672 (672.0 B)

wl0       Link encap:Ethernet  HWaddr 00:17:33:FF:FF:02  
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
         Interrupt:39

#brctl show
bridge name bridge id STP enabled interfaces
br0 8000.0017335fa900 no eth0
eth1
wl0
nas_0_8_35
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.11.2    0.0.0.0         255.255.255.255 UH    0      0        0 tun0
192.168.11.0    192.168.11.2    255.255.255.0   UG    0      0        0 tun0
192.168.4.0     0.0.0.0         255.255.255.0   U     0      0        0 br0
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 tap0


#netstat -naptu
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      218/XMail
tcp        0      0 0.0.0.0:465             0.0.0.0:*               LISTEN      218/XMail
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      212/httpd
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      218/XMail
tcp        0      0 0.0.0.0:1000            0.0.0.0:*               LISTEN      205/openvpn
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      203/dropbear
tcp        0      0 192.168.4.1:22          192.168.4.22:35333      ESTABLISHED 255/dropbear
netstat: /proc/net/tcp6: No such file or directory
udp        0      0 0.0.0.0:1001            0.0.0.0:*                           207/openvpn
netstat: /proc/net/udp6: No such file or directory
Comments:By: Michael L. Young (elguero) 2012-06-25 20:44:01.807-0500

We require a complete debug log to help triage the issue. This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue: https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

I have a feeling that the hostname of the machine is not being resolved.  Please check that the device's name is resolvable... check /etc/hosts.

By: Zouhair (zz64) 2012-06-26 03:17:42.200-0500

You are right, the problem is coming from "/etc/hosts".
Is not asterisk bug, should close this defect report.

Thanks.

By: Zouhair (zz64) 2012-06-26 03:26:14.915-0500

Sorry.
Is not asterisk bug, should close this defect report.