Board logo

標題: SPA3000/3102 integration with asterisk [打印本頁]

作者: ckleea    時間: 2011-6-6 20:53     標題: SPA3000/3102 integration with asterisk

I am playing around with SPA3000 right to get several things integrated.
1. to allow http authentication so that asterisk can make use of the SPA3000 FXO port to dial out
2. to allow asterisk to dial out via two stage dialing (previously it works very well but doesn't know why it cannot do so now)
3. PSTN dials in directly into asterisk (extensions, AA, or IVR)

Do you have other suggestions?
作者: 浮雲1965    時間: 2011-6-7 10:08

我都有如ckleea兄的問題。同求!
不過我是用Elastix 2.0.3版
作者: bubblestar    時間: 2011-6-7 16:20

HTTP Digest Settings in Asterisk and SPA3102

Asterisk Side

sip.conf
[spa3khttpd]
context = default
type = peer
auth = httpd_name:httpd_secret@SPA3102_IP_Add_or_DDNS:5061        ; md5 authentication with SPA3102 http digest
nat = yes
dtmfmode = rfc2833
host = 192.168.1.123                                                ; use DDNS or true IP when outside LAN
defaultuser = httpd_name
fromuser = httpd_name
fromdomain = 192.168.1.123                                        ; use DDNS or true IP when outside LAN
secret = httpd_secret
insecure = port,invite
qualify = yes
canreinvite = no
port = 5061
disallow = all
allow = ulaw,alaw,gsm,g729


extensions.conf
[viaSPA3khttpd]
exten => _135.,1,Dial(SIP/${EXTEN:3}@spa3khttpd,60,tr)                ; using remote SPA3102 PSTN GW in HTTP Digest
exten => _135.,n,Playback(the-party-you-are-calling&is-curntly-unavail)
exten => _135.,n,Congestion


SPA3102 Side

SPA3102 PSTN Settings

SPA3102_HTTPD.png

圖片附件: SPA3102_HTTPD.png (2011-6-7 16:19, 36.21 KB) / 下載次數 934
http://telecom-cafe.com/forum/attachment.php?aid=770&k=e529cd704478aa6cebc4ca973f29623b&t=1732647877&sid=HXET4F


作者: bubblestar    時間: 2011-6-7 16:57

本帖最後由 bubblestar 於 2011-6-7 17:29 編輯

Two Stage Dialing via remote SPA3102 from Asterisk

Asterisk Side

[globals]
SPA3KPSTN_GW = 192.168.11.123:5061                                ; for SPA3102 PSTN GW.  Use DDNS or true IP when outside LAN

extensions.conf
[viaSPA3KPSTN_GW]
exten => s,1,Dial(SIP/${EXTEN}@${SPA3KPSTN_GW})                        ; using remote SPA3102 PSTN GW


SPA3102 Side

Create an extension, say 6008 to be registered in SPA3102 PSTN Line

2_stage_dialing.png


Action:  Dial extension 6008# and you will hear the 2nd stage dial tone from SPA3102, then dial the called party via PSTN as you wish.  Thats it.

圖片附件: 2_stage_dialing.png (2011-6-7 16:54, 35.09 KB) / 下載次數 1071
http://telecom-cafe.com/forum/attachment.php?aid=771&k=71f2b4f2567edf421b312d98759742fc&t=1732647877&sid=HXET4F


作者: bubblestar    時間: 2011-6-7 17:07

PSTN dials in directly into asterisk (extensions, AA, or IVR)

It is a very simple and 2 steps configuration in SPA3102 PSTN Line

PSTN_dial_in.png



PSTN Caller Default DP:8 (which corresponding to the extension 6001 in Dial Plan 8 above)

PSTN_dial_in_2.png

圖片附件: PSTN_dial_in.png (2011-6-7 17:04, 12.33 KB) / 下載次數 1104
http://telecom-cafe.com/forum/attachment.php?aid=772&k=f53aeb5a766e52091c8c9726ae3a2624&t=1732647877&sid=HXET4F



圖片附件: PSTN_dial_in_2.png (2011-6-7 17:04, 5.84 KB) / 下載次數 991
http://telecom-cafe.com/forum/attachment.php?aid=773&k=2778d4a8bb7603cf082f0e2c12d14afc&t=1732647877&sid=HXET4F



圖片附件: PSTN_dial_in_2.png (2011-6-7 17:06, 9.13 KB) / 下載次數 1050
http://telecom-cafe.com/forum/attachment.php?aid=774&k=e50441b8d7b44e64a8ec8640445602c7&t=1732647877&sid=HXET4F


作者: ckleea    時間: 2011-6-7 17:37

回復 3# bubblestar


I use similar setting but not using md5. Do you encrypt the whole into md5?
作者: ckleea    時間: 2011-6-7 18:01

回復 5# bubblestar

Can you make both phone and asterisk extension ring at the same time? I understand it can ring after some adjustable delays
作者: ckleea    時間: 2011-6-7 18:03

Any one has tried to pass fax in through SPA3000/3102 into asterisk?
作者: bubblestar    時間: 2011-6-7 19:40

回復 6# ckleea


   
The md5 method was set up long time ago.  I just remember that when I did not use md5, the http digest was not function in my case.  Hence, I resolve this by adding md5 as well.
作者: bubblestar    時間: 2011-6-7 19:44

回復 7# ckleea


   
As far as I know, you can adjust the VoIP Answer Delay to: 5 or longer to make the phone rings when you dial.  After 5 seconds, you are given a 2nd dial tone for further dialing.

In my case, I just make the VoIP Answer Delay to Zero(0) without ringing.
作者: bubblestar    時間: 2011-6-7 19:50

Just test to confirm that http digest one stage dialing and 2nd stage gateway dialing are mutually exclusive.  You can only use either one method instead of both.
作者: ckleea    時間: 2011-6-7 22:06

回復 11# bubblestar


    Same experience as I have right now.
作者: ckleea    時間: 2011-6-7 22:08

回復 9# bubblestar


    When doing md5, one needs to encrypt in command line and copies the string
作者: ckleea    時間: 2011-6-8 09:20

回復 11# bubblestar
不過OBi110 可以one stage and two stages dialing at the same time
作者: bubblestar    時間: 2011-6-8 10:09

回復 14# ckleea


   
Oh! really!  Thats good.  Could you share the settings in OBi110?
作者: ckleea    時間: 2011-6-12 19:57

For several users to use the same SPA3000/3102, it is important to have separate account for each user.
作者: ckleea    時間: 2011-6-13 20:50

Another important tricks for several users to share a SPA3000 through http digest

screenshot.13-06-2011 20.34.40.png

Click yes on the box highlighted

圖片附件: screenshot.13-06-2011 20.34.40.png (2011-6-13 20:50, 11 KB) / 下載次數 837
http://telecom-cafe.com/forum/attachment.php?aid=783&k=d675ae0a0bc8e27ce28eaf807038a5ce&t=1732647877&sid=HXET4F






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