我最近收购了SPA232D,将一些VoIP集成到使用星号的系统中。 显然,它需要configuration英国(与美国,非洲,其他欧洲等不同)的电信公司。 SPA3102有一些提示,但这个有不同的菜单设置和一些不同的选项。
但是,来电(PSTN到SPA到手机的星号)不会从SPA232路由到星号。 从手机到星号到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到星号服务器,所以这不是一个失败的身份validation问题。
我将添加一件事情,那就是如果您使用的是Asterisk 13或更高版本,其中chan_PJSIP是默认驱动程序(侦听端口5060),而chan_SIP是辅助驱动程序(侦听端口5061),则您的PSTN proxy ,您的PSTN 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
为此,你的configuration应该如下所示:
Voice > PSTN > Proxy and Registration 192.168.1.XXX:5061 Voice > PSTN > Dial PLans Dial Plan 2: S0(<:N@gw0:5061>)
其中N可以是任何你喜欢的东西,并将作为DID传递给星号
经过多次狩猎后,它返回英国本地化的另一个设置(如我怀疑)。 如果您没有将CID标准(而不是正确设置的方法)设置为正确的,则SPA232将不会路由该呼叫。 大概有错误的CID方法意味着它不知道有一个电话。 设置在这里:
Voice > Regional > Miscellaneous Caller ID FSK Standard: v.23
对于那些想要所有英国设置的完整列表,我认为这是一套完整的。 我曾经在这里 , 在这里 , 在这里和这里 。 但是,如果你知道更多的好引用或必要的设置,请将它们添加到评论添加我将它们添加到此列表中。
可能性是你将要build立的第一件事是networking方面。 夏令时规则有点难以捉摸,我认为它可能已经在最新的固件中消失了。 因此,在做任何可能隐藏的事情之前,如果可以的话,设置:
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
然后完成您的networking设置。 英国的其他设置:
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指出的一样,一定要仔细设置端口!