MavEtJu's Distorted View of the World - PRI

Asterisk - seize a trunk
Asterisk - PRI settings for Australia

Back to index

Asterisk - seize a trunk

Posted on 2004-11-28 22:37:36, modified on 2006-01-09 16:29:22
Tags: Voice over IP, Asterisk, PRI

Problem: Before switching to asterisk, it was possible for people to seize the trunk and dial out any number, and thus bypassing the numbering plan. The error you currently get is:

-- Extension '' in context 'SJH05-A4400' from '282122348' does not exist. Rejecting call on channel 3/21, span 3

Solution: In zapata.conf, add overlapdial=yes to the group definition. This will cause an additional delay of three seconds before the number is forwarded:

-- Starting simple switch on 'Zap/206-1'
-- Accepting overlap call from '293312303' to '<unspecified>' on channel 7/20, span 7
-- Executing Dial("Zap/206-1", "Zap/g8/95212347||") in new stack

No comments | Share on Facebook | Share on Twitter

Asterisk - PRI settings for Australia

Posted on 2004-11-10 23:28:07, modified on 2006-01-09 16:29:22
Tags: Voice over IP, Asterisk, PRI

To connect an TE410P / TE405P card to the australian PSTN, use the following settings:

In /etc/zaptel.conf:

span=1,1,0,ccs,hdb3,crc4
bchan=1-15,17-21
dchan=16
unused=22-31

The 1 in span means that you use the clock from their network.

Please note that this is for an OnRamp20, which has 20 B-channels. With an OnRamp10 you need only channels 1-10 and modify unused too.

In /etc/asterisk/zapata.conf, use:

[trunkgroups]
trunkgroup => 1,16
spanmap => 1,1,1

[channels]
group = 1
context=PRI-Telstra
switchtype=national
pridialplan=unknown
prilocaldialplan=unknown
signalling = pri_cpe
channel => 1-15,17-21

No comments | Share on Facebook | Share on Twitter