[asterisk-users] Can Asterisk hear on two IP addresses? And can I do

David Boyd dboyd at ignitetrx.com
Mon Jul 23 14:27:52 CDT 2007


Noah, or anyone actually,


question, can the  IP address receiving the incoming call be used in
extension logic to determine call handling procedures, or maybe a better
way to ask is can asterisk provide information as to the IP address on
which a request  was  received?

Dave


On Mon, 2007-07-23 at 10:10 -0400, Noah Miller wrote:
> 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
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list