[asterisk-users] Can Asterisk hear on two IP addresses? And can I do
Noah Miller
noahisaacmiller at gmail.com
Mon Jul 23 09:10:52 CDT 2007
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
More information about the asterisk-users
mailing list