peer: A SIP entity to which Asterisk sends calls (a SIP provider for example). If you want a user (extension) to have multiple phones, define an extension that calls two SIP peers. The peer authenticates at registration.
假设这样的scenario
Internet ====== NAT ===== Asterisk-------Extensions
NAT Configuration:
Forward udp 5060 to Asterisk host.
Forward udp 10000-20000 to Asterisk host.
Asterisk Configuration:
sip.conf
[general]
externhost=<your external dns name>
;externip=xx.xx.xx.xx ; Or place your external ip address here if you don't have a dns name
localnet=192.168.1.0/255.255.255.0 ; I assume your local network is 192.168.1.xxx
Asterisk is the world’s leading open source telephony engine and tool kit. Offering flexibility unheard of in the world of proprietary communications, Asterisk empowers developers and integrators to create advanced communicatio