Board logo

標題: Integration of asterisk server with different devices (整合 VOIP 裝置) [打印本頁]

作者: ckleea    時間: 2011-6-9 22:34     標題: Integration of asterisk server with different devices (整合 VOIP 裝置)

本帖最後由 ckleea 於 2011-6-10 06:14 編輯

So far I have been using asterisk 1.8 on a centos 5.6 32 bits server. I have a SPA3000 and OBi110 in the same LAN, No analog card, USG 3G modem

An IP01 is hosted in overseas + a SPA3000.

With the exception of the remote SPA3000, all are linked together and can provide the following functions.
1. SMS dial in and out
2. Fax in and out
3. remote dial via IP01 FXO
4. remote dial via OBi110 and SPA3000 through one stage dialing
5. fail over trunks for PSTN/local call
6. GV dial in and out via OBi110 and asterisk 1.8

How about yours?

It is a time for integration.
作者: 雯雯    時間: 2011-6-9 22:54

回復 1# ckleea

標題串錯字.
作者: 角色    時間: 2011-6-9 23:53

回復  ckleea

標題串錯字.
雯雯 發表於 2011-6-9 22:54


雯雯小师妹,你不知道ckleea的手漫过脑吗?

角色
作者: ckleea    時間: 2011-6-10 06:26

回復 3# 角色

你說得對。

現在開始更加深入的整合和功能上的改善。

另一課題是VOIP security,我先前提出過,可能大家亦遇上過。
作者: ckleea    時間: 2011-6-11 22:23

Now the following - asterisk , SPA3000, OBi110, IP01, SPA3000 integrated together.
作者: ckleea    時間: 2011-6-12 08:37

Now the following - asterisk , SPA3000, OBi110, IP01, SPA3000 integrated together.
ckleea 發表於 2011-6-11 22:23


用HTTP digest 運作良好。
作者: 角色    時間: 2011-6-12 08:56

最好有一个图,说明一下你的设备放哪里,怎样拨打就更加精彩。

角色
作者: ckleea    時間: 2011-6-12 10:02

回復 7# 角色


    Working right now, will post out some more details later. Now need to do security as well.
作者: Qnewbie    時間: 2011-6-12 15:30

本帖最後由 Qnewbie 於 2011-6-12 15:32 編輯

Emmm, who has integrated IP01 with web callback(both legs are outbound calls)?
作者: ckleea    時間: 2011-6-12 16:40

Router  A -------------Internet---------------------  Router B
Asterisk Server

    OBi110                                                               IP01

    SPA3000 (A)                                                       SPA3000 (B)

1. Within Router A, Intranet LAN connecting asterisk server, OBi110 and SPA3000 (A)
- OBi110 registers asterisk server at SP2
- SPA3000 (A) registers both Line 1 and PSTN to asterisk server
Both OBi110 and SPA3000 (A) connect to PSTN lines 1 & 2.

Dial out from asterisk server via http digest to SPA3000 (A), and OBi110

Asterisk server also connects to IP01 via IAX and SIP trunk

2. Within Router B, Intranet LAN connecting IP01 and SPA3000 (B)
SPA3000 (B) registers both Line 1 and PSTN to IP01
Both IP01 and SPA3000 (B) connect to PSTN lines 3 & 4.

3. Phone (Hard and Soft) at either router A or B sides can dial PSTN 1, 2, 3, & 4
作者: ckleea    時間: 2011-6-12 16:40

Dial plan at asterisk server and IP01 configure to dial in and out on either side with failover
作者: ckleea    時間: 2011-6-12 20:32

本帖最後由 ckleea 於 2011-6-12 20:37 編輯

回復 7# 角色

VOIP System.png

透過上面的connections,基本上可以互通。同時亦利用 superdial macro ,做failover同redundancy

下面的各種唔同 hard/soft clients 都可以正常使用。

所以如果大家可以合作,在唔同落腳點做D功夫,相信我地個VOIP 會做得更好,更便宜。

圖片附件: VOIP System.png (2011-6-12 20:31, 155.03 KB) / 下載次數 698
http://telecom-cafe.com/forum/attachment.php?aid=780&k=0af517cda05cde19eb4adbd3a7698e74&t=1732579016&sid=3z3lLf


作者: 角色    時間: 2011-6-12 20:35

谢谢ckleea,如果没有这个图,真的不知道你的电话系统有那么大。

角色
作者: ckleea    時間: 2011-6-12 20:43

回復 13# 角色

向你地學習,挑起咗興趣。不過大部份都是再用。好似SPA3000 全部都係Yahoo bid 回來,價錢唔貴,但用咗兩年都健在。

Router 個個電腦用家都有。Desktop phone 唔貴過HK$100,手指是舊的,最貴可能是
IP01 (角色兄代購)
Siemens A580 IP Phone (好彩唔使運費,帶回來)
我隻Netgear router
作者: ckleea    時間: 2011-6-12 20:44

回復 9# Qnewbie

有D唔明, what is web callback?
作者: ckleea    時間: 2011-6-12 21:31

An more update circuit diagram

VOIP System.png

圖片附件: VOIP System.png (2011-6-12 21:31, 180.33 KB) / 下載次數 675
http://telecom-cafe.com/forum/attachment.php?aid=781&k=b94bffbe5baab581b812df7e75078b73&t=1732579016&sid=3z3lLf


作者: 雯雯    時間: 2011-6-12 21:35

回復 13# 角色

我想如果把我的畫出來也不簡單!
作者: ckleea    時間: 2011-6-12 21:41

回復 17# 雯雯


    請 post up
作者: 雯雯    時間: 2011-6-12 21:49

回復 18# ckleea

哈哈! 要慢慢畫!
作者: ckleea    時間: 2011-6-12 22:05

努力!俾心機!
作者: 角色    時間: 2011-6-12 23:26

回復 16# ckleea

你的Asterisk 1.8不是直接安装GV吗?为什么还要用OBi device去安装GV呢?

角色
作者: 雯雯    時間: 2011-6-13 20:41

回復 20# ckleea

我的:

VoIP.JPG

圖片附件: VoIP.JPG (2011-6-13 20:41, 359.41 KB) / 下載次數 714
http://telecom-cafe.com/forum/attachment.php?aid=782&k=d67fd68647c156d55113a09440e3b3f8&t=1732579016&sid=3z3lLf


作者: ckleea    時間: 2011-6-13 20:57

回復 22# 雯雯

Interested to know your trunk setup as well.

How much you pay for Callcentric?  Monthly or pay as go?
作者: bubblestar    時間: 2011-6-13 21:13

勁呀! 兩位的電話網絡,像是蜘蛛網一樣,四通八達。
作者: ckleea    時間: 2011-6-13 21:25

回復 24# bubblestar

你的devices都應該唔少!
作者: 雯雯    時間: 2011-6-13 21:37

回復 23# ckleea

I use callcentric for free.
作者: 雯雯    時間: 2011-6-13 22:09

回復 24# bubblestar

我如果畫埋我其他網絡設備出來, 更加......
作者: ckleea    時間: 2011-6-13 22:14

回復 27# 雯雯

需唔需要協助? 用 ....?
作者: 雯雯    時間: 2011-6-13 22:17

回復 28# ckleea

好呀! Thx!
作者: Qnewbie    時間: 2011-6-14 01:32

Callback is triggered by data sent from web page.
Detailed example:
http://nerdvittles.com/index.php?p=143
作者: ckleea    時間: 2011-6-14 05:58

回復 30# Qnewbie

I have not tried but looking at the website, I believe it is workable in the linux + asterisk server.
作者: Qnewbie    時間: 2011-6-14 15:43

回復  Qnewbie

I have not tried but looking at the website, I believe it is workable in the linux + ...
ckleea 發表於 2011-6-14 05:58



    To be (IP01) or not to be (IP01), that is the question.

For IP01, it might be a bit difficult to integrate website etc. I try with sipsorcery+IP01. Free sipsorcery account allows only one provider(trunk), i.e., my IP01. The problem comes as IP01 doesn't allow two channels with the same extensions : Has anyone figured out how to reach two legs with the same extension?

Integration of web callback with asterisk seems easy with PC.
作者: ckleea    時間: 2011-6-14 15:48

To be (IP01) or not to be (IP01), that is the question.

For IP01, it might be a bit difficu ...
Qnewbie 發表於 2011-6-14 15:43


I have not yet explored on sipsorcery.. Could you elaborate a bit more on your dialplan and so that we can look into?
作者: Qnewbie    時間: 2011-6-14 16:09

The dialplan at the IP01 is nothing but usual one including the following outbound rule:
  1. exten=_0086xxx.,1,Macro(trunkdial-failover-0.3,${SIP1}/${EXTEN:0},${SIP2}/${EXTEN:0},SIP1,SIP2,${CALLERID(num)},${CALLERID(num)})
複製代碼
which includes fail-over(actually both trunks should be used in case of callback).

As for the sipsorcery side, it is:
  1. num = req.URI.user.to_s
  2. if num.index("\*")!=nil then
  3.    pos=num.index(/\*/)
  4.    caller=num[0,pos]
  5.    callto=num[pos+1,80]
  6.    sys.Callback("#{caller}@myIP01","#{callee}@myIP01")
  7. end
複製代碼
which parses the caller&callee number with the help of the field separator *.

At web page, just send the following message to sipsorcery:
  1. https://www.sipsorcery.com/callmanager.svc/webcallback?user=username&number=$number
複製代碼
where $number=$callernumber*$calleenumber.

Reference: http://www.sipsorcery.com/help/webcallback.html
作者: ckleea    時間: 2011-6-14 16:15

回復 34# Qnewbie

Interesting. Need to read more to understand. You have very good skill here
作者: ckleea    時間: 2011-6-15 11:39

回復 34# Qnewbie

有冇看過這教學

http://www.voipuser.org/forum_topic_9971.html
作者: 雯雯    時間: 2011-6-15 13:01

其實大家都有這麼多網絡設備, 擺放和散熱也是個問題!
作者: ckleea    時間: 2011-6-15 14:04

another option

http://www.osslab.com.tw/VoIP/IP ... %92%A5-Web_CallBack
作者: ckleea    時間: 2011-6-15 14:23

回復 37# 雯雯

我的放在廳柜內,暫時沒有問題。

雯雯的提出,非常重要,所以現在要做整合工作,將資源重新設定,簡化流程。相對來說,省電省錢,亦叫做環保D。
作者: 雯雯    時間: 2011-6-15 14:34

回復 39# ckleea

能簡化的我都盡量簡化! 最近想起部勁的server, 正頭痛散熱問題! 整天開冷氣阿媽會罵.
作者: bubblestar    時間: 2011-6-15 15:18

相信雯雯想起勁的Server 一定不會是 Asterisk Server 吧! 現在的Asterisk Server 已是很省電也不會太熱的了,只要通風良好就是了。
作者: 雯雯    時間: 2011-6-15 15:23

回復 41# bubblestar

想起部雙CPU和行RAID的Server, 然後run虛擬機, 這樣又可以做router, 又可以做Asterisk Server!
作者: ckleea    時間: 2011-6-15 15:32

回復 42# 雯雯

我個人意見就唔建議用PC 做router
1. 你要買張server grade 多 lan ports card,貴
2. 專用 router 其實已經夠用有餘

行VM,其實要求都唔低
1. RAM 要多,CPU 要夠級數
2. 我地唔係enterprise system
仲有licences

RAID system 就即是多Harddisk ,慳電更加係唔易

你會唔會考慮租server,這個比較實際,起碼有fixed IP, 24 小時冷氣
作者: 雯雯    時間: 2011-6-15 15:38

回復 43# ckleea

唔考慮租server, 一來fixed ip我已經有, 二來我怕流量會爆錶. 我想起server的原因除了是一機多用外, 還有我準備遲D裝多1條PCCW 1G, 總是覺得現在用的router不太夠力!
作者: ckleea    時間: 2011-6-15 17:13

回復 44# 雯雯


    超級米王。你需要幾多bandwidth?Business line and data center should do the job for you especially if you need VPN
作者: tsm    時間: 2011-6-16 12:53

本帖最後由 tsm 於 2011-6-16 12:54 編輯
回復  雯雯

我個人意見就唔建議用PC 做router
1. 你要買張server grade 多 lan ports card,貴
2. 專用 r ...
ckleea 發表於 2011-6-15 15:32


Ching
I consider the opposite (not to offend your professional knowledge in the field)
but i seldom found router(non commerical/enterprise grade) got what I need
such as blocking QQ, MSN and provide detail log files on what is going on, is it true

and I found nowadays i3 or i5 can consume less than 30W and pc router is very flexible
and I just buy 2 port intel server lan card FROM taobao ~RMB100 only


why use linksys (SPA3000, I cosider not stable, too hot will hang it with no reason) or OBi100
and not an analog card built into the PC for the pstn gateway

by the way I use TDM410p  (4 port) and now change to TDM800p (also from Taobao)
and find it very reliable for almost 1 year
The TDM finishing is excellent and the component looks fine too.

although the main board (VIA C7 nc2500 ==== rubbish ) gone, capacitor broken down
and the asterisk server (centos of elastix) down in a sudden.

just for sharing only

may be I share my map later
作者: ckleea    時間: 2011-6-16 14:50

回復 46# tsm


It depends on what you intend to do so. Most routers have almost a lot of functions that one can utilize in daily computer operations. Similarly, unless you are doing server hosting, serious gaming, BT, video streaming,  you do not need that high wan to LAN throughput but more concern at the qos, reliability and security.

I am interested to look at your system setup




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