bilal ghayyad
2007-Jul-23 06:38 UTC
[asterisk-users] Can Asterisk hear on two IP addresses? And can I do
Dear Alex; Thanks for your kindly help and answer. The question here is: how asterisk will be able to receive calls at two network cards where each network card has a different IP address. Maybe we need to know if asterisk is doing a hear on the ports only without caring for IP or it is doing a hear only on the IP:port? Any advise? Bilal, There is no technical difference, from Asterisk's point of view, between bridging call legs from two different subnets that have local interfaces versus bridging call legs from two foreign IP destinations. As long as they are routable and reachable, they can be connected. So, I think the short answer to your question is yes, provided I'm understanding it correctly. Thanks, -- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : +1-678-954-0670 Direct : +1-678-954-0671 ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
Noah Miller
2007-Jul-23 14:10 UTC
[asterisk-users] Can Asterisk hear on two IP addresses? And can I do
Hi Bilal -> The question here is: how asterisk will be able to > receive calls at two network cards where each network > card has a different IP address. > > Maybe we need to know if asterisk is doing a hear on > the ports only without caring for IP or it is doing a > hear only on the IP:port?If you look in the sample configuration files, you'll see that iax.conf, sip.conf, mgcp.conf, and skinny.conf all have a line that looks like this: bindaddr If you set it to an IP address like 192.168.1.150, Asterisk will listen on that address only. If you set it to 0.0.0.0, asterisk will listen on all available ethernet interfaces. You can configure this individually for each different VoIP protocol (sip, iax, mgcp, skinny, etc). So, say you have an asterisk server that has two network cards, one configured to 192.168.1.150 and another configured to 222.6.7.8, and in sip.conf, you set bindaddr=0.0.0.0. In this case, your asterisk server will be listening on 192.168.1.150:5060 and 222.6.7.8:5060. Another sip device could call your asterisk server at either 192.168.1.150 or 222.6.7.8 (provided you don't have any firewalls blocking sip traffic). Does this make sense? - Noah