電訊茶室's Archiver

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

[b]HTTP Digest Settings in Asterisk and SPA3102[/b]

[b][color=SeaGreen]Asterisk Side[/color][/b]

[b]sip.conf[/b]
[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


[b]extensions.conf[/b]
[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


[b][color=SeaGreen]SPA3102 Side[/color][/b]

SPA3102 PSTN Settings

[attach]770[/attach]

bubblestar 發表於 2011-6-7 16:57

[i=s] 本帖最後由 bubblestar 於 2011-6-7 17:29 編輯 [/i]

[b]Two Stage Dialing via remote SPA3102 from Asterisk[/b]

[b][color=SeaGreen]Asterisk Side[/color][/b]

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

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


[b][color=SeaGreen]SPA3102 Side[/color][/b]

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

[attach]771[/attach]


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.

bubblestar 發表於 2011-6-7 17:07

[b]PSTN dials in directly into asterisk (extensions, AA, or IVR)[/b]

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

[attach]772[/attach]



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

[attach]774[/attach]

ckleea 發表於 2011-6-7 17:37

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=16184&ptid=3774]3#[/url] [i]bubblestar[/i] [/b]


I use similar setting but not using md5. Do you encrypt the whole into md5?

ckleea 發表於 2011-6-7 18:01

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=16188&ptid=3774]5#[/url] [i]bubblestar[/i] [/b]

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

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=16189&ptid=3774]6#[/url] [i]ckleea[/i] [/b]


   
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

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=16190&ptid=3774]7#[/url] [i]ckleea[/i] [/b]


   
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

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=16198&ptid=3774]11#[/url] [i]bubblestar[/i] [/b]


    Same experience as I have right now.

ckleea 發表於 2011-6-7 22:08

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=16196&ptid=3774]9#[/url] [i]bubblestar[/i] [/b]


    When doing md5, one needs to encrypt in command line and copies the string

ckleea 發表於 2011-6-8 09:20

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=16198&ptid=3774]11#[/url] [i]bubblestar[/i] [/b]
不過OBi110 可以one stage and two stages dialing at the same time

bubblestar 發表於 2011-6-8 10:09

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=16203&ptid=3774]14#[/url] [i]ckleea[/i] [/b]


   
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

[attach]783[/attach]

Click yes on the box highlighted

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.