本帖最後由 bubblestar 於 2011-1-21 15:17 編輯
回復 311# 亞星
最重要是你能夠做到。
至於externhost 和 externip 的設定,我也是在最初學習時,根據 Asterisk The Future of Telephony 2nd Edition 一書所講做調較的。由於我不是用Fixed IP,所以呢方面沒有太多經驗。
現節錄該書第352頁所講,方便大家參考:
externhost
externhost takes a fully qualified domain name as its argument. If Asterisk is behind
NAT, the SIP header will normally use the private IP address assigned to the server.
If you set this option, Asterisk will perform periodic DNS lookups on the hostname
and replace the private IP address with the IP address returned from the DNS
lookup:
externhost=my.hostname.tld
The use of externhost is not recommended in production systems,
because if the IP address of the server changes, the wrong IP address
will be set in the SIP headers until the next lookup is performed.
The use of externip is recommended instead.
externip
externip takes an IP address as its argument. If Asterisk is behind NAT, the SIP
header will normally use the private IP address assigned to the server. The remote
server will not know how to route back to this address; thus, it must be replaced
with a valid, routeable address:
externip=216.239.39.104 |