[Home]

Summary:ASTERISK-24926: CLONE - Asterisk listening/communicating on undefined IP
Reporter:Zohair Raza (zuhairraza)Labels:
Date Opened:2015-03-30 12:45:11Date Closed:2015-03-30 13:10:17
Priority:CriticalRegression?
Status:Closed/CompleteComponents:Channels/chan_sip/Interoperability
Versions:11.3.0 Frequency of
Occurrence
Constant
Related
Issues:
is the original version of this clone:ASTERISK-24282 chan_sip communicating via TCP on IP assigned to physical interface when Asterisk is bound to virtual interface/alias
Environment:Vmware Esxi / Centos 6 Attachments:( 0) 7may.pcapng
( 1) mylog.log
( 2) s1.pcap
Description:Hi,

I am running asterisk on VMs with standby heartbeat configuration, Heartbeat assigns a virtual IP 172.20.255.40 on machine afterwards asterisk is started. In the sip.conf, I have explicitly define bindaddr=172.20.255.40 but sometimes I see packets coming from physical IP 172.20.255.41

I have both tcp and udp transport enabled

Here is the lsof -ni :5060 output

asterisk 2878 asterisk  613r  IPv4 40060683      0t0  TCP 172.20.255.41:52381->10.100.210.110:sip (ESTABLISHED)
asterisk 2878 asterisk  528u  IPv4 29757779      0t0  TCP 172.20.255.41:55627->10.200.14.29:sip (ESTABLISHED)
asterisk 2878 asterisk  530u  IPv4 19211854      0t0  TCP 172.20.255.40:sip->10.100.157.32:49227 (ESTABLISHED)

sip show settings


Global Settings:
----------------
 UDP Bindaddress:        172.20.255.40:5060
 TCP SIP Bindaddress:    172.20.255.40:5060



Comments:By: Zohair Raza (zuhairraza) 2015-03-30 12:47:10.079-0500

Hello Team
Any update
I just tested the latest version from certified branch
and found the same problem
My Asterisk is supposed to listen on 172.20.255.66 only but it is also communicating with wrong IP
[root@RAI-TESTPBX-01 certified-asterisk-11.6-cert10]# lsof -i :5060
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
asterisk 3494 asterisk 12u IPv4 125728629 0t0 UDP 172.20.255.66:sip
asterisk 3494 asterisk 13u IPv4 125728630 0t0 TCP 172.20.255.66:sip (LISTEN)
asterisk 3494 asterisk 21u IPv4 125742847 0t0 TCP 172.20.255.66:sip->10.100.210.110:xds (ESTABLISHED)
asterisk 3494 asterisk 27u IPv4 125742863 0t0 TCP 172.20.255.65:48591->10.100.210.110:sip (ESTABLISHED)
The version I tested this on is
certified-asterisk-11.6-cert10


By: Joshua C. Colp (jcolp) 2015-03-30 13:10:17.857-0500

Please don't clone issues like this. I am reopening your original one.