[asterisk-users] PBX -> PRI -> * -> Telco not working

Tony Mountifield tony at softins.clara.co.uk
Sat Nov 15 06:05:54 CST 2008


In article <57a815bf0811142025k57b2773cq3eb5f1c9c2913783 at mail.gmail.com>,
Mikel Lindsaar <raasdnil at gmail.com> wrote:
> 
> I have an NEC PBX connected via a TE210p E1 line to an asterisk 1.6 box.
> 
> NEC -> E1 -> TE210P:1 -> * -> TE210P:2 -> E1 -> Telco
> 
> Incomming calls from the telco to the asterisk box to the NEC work fine with
> indials and everything.  Works sweet.
> 
> Outbound from the NEC to the Asterisk box fail.  Giving an long dial tone
> that then times out.
> 
> Ie, pick up NEC handset, dial to get outside line, are given a dial tone,
> and then press numbers on keypad but dialtone continues and then eventually
> get an fast busy signal.
> 
> Looking at the console, it doesn't seem like the * system is seeing the
> dialed number data from the NEC box. the reason I say this is that the
> asterisk box complains that it is accepting call from '' to ''
> 
> Which just seems like no data is passing across.
> 
> It is an NEC Xen Master that is configured to connect to an E1 and works
> fine. This E1 line has been replaced by a direct link to the * box to make
> the NEC box think the * box is the Telco – so I know this at least works.
> And I can also send a call into the NEC system fine.
> 
> Does anyone know how to debug this? How can I see what data the NEC box is
> sending over the signaling channel in * ?

You need to understand how the NEC interacted with the Telco before the
Asterisk box was inserted.

For example, where is the dialtone generated? By the NEC or by the unit
connected to the NEC's port?

If the NEC were acting like an Asterisk box with a phone directly connected,
it would generate dialtone, accept all the DTMF digits and then send a call
request to the E1, complete with called-party number.

You description makes me wonder whether what is happening is that you
dial 9 or whatever on the NEC to get an "outside line", and it then
immediately connects through to the Asterisk box which gives dialtone,
and you then send DTMF digits in-band. Perhaps the Telco's E1 is set up
for this, but I'm not sure what is necessary for Asterisk to do in-band
DTMF dialling from an incoming E1 call. Perhaps someone else here could
comment.

You might want to try changing immediate=no to immediate=yes on span 1.
If that's the case, you might need a different dialplan too:

[from-nec]
exten => s,1,WaitExten
exten => _X.,1,Dial(Zap/g2/${EXTEN},,T)

In this example, the immediate=yes goes straight to the 's' extension,
at which you wait for the user to dial the outgoing number. You might
need to set the digit timeouts before doing WaitExten.

If that doesn't work, you could try doing this at the Asterisk
CLI> prompt:

pri set debug file /tmp/pri.txt
pri debug span 1

Then try making an outbound call, and then:

pri no debug span 1
pri unset debug file

Then post the contents of /tmp/pri.txt if it's not too huge, or else
put it up on a file server or web site and post the URL.

Cheers
Tony

> dahdi/system.conf looks like:
> ------------------------------------------------
> 
> # Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1"
> # To NEC System
> span=1,0,0,ccs,hdb3,crc4
> bchan=1-15,17-31
> dchan=16
> echocanceller=mg2,1-15,17-31
> 
> # Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2"
> # To E1
> span=2,1,0,ccs,hdb3,crc4
> bchan=32-46,48-62
> dchan=47
> echocanceller=mg2,32-46,48-62
> 
> # Global data
> 
> loadzone = au
> defaultzone = au
> 
> 
> asterisk/dahdi-channels.conf looks like:
> ------------------------------------------------
> 
> ; SPAN 1 connects to the NEC PBX system
> ; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER) B8ZS/ESF
> group=1
> context=from-nec
> switchtype = euroisdn
> signalling = pri_net
> channel => 1-15,17-31
> immediate = no
> overlapdial = yes
> 
> ; SPAN 2 connects to Telstra – 30 channel E1
> ; Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" B8ZS/ESF
> group=2
> context=from-pstn
> switchtype = euroisdn
> signalling = pri_cpe
> channel => 32-46,48-62
> immediate = no
> overlapdial = yes
> prindication = outofband
> 
> 
> asterisk/extensions.conf (relative bit) looks like:
> ------------------------------------------------
> 
> [from-pstn]
> exten => _555573XX,1,Dial(DAHDI/g1/${EXTEN},,T)
> 
> [from-nec]
> exten => _X.,1,Dial(DAHDI/g2/${EXTEN},,T)
> -=-=-=-=-=-
> [Alternative: text/html]
> -=-=-=-=-=-
> -=-=-=-=-=-
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> -=-=-=-=-=-


-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list