Page 1 of 5

[HOWTO] Asterisk connection via PRI

Posted: 14 Jun 2006 08:19
by mike
This info is also posted here: http://www.voip-info.org/wiki/view/Alcatel+4400+via+PRI
so check both if looking for updates.

This page explains how to connect Asterisk to an Alcatel PCX 4400 via a 30 channel ISDN E1 trunk. It might not be the only way or the best way of doing it as I have been figuring this out as I go along but could be a useful guide. Please update or comment if you know a better way of doing a particular thing.

This guide assumes you have already setup an Asterisk server and have an Alcatel 4400 connected to the PSTN.

Current Progress

* Alcatel->Asterisk
* Asterisk->Alcatel
* Asterisk->Alcatel->PSTN
* PSTN->Alcatel->Asterisk

all working nicely. :D

With calls going to Asterisk via an open routing prefix ttended transfers from from Alcatel don't work and there's a problem with the attendant console dialing Asterisk. These problems went away by switching to ARS routing into Asterisk.

Hardware

You'll need the following:

* A PRA2 isdn card for the PCX 4400
* A T1/E1 card for Asterisk, I've used a Sangoma a102u, an equivalent Digium card would do too
* a cable to connect the two - I used a TY2 96PT at the Alcatel end which I patched into the back of a UTP socket and then used a normal UTP cable to connect to the Asterisk box. The connections are like so

Code: Select all

Alcatel                      Asterisk
1 blue txb (tip)           1
1 red txa (ring)          2
2 blue rxb (tip)           4
2 red rxa (ring)          5
Asterisk Configuration

zaptel.conf:
span=1,1,0,ccs,hdb3,crc4

bchan=1-15,17-31
dchan=16
zapata.conf
[trunkgroups]
trunkgroup => 1,16
spanmap => 1,1,1

[channels]
language=uk
context=default
switchtype=euroisdn
signalling=pri_cpe
group=1
callgroup=1
pickupgroup=1
immediate=no

echocancel=yes
channel => 1-15,17-31
extensions.conf
; this needs improving as it only allows fixed length of extension numbers at present
exten => _0-24-8XX,n,Dial(zap/g1/${EXTEN}) ; internal calls
exten => _9XXXXXXXXXXX,1,Dial(ZAP/g1/${EXTEN}) ; 9 for external calls
Alcatel Configuration

1. Install the PRA2 card

* Under Shelf/Board create a PRA2 object at the appropriate address
* Plug the board in


2. Create a trunk group for Alcatel-Asterisk

* Under Trunk Groups, name it something like Asterisk
* Q931 signal variant=ISDN all countries
* you may have to set 'entity number' if you can't dial out
* Under Trunk Group:
o B channel choice=yes
o Under Access create an object:
o If your card is in shelf 0, slot 4 the physical address will be 0-4-0
o access type=T2


3. Set the physical link parameters

* Under Shelf/Board/PRA2/Digital Access set
o Network mode=yes
o CRC4=yes


My Asterisk extensions begin with 3, so under Translator/Prefix plan

* 3 - Open routing no.
* Node number=the ID number of the Asterisk trunk group


5. Enable trunk to trunk dialling

This enables Asterisk->Alcatel->PSTN (thanks again Frank :)

* Under Classes of Service/Connection COS/5 set Rights COS 5 to 1

Caller ID issues

Caller ID name doesn't seem to work. Both the name and number show in the ISDN trace but only the number shows on Alcatel handsets.

We did have a problem where Alcatel placed a 0 at the front of calls from Asterisk. This was fixed under Translator->External dialing plan->External callback translation, and adding:

* Basic number: 3 (the start of our asterisk extension numbers)
* No. of digits to be removed: 0
* Digits to add: blank

Constraints

Our voicemail system (4635) can only handle one extension number length so our Asterisk extensions have to have the same number of digits as our Alcatel extensions. Otherwise dialling internal extensions from the auto-attendant menu doesn't work.


Different Connection Types?

I have also tried setting both ends to QSIG instead of isdn all countries/euroisdn but haven't had any luck with this.

Posted: 12 Sep 2006 03:02
by bkopatschek
Hello!

I'm new to this forum and have found you through this Artikel on Voip-Info.org .
We have a Alcatel 4400 with CPU6 and Rel 5.1.

What we want to do is a configuration like this

PSTN -> Asterisk -> Alcatel

Did anybody try this configuration. Is there any reason why this could work or not?

Regards
Björn

Posted: 12 Sep 2006 10:12
by frank
Mike, by the way, EXCELLENT documentation.
Thanks a lot.

Soon I will change everything in the forum so people can upload documents..

Posted: 14 Sep 2006 04:15
by mike
bkopatschek wrote:Hello!

I'm new to this forum and have found you through this Artikel on Voip-Info.org .
We have a Alcatel 4400 with CPU6 and Rel 5.1.

What we want to do is a configuration like this

PSTN -> Asterisk -> Alcatel

Did anybody try this configuration. Is there any reason why this could work or not?

Regards
Björn
It sound like it should work. I plan to switch to this at some point in the future.

Posted: 15 Sep 2006 16:04
by bkopatschek
I can tell you it works great. We have it running.

Our Configuration is

PSTN through E1 -> Asterik 1.2.11 -> Alcatel 4400 with CPU6 Rel. 5.1

Our Asterisk Server is Equipped with 2 Digium TE110P Cards. One to PSTN and one to the Alcatel.

Our main Problem now is to call from a Alcatel Phone to a SIP Phone. Does anybody now, if it is possible to configure the Alcatel with a PRA2 Board so that any call is routed through the PRA2 Board without having to dial the 0??? Or is it possible to configure an other combination like #9 or something else instead of the 0??

I hope you understand what I mean.

Regards
Björn

Dialling Alcatel -> Asterisk

Posted: 18 Sep 2006 06:33
by kleva
Hi

If it is all working, then you can create one or more speed-dial to do this or a new prefix (still a code though).

We have done this via the following method:
Asterisk Ext 2400-2499
Alcatel Ext 2300-2399

Create speed-dials 2400 to 2499 on the Alcatel (prefix 24 created pointing to new speed dial group with 100 entries) and then literally added a 0 at the beginning of each line (eg: Entry 1 which is 2401 gets 02401).

As I didn't do the Asterisk side I cannot assist there at all, I have had very limited success in repeating this installation elsewhere (my Asterisk knowledge is very limited and I don't have access to the working installation configurations).

Hope this helps
kleva

Posted: 09 Jan 2007 04:24
by tymekexe
In this thread I described how to enable CID NAME presentation:

viewtopic.php?t=905

[HOWTO] Asterisk connection via PRI

Posted: 02 Apr 2007 07:55
by olivier2831
bkopatschek wrote:I can tell you it works great. We have it running.

Our Configuration is

PSTN through E1 -> Asterik 1.2.11 -> Alcatel 4400 with CPU6 Rel. 5.1

Our Asterisk Server is Equipped with 2 Digium TE110P Cards. One to PSTN and one to the Alcatel.

Our main Problem now is to call from a Alcatel Phone to a SIP Phone. Does anybody now, if it is possible to configure the Alcatel with a PRA2 Board so that any call is routed through the PRA2 Board without having to dial the 0??? Or is it possible to configure an other combination like #9 or something else instead of the 0??

I hope you understand what I mean.

Regards
Björn
Hi,

What if you simply ask users to dial a 0, before each SIP extension ?
Playing with Asterisk, it's easy to route such calls to appropriate SIP extension.

Regards

Re: Dialling Alcatel -> Asterisk

Posted: 09 Apr 2007 18:29
by finaluser
kleva wrote:Hi

If it is all working, then you can create one or more speed-dial to do this or a new prefix (still a code though).

We have done this via the following method:
Asterisk Ext 2400-2499
Alcatel Ext 2300-2399

Create speed-dials 2400 to 2499 on the Alcatel (prefix 24 created pointing to new speed dial group with 100 entries) and then literally added a 0 at the beginning of each line (eg: Entry 1 which is 2401 gets 02401).

As I didn't do the Asterisk side I cannot assist there at all, I have had very limited success in repeating this installation elsewhere (my Asterisk knowledge is very limited and I don't have access to the working installation configurations).

Hope this helps
kleva

One single Speed-Dial (Abbreviated) 24 -> 024

Re: [HOWTO] Asterisk connection via PRI

Posted: 21 Jun 2007 18:42
by krzysioD
guys,

anyone have sucessuly used qsig w/ asterisk (via pri of course)