返回列表 發帖

一條寬帶可以掛兩個asterisk服务器吗?>

我依家有一部ip01在routerA後面   IP是 192.168.1.8    如果我想在routerA後面用電腦建一部asterisk  ip地址為192.168.1.9
但是一個router只有一個DNS    咁我用分機注冊時  點樣先可以注冊到ip01或   另一個asterisk

請問你用2 個 asterisks唔同 ports點樣互打?

TOP

You will need the client know where to connect and by which ports.
For testing purpose, no problem. Real use, you may encounter difficulty because it is not only client connect to Asterisk server. Your Asterisk server also needs to connect to other VOIP providers.

So if you have two true IPs, better to go for a dual WAN router.

TOP

本帖最後由 dreamy2k 於 2010-7-29 14:34 編輯

如果這情況應讓用PORT去設定!!最簡單!!!不同PORT去不同的ASTRISK上!!除非在網絡上的GATEWAY或FIREWALL設了規則

好像訪問SIP01.ABC.COM自動去ASTERISK01上,訪問SIP02.ABC.COM就去ASTERISK02上!!

TOP

还有多一台Asterisk Server,可以作于学习用,等成熟后,再转到正式使用。


角色

TOP

你说的方法也可以,但是楼主的意思是外面有 很多台SIP Client,而且他们很多都没有VPN, 但是两个Asterisk s ...
角色 發表於 2010-7-29 11:46



   对

TOP

你说的方法也可以,但是楼主的意思是外面有 很多台SIP Client,而且他们很多都没有VPN, 但是两个Asterisk servers都可以独立运作。

角色

TOP

你都可以考慮用VPN先用VPN連回家里的網絡!!之后你連那一台都OK!!!

TOP

如果是SIP port,你可以在sip.conf或者同的included file里该。而RTP就在rtp.conf里面改就可以。

角色

TOP

你需要係 asterisk D config files 改

TOP

但D  port系邊幾個文件改?

TOP

5061真的不知道是给TLS用,如果是这样我们可以用10001或者其他port number。

角色

TOP

I wonder whether we can allocate the port space as the followings:

Asterisk 1: UDP port number 5060 ...
角色 發表於 2010-7-22 18:10

我認為應該沒有問題,不過 port 5061 預設是給 TLS 使用(加密的 SIP),還是建議換個不會有應用程式使用的 port。
另外,若 end phone 允許,使用 IAX2 也會是個不錯的方式,畢竟 IAX2 在通過 firewall 會比 SIP 來的簡單。
OSSLab Blog :: VoIP & IT Consultant

TOP

I wonder whether we can allocate the port space as the followings:

Asterisk 1: UDP port number 5060 (default) and UDP 10000-11999
Asterisk 2: UDP port number 5061 (default) and UDP 12000-14000

The two Asterisk server are placed behind a single-WAN router with the same hostname but with different port numbers.

YH

TOP

You may try to flash with dd-wrt firmware and then you should be able to use 2 WAN IP. I have a DD-WRT router but not yet have time to try. However, I am not sure if you can configure the load balance as easy as true dual wan router

TOP

返回列表