新發現:一條線上用不同Voip providers打進打出的方法

來源: 出入自在 2009-11-06 15:17:57 [] [博客] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (3741 bytes)
本文內容已被 [ 出入自在 ] 在 2009-11-06 15:31:15 編輯過。如有問題,請報告版主或論壇管理刪除.
1.關鍵技術DDNS(Dynamic Domain Name Service)

(1)建立一個域名

如果家裏的高速網是DSL,通常用的是dynamic IP address, 所以你的IP地址經常會變,就沒法去申請一個普通的域名。但是象dyndns.com 和no-ip.com這樣的網站支持DDNS,你就可以到上麵去申請一個域名。對一般家庭而言,使用免費的服務就可以了。有了這樣一個域名之後,你就可以讓你的voip providers把電話直接送到你的ATA上。

這個事做起了很簡單,比如說你在dyndns.com開一個賬號,登錄之後的頁麵上你找到並進入add host service,你給自己選一個hostname,比如abcdevoip.getmyip.com . 在IP address一欄裏你需要輸入你現在家裏的IP address。 如果你在家裏上機你直接按下麵Use auto detected IP address 209...就行了。

(2)IP address 更新

你可以到下麵的網址下載他們的一個小軟件
https://www.dyndns.com/support/clients/
你安裝之後,一旦你IP address發生了變化,它就會自動更新你在dyndns.com上的域名下的IP address。

如果你家的router支持DDNS,那麽你在router裏麵設置更新就更好。

2.構造你的ATA的sip address

如果你ATA line1上的user ID是15126667777,sip port是5060,那麽對應的sip address就是 15126667777@abcdevoip.getmyip.com:5060 .

有了這個sip address,你在你的voip providers 的IP address 的forwarding欄裏填上這個sip address,電話就直接接到你的ATA line1上麵了。

3.ATA 和router的 設置

直接按下麵的步驟設置就可以:

Here's a more general set of steps to properly set up a PAP2/SPAxxxx type ATA behind a NAT router, that should work under just about any conditions.

Browse to the ATA's advanced, admin level web configuration. Under the SIP tab:

1) Record the port number specified by RTP Port Min.
2) Record the port number specified by RTP Port Max.
3) Set Handle VIA received to yes.
4) Set Handle VIA rport to yes.
5) Set Insert VIA received to yes.
6) Set Insert VIA rport to yes.
7) Set Substitute VIA Addr to yes.
8) Set Resp to Src Port to yes.
9) Set STUN Enable to yes.
10) Set STUN Server to your choice for STUN server, eg "stun.voxalot.com".
11) Set Ext RTP Port Min to match the value recorded in step 1). May be omitted depending on router's NAT implementation.

Under the Line 1/2 tab:

12) Set NAT Mapping Enable to yes.
13) Optionally, set NAT Keep Alive Enable to yes. Isn't really necessary with ports forwarded.
14) Make a note of the value of field SIP Port.
15) Set Ext SIP Port to the value from step 14). May be omitted depending on router's NAT implementation.
16) Set Ans Call Without Reg to yes.

In your router's setup:

17) Forward the port number from step 14) for UDP, from your router to the ATA.
18) Forward the range of port numbers defined by the values from steps 1) and 2) for UDP, from your router to the ATA.

Finally, in G5's setup, make sure that the SIP forwarding goes to the same port number as recorded in step 14).

http://www.dslreports.com/forum/r22659451-Different-providers-for-inbound-and-outbound-on-same-ATA~start=20

這樣設置好了就可以打進來了。比如我用的ATA是SPA1001,line 1我注冊的是nonoh,我試過把gizmo5 和ipkall單獨或同時送到這條線上都能接聽。

4)後話

首先要感謝fitwxc給大家介紹自裝網絡電話的方法,他給大家推薦的SPA1001能夠很簡單地設置用不同voip providers打進打出,使用起來確實很方便。

能夠用不同的voip公司打進打出,給人更多選擇的自由度。按上麵方法設置,一條線上也可以用不同的voip公司打入打出,選擇餘地就多很多了。特別是現在,好像隻能買到SPA1001的山寨版,有的質量不能保證,剛好碰上就有點頭疼。為了保證質量就可以選擇正品的別的牌子的ATA。

所有跟帖: 

可靠性問題 -出入自在- 給 出入自在 發送悄悄話 出入自在 的博客首頁 (402 bytes) () 11/06/2009 postreply 16:06:47

回複:可靠性問題 -qljq- 給 qljq 發送悄悄話 (50 bytes) () 11/07/2009 postreply 12:12:05

嗬嗬,試一下就知道這個方法簡單、好使而且可靠 -出入自在- 給 出入自在 發送悄悄話 出入自在 的博客首頁 (0 bytes) () 11/09/2009 postreply 21:40:01

回複:嗬嗬,試一下就知道這個方法簡單、好使而且可靠 -qljq- 給 qljq 發送悄悄話 (124 bytes) () 11/11/2009 postreply 16:29:23

回複:回複:嗬嗬,試一下就知道這個方法簡單、好使而且可靠 -出入自在- 給 出入自在 發送悄悄話 出入自在 的博客首頁 (454 bytes) () 11/14/2009 postreply 13:20:29

回複:回複:回複:嗬嗬,試一下就知道這個方法簡單、好使而且可靠 -qljq- 給 qljq 發送悄悄話 (105 bytes) () 11/19/2009 postreply 12:49:40

增加可靠性請看我另一個帖子 -出入自在- 給 出入自在 發送悄悄話 出入自在 的博客首頁 (458 bytes) () 11/19/2009 postreply 20:20:24

測試成功 -smhsmh- 給 smhsmh 發送悄悄話 (576 bytes) () 11/13/2009 postreply 09:17:11

恭喜!隻要UserID,IP address,port#對上了,就能fwd進來 -出入自在- 給 出入自在 發送悄悄話 出入自在 的博客首頁 (54 bytes) () 11/13/2009 postreply 12:41:23

進出互不幹擾這是很有實際意義的 -出入自在- 給 出入自在 發送悄悄話 出入自在 的博客首頁 (446 bytes) () 11/13/2009 postreply 12:57:23

硬件可靠性,需要額外的SPA3000來保障 -smhsmh- 給 smhsmh 發送悄悄話 (625 bytes) () 11/13/2009 postreply 21:28:56

新體會:多GV多VSP打入同一個ATA的同一條線 -smhsmh- 給 smhsmh 發送悄悄話 (239 bytes) () 11/14/2009 postreply 21:01:54

注意sip address 的port number -出入自在- 給 出入自在 發送悄悄話 出入自在 的博客首頁 (375 bytes) () 12/24/2009 postreply 13:17:58

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”