SPA232D 的英国配置

SPA232D 的英国配置

我最近买了一个 SPA232D,用于将一些 VoIP 集成到使用 Asterisk 的系统中。显然,它需要针对英国电信公司(不同于美国、澳大利亚、其他欧洲等)进行配置。SPA3102 有一些提示,但这个的菜单设置和一些选项有所不同。

但是,来电(PSTN 到 SPA 到 Asterisk 到手机)不会从 SPA232 路由到 Asterisk。从手机到 Asterisk 到 SPA232 到 PSTN 的拨出电话工作正常。使用信息这里在其他地方,我已经设定:

本地化设置:

Network Setup > Time Settings
    Time Zone: GMT (England)
Voice > Regional > Call Progress Tones
    Dial tone: 350@-19,440@-22;10(*/0/1+2) 
    Ring back: 400@-20,450@-20;*(.4/.2/1+2,.4/2/1+2) 
    Busy tone: 400@-20;10(.375/.375/1) 
    Reorder tone: 400@-20;10(*/0/1) 
    SIT 1 tone: 950@-16,1400@-16,1800@-16;20(.330/0/1,.330/0/2,.330/0/3,0/1/0) 
    MWI dial tone: 350@-19,440@-22;10(.75/.75/1+2) 
Voice > Regional > Distinctive Call Waiting Tone Patterns
    CWT1 cadence: 30(.1/2) 
    CWT2 cadence: 30(.25/.25,.25/.25,.25/5) 
    CWT frequency: 400@-10
Voice > Regional > Distinctive Ring Patterns
    Ring 1 cadence: 60(.4/.2,.4/2) 
    Ring 2 cadence: 60(1/2) 
    Ring 3 cadence: 60(.25/.25,.25/.25,.25/1.75) 
    Ring 4 cadence: 60(.4/.8) 
    Ring 5 cadence: 60(2/4)
Voice > Regional > Miscellaneous
    FXS Port Impedance: 370+620||310nF (or 270+750||150nF ) 
    Caller ID Method: ETSI FSK With PR(UK)
Voice > PSTN > PSTN Disconnect Detection
    Detect CPC: yes 
    Detect Polarity Reversal: no 
    Detect PSTN Long Silence: no 
    PSTN Long Silence Duration: 30 
    PSTN Silence Threshold - High 
    Min CPC Duration: 0.09 
    Detect Disconnect Tone: yes 
    Disconnect Tone - 400@-30,400@-30; 2(3/0/1+2)
Voice > PSTN > International Settings
    Ring Validation Time: 256ms 
    Ring Indication Delay: 512ms 
    Ring Timeout: 640ms

我还设置了:

Voice > PSTN > International Settings
    FXO Country settings: UK

我无法设置,因为它不在菜单中(我被设置为桥梁):

SPA3102 > Advanced > Voice > Regional
    Daylight Saving Rule: start=3/-1/7/1:0:0;end=10/-1/7/2:0:0;save=1:0:0
SPA3102 > Advanced > International Control
    FXO Port Impedance: 270+750||150nF 
    OnHook Speed: 3ms (ETSI) 
    Current Limiting Enable: yes 

SIP 设置:

Voice > PSTN > Proxy and Registration
   192.168.1.XXX
Voice > PSTN > Subscriber Information
    Display Name: PSTN
    User ID: <username set on asterisk>
    Password: <password set on asterisk>
Voice > PSTN > Dial PLans
    Dial Plan 2: S0(<:@gw0>)
Voice > PSTN > PSTN-To-VoIP Gateway Setup
    PSTN-To-VoIP Gateway Enable: Yes
    PSTN Ring Thru: Yes <Tried both Yes and No, neither worked>
    PSTN CID For VoIP CID: Yes
    PSTN Caller Default DP: 2
    Off Hook While Calling VoIP: No <Tried both Yes and No, neither worked>

为了节省询问时间:我检查了星号日志,发现 SPA 到星号服务器没有连接,所以这不是身份验证失败的问题。

答案1

我要补充一点,如果你使用的是 Asterisk 13 或更高版本,其中chan_PJSIP是默认驱动程序(监听端口 5060),chan_SIP是辅助驱动程序(监听端口 5061),那么你的PSTN proxyPSTN Dial plan必须在地址中包含:5061,以确保呼叫由 chan_SIP 驱动程序处理,否则你只会看到很多错误 NOTICE[9428] res_pjsip/pjsip_distributor.c: Request from '"PSTN" <sip:[email protected]>' failed for '192.168.1.24:5061' (callid: [email protected]) - No matching endpoint found

为此,您的配置应如下所示:

Voice > PSTN > Proxy and Registration
   192.168.1.XXX:5061
Voice > PSTN > Dial PLans
   Dial Plan 2: S0(<:N@gw0:5061>)

任意位置N均可,并将作为 DID 传递给 asterisk

答案2

经过一番搜索,结果显示英国本地化还需要另一个设置(正如我所怀疑的那样)。如果您没有将 CID 标准(而不是方法,我已经正确设置了)设置为正确的标准,那么 SPA232 将不会路由呼叫。假设错误的 CID 方法意味着它没有意识到有呼叫。设置如下:

Voice > Regional > Miscellaneous
    Caller ID FSK Standard: v.23

对于那些想要一份英国所有设置的完整列表的人来说,我认为这是一套完整的设置。我已经使用了这里这里这里这里。但是,如果您知道更多好的参考或必要的设置,请将它们添加到评论中,我会将它们添加到此列表中。

您最先要设置的很可能是网络端。夏令时规则有点难以捉摸,我认为它可能在最新固件中消失了。因此,在执行任何可能隐藏它的操作之前,如果可以,请设置:

Network Setup > Time Settings
    Daylight Saving Rule: start=3/-1/7/1:0:0;end=10/-1/7/2:0:0;save=1:0:0

然后完成您的网络设置。英国的其余设置:

Network Setup > Time Settings
    Time Zone: GMT (England)
    Adjust Clock for Daylight Saving Changes: Yes
    Timer Server: Auto
Voice > Regional > Call Progress Tones
    Dial tone: 350@-19,440@-22;10(*/0/1+2) 
    Ring back: 400@-20,450@-20;*(.4/.2/1+2,.4/2/1+2) 
    Busy tone: 400@-20;10(.375/.375/1) 
    Reorder tone: 400@-20;10(*/0/1)
    Off Hook Warning Tone: 480@-10,620@-16,1400@0,2060@0,2450@0,2600@0;60(.2/0/1,.2/0/2);240(.1/.1/3+4+5+6)
    SIT 1 tone: 950@-16,1400@-16,1800@-16;20(.330/0/1,.330/0/2,.330/0/3,0/1/0) 
    MWI dial tone: 350@-19,440@-22;10(.75/.75/1+2) 
Voice > Regional > Distinctive Ring Patterns
    Ring 1 cadence: 60(.4/.2,.4/2) 
    Ring 2 cadence: 60(1/2) 
    Ring 3 cadence: 60(.25/.25,.25/.25,.25/1.75) 
    Ring 4 cadence: 60(.4/.8) 
    Ring 5 cadence: 60(2/4)
Voice > Regional > Distinctive Call Waiting Tone Patterns
    CWT1 cadence: 30(.1/2) 
    CWT2 cadence: 30(.25/.25,.25/.25,.25/5)
Voice > Regional > Ring and Call Waiting Tone Spec
    Ring Frequency: 25
    Ring Voltage: 70
    CWT frequency: 400@-10
Voice > Regional > Control Timer Values (sec)
    Hook Flash Timer Min: .06
    Hook Flash Timer Max: .2
    Interdigit Long Timer: 6
    CPC Duration: .09
Voice > Regional > Miscellaneous
    FXS Port Impedance: 370+620||310nF (or 270+750||150nF )
    FXS Port Input Gain: 0
    FXS Port Output Gain: 0
    Caller ID Method: ETSI FSK With PR(UK)
    Caller ID FSK Standard: v.23
Voice > PSTN > PSTN Disconnect Detection
    Detect CPC: yes 
    Detect Polarity Reversal: no 
    Detect PSTN Long Silence: yes
    PSTN Long Silence Duration: 30 
    PSTN Silence Threshold - High 
    Min CPC Duration: 0.09 
    Detect Disconnect Tone: yes 
    Disconnect Tone: 400@-30,400@-30; 2(3/0/1+2)
Voice > PSTN > International Settings
    FXO Country settings: UK
    Ring Validation Time: 256ms 
    Ring Indication Delay: 512ms 
    Ring Timeout: 640ms

正如@James 在下面指出的那样,一定要小心设置端口!

相关内容