Board logo

標題: Asterisk-GUI network and SIP/IAX configuration [打印本頁]

作者: 角色    時間: 2013-2-13 00:57     標題: Asterisk-GUI network and SIP/IAX configuration

本帖最後由 角色 於 2013-2-13 11:16 編輯

如果Asterisk-GUI设置不好,你的accounts就不能从外来接入来!所以一定要Asterisk-GUI设置好。

一、假如你的Asterisk-GUI的资料
1)IP为192.168.88.1,
2)SIP UDP Port =5060
3)RTP UDP Port Range = 10000-20000
4)  IAX UDP Port =4569

先说你给别人的account是包括什么?

1. Asterisk Server hostname = sip.your_domain.com (any hostname that you specified)
2. Username (= extension number)
3. Password (= secret string)

然后说Router的settings。

1、Set UDP port 5060 (for SIP signalling) forwarding to Asterisk-GUI IP, i.e. 192.168.88.1
2、Set UDP port range (for SIP voice) 10000-20000 forwarding to Asterisk-GUI IP
3、Set UDP port 4569 (for IAX signalling and voice) forwarding to Asterisk-GUI IP


注意:
一、在某些地方,对5060可以能做成封杀,有些改其他port,例如10002(大陆的中国行),如果不行,就要用VPN。
二、RTP Port Range,不一定要10000-20000,其他一个voice channel只用两个ports,通话一般是2个channels,那么用4个ports,就足够了。如果你估计你的Asterisk同事通话量不超过10对,那么用40个port就做够,那么你的RTP UDP port range可以改为,10010-10050。如果你更改了default settings,在Asterisk 文件 rtp.conf都要同事更改,不然的话就没有声音了。
作者: 角色    時間: 2013-2-13 01:27

本帖最後由 角色 於 2013-2-13 01:45 編輯

然后再Asterisk-GUI进行一些settings

一、在下图的近最底部,点击【Options】
1006a.gif

二、在下面,点击红圈【Advnaced Options】
1006b.gif

三、再点击红圈【Show Advanced Options】
1006c.gif

四、比较第一幅图片,所以很多的Options,例如【SIP Settings】
1006d.gif

圖片附件: 1006a.gif (2013-2-13 01:22, 16.1 KB) / 下載次數 789
http://telecom-cafe.com/forum/attachment.php?aid=2214&k=c7451f632ae9e2467221bb6045f3af9c&t=1749222985&sid=6kerBK



圖片附件: 1006b.gif (2013-2-13 01:22, 15.13 KB) / 下載次數 797
http://telecom-cafe.com/forum/attachment.php?aid=2215&k=127785676365cf76b522efbcf5697a92&t=1749222985&sid=6kerBK



圖片附件: 1006c.gif (2013-2-13 01:22, 10.76 KB) / 下載次數 850
http://telecom-cafe.com/forum/attachment.php?aid=2216&k=05f2f23c376aa71692838e5bc6d40b02&t=1749222985&sid=6kerBK



圖片附件: 1006d.gif (2013-2-13 01:22, 9.3 KB) / 下載次數 787
http://telecom-cafe.com/forum/attachment.php?aid=2217&k=1de10a76373fcb845a6bc1be4891d150&t=1749222985&sid=6kerBK


作者: 角色    時間: 2013-2-13 01:28

本帖最後由 角色 於 2013-2-13 01:54 編輯

在第2楼,最后的图里,点击【SIP Settings】就得到下图。
UDP Port to bind to: 5060 (而我用的是:5070)

1005a.gif

1005b.gif

1005c.gif

在下图:
Extern Host: sip.your_domain.com
Local Network Address: 192.168.88.0/255.255.255.0

1005d.gif

1005e.gif

1005f.gif

在下图,如果你的Asterisk,没有iLBC,Speex,G729,那么选前面三项就可以。
1005g.gif

圖片附件: 1005a.gif (2013-2-13 01:28, 10.43 KB) / 下載次數 769
http://telecom-cafe.com/forum/attachment.php?aid=2218&k=d0314236b0bfaf1d503b720f172e2f64&t=1749222985&sid=6kerBK



圖片附件: 1005b.gif (2013-2-13 01:28, 14.88 KB) / 下載次數 788
http://telecom-cafe.com/forum/attachment.php?aid=2219&k=adfda7059dae1294c576585c9a4a9b85&t=1749222985&sid=6kerBK



圖片附件: 1005c.gif (2013-2-13 01:28, 7.73 KB) / 下載次數 819
http://telecom-cafe.com/forum/attachment.php?aid=2220&k=f5a67ac97f5828a084cf947144cba241&t=1749222985&sid=6kerBK



圖片附件: 1005d.gif (2013-2-13 01:28, 6.66 KB) / 下載次數 801
http://telecom-cafe.com/forum/attachment.php?aid=2221&k=d05da12214a4eadd6b8b808edfecc919&t=1749222985&sid=6kerBK



圖片附件: 1005e.gif (2013-2-13 01:28, 8.92 KB) / 下載次數 786
http://telecom-cafe.com/forum/attachment.php?aid=2222&k=50f15e8250ca3d2b8e981af83460f11c&t=1749222985&sid=6kerBK



圖片附件: 1005f.gif (2013-2-13 01:28, 6.69 KB) / 下載次數 806
http://telecom-cafe.com/forum/attachment.php?aid=2223&k=5c89ed4cd65bf2f3bd00645d08a1fd7b&t=1749222985&sid=6kerBK



圖片附件: 1005g.gif (2013-2-13 01:28, 5.86 KB) / 下載次數 778
http://telecom-cafe.com/forum/attachment.php?aid=2224&k=c48a69339c2715d32bac1967a0f63fca&t=1749222985&sid=6kerBK


作者: alang    時間: 2013-2-13 10:16

如果Asterisk-GUI设置不好,你的accounts就不能从外来接入来!所以一定要Asterisk-GUI设置好。

一、假如你 ...
角色 發表於 2013-2-13 00:57


第二點與我理解的不大相同,RTP 會用到 2 ports/channel,參考連結在此 http://goo.gl/rw3nh
作者: 角色    時間: 2013-2-13 10:36

本帖最後由 角色 於 2013-2-13 11:05 編輯

回復 4# alang

你说的没有错!应该我记错了,应该是【1】

1 active channel 需要 2 RTP UDP ports。

那么一般两腿Call,就需要2个active channels,RTP UDP Ports就需要4个来完成。

【1】 http://www.voip-info.org/wiki/view/Asterisk+config+rtp.conf
作者: 角色    時間: 2013-2-13 11:02

一般一个Call,有两条Channels,那么Asterisk就需要RTP UDP Port number = 4
但是某系Call,(例如内部的echo test),那么直用一条channel,那么Asterisk只需要RTP UDP Port number为2。
作者: 角色    時間: 2013-2-13 11:10

Call (SIP)的总类,根据我的认知主要分为

单腿Call和双腿Call,

单腿Call(1 single channel)——例如进入系统的echo test,IVR等,那个时候只需要两个RTP UDP Ports来完成。

双腿Call(2 single channels)——例如你拨打某个extension,而这个extension都是在Asterisk以外的SIP Client,那么Asterisk系统就需要4个RTP UDP Port来完成。
作者: SuiYan    時間: 2013-3-25 22:48

參考了這個. 跟住做了, 部ATA也未能接入
要再研究研究.
作者: SuiYan    時間: 2013-3-25 22:56

真奇怪, 話係未完, 又無啦啦接通, 駁上了ATA




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2