[asterisk-bugs] [JIRA] (ASTERISK-24282) Asterisk listening/communicating on undefined IP

Zohair Raza (JIRA) noreply at issues.asterisk.org
Mon Sep 8 08:57:29 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=222569#comment-222569 ] 

Zohair Raza commented on ASTERISK-24282:
----------------------------------------

Hi Rusty 

Sorry I didnt get email alert for some reason and couldnt reply earlier 

Here are more details, I hope this will help

Steps: 
On a Linux machine, I have two IPs from same network i.e. 172.20.255.40 and 172.20.255.41 cidr 24
In sip.conf, I specified bindaddr to be 172.20.255.40 so I expected asterisk to be responding via one IP only as defined in the bindaddr field but on the linux machine itself and on when I do a packet capture on remote endpoint, I see some requests being originated with 172.20.255.41 which should not be the case

And lsof/netstat also showing connections being established on .41 IP 
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)

Below is the sip.conf's general section, I am also attaching pcaps. 
1. "7may.pcap" is an old one but has relevant info that you can see requests coming from .41.
2. "s1.pcap" is taken on the asterisk server 
3. mylog.log has the debug and verbose level 5

[general]
bindaddr=172.20.255.40
;udpbindaddr=172.20.255.40
transport=udp,tcp
tcpenable=yes
tlsenable=no
;tcpbindaddr=172.20.255.40
directrtpsetup=no
directmedia=yes
allowguest=no
sdpsession=EMC
callerid=EMCPBX
realm=emc
match_auth_username=yes
tos_sip=af31
tos_audio=ef
tos=0xB8
tos_video=af41                 ; Sets TOS for RTP video packets.
tos_text=af41                  ; Sets TOS for RTP text packets.
trustrpid = yes                 ; If Remote-Party-ID should be trusted
sendrpid = yes                 ; If Remote-Party-ID should be sent (defaults to no)
disallow=all
allow=alaw
allow=ulaw
allow=g729
maxforwards=70
relaxdtmf=yes
rpid_update = yes
maxexpiry=3600
minexpiry=60
defaultexpiry=600
qualify=no ;
notifycid = yes ; Control whether caller ID information is sent along with dialog-info+xml notifications (supported by snom phones)
qualifypeers=15
qualifygap=2000
progressinband=never
ignoreregexpire=no
recordofffeature=
recordonfeature=
localnet=172.16.0.0/12
localnet=10.0.0.0/8

Thanks 

> Asterisk listening/communicating on undefined IP
> ------------------------------------------------
>
>                 Key: ASTERISK-24282
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24282
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/Interoperability
>    Affects Versions: 11.3.0
>         Environment: Vmware Esxi / Centos 6 
>            Reporter: Zohair Raza
>            Assignee: Zohair Raza
>            Severity: Critical
>         Attachments: 7may.pcapng, mylog.log, s1.pcap
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list