[asterisk-bugs] [JIRA] (ASTERISK-24282) Asterisk listening/communicating on undefined IP
Zohair Raza (JIRA)
noreply at issues.asterisk.org
Tue Apr 21 10:28:32 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-24282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225951#comment-225951 ]
Zohair Raza commented on ASTERISK-24282:
----------------------------------------
Hi Rusty
You may give a try this way
Use one IP on a physical interface and another on a virtual one like below
eth0 Link encap:Ethernet HWaddr 00:50:56:A0:12:01
inet addr:172.20.255.41 Bcast:172.20.255.255 Mask:255.255.255.0
eth0:0 Link encap:Ethernet HWaddr 00:50:56:A0:12:01
inet addr:172.20.255.40 Bcast:172.20.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
In sip.conf, set asterisk to listen on the IP address that is on virtual interface
[general]
bindaddr=172.20.255.40
transport=udp,tcp
tcpenable=yes
Create some extensions and register two or three softphones, I suggest using microsip as it is the one I am using (issue is not related to softphone because I have seen the same with some IP phones as well)
Use TCP transport for the softphone and then see on asterisk machine in netstat or "lsof -i :5060", you will see some connections from the IP that is on physical interface i.e in above case 172.20.255.41
Let me know if you need anything else
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, ast.pcap, issue24282, 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