新发现:一条线上用不同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用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”