keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about D110/210/410 T1/E1/J1 PRI Cards

OpenVox PRI D210P/D410P + dahdi

15 years 6 months ago #1961 by james.zhu
hello, all of users:
To install D210P with dahdi, install some support packages as zaptel requires, then please go through these steps:
1) get dahdi-linux, dahdi-tools and asterisk
wget downloads.digium.com/pub/asterisk/releas...erisk-1.6.0.1.tar.gz
wget downloads.digium.com/pub/telephony/dahdi...i-linux-2.0.0.tar.gz
wget downloads.digium.com/pub/telephony/dahdi...i-tools-2.0.0.tar.gz
wget downloads.digium.com/pub/libpri/releases/libpri-1.4.7.tar.gz
please unzip and cpoy those files to /usr/src/dahdi/dahdi-com(please note that this my dir, you can set to /usr/src)
2) please change back to /usr/src/dahdi/dahdi-com/libpri-1.4.7
run: make, make install
3) please change back to /usr/src/dahdi/dahdi-com/dahdi-linux-2.0.0
run: make, make install
4) change the directory to /usr/src/dahdi/dahdi-com/dahdi-tools-2.0.0
run: ./configure, make, make install
5) change to asterisk directory, in my case is /usr/src/dahdi/asterisk-1.6
5.1) ./configure
5.2) make
5.3) make install
5.4) make samples
6) please edit the dahdi files
6.1) edit the system.conf under /etc/dahdi, some files are there:
[root@new-host-8 asterisk-1.6]# cd /etc/dahdi/
[root@new-host-8 dahdi]# ls
init.conf modules system.conf
please keep in mind that the system.conf works as zaptel.conf in zaptel
the part of system.conf will be like this:
# And change channel 2 to use the kb1 echo canceller.
#echocanceller=kb1,2
#
=================D210P==
span=1,0,0,ccs,hdb3
span=2,0,0,ccs,hdb3
bchan=1-15,17-31
dchan=16
bchan = 32-46,48-62
dchan = 47
======================
6.2) edit the chan.dahdi.conf in /etc/asterisk
the part of chan_dahdi.conf should be like this:
;stripmsd=1
;callerid=asreceived
==================
context=zap-in
switchtype=euroisdn
pridialplan=national
signalling=pri_cpe
usecallerid=yes
hidecallerid=no
callwaiting=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
echocancel=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
callprogress=no
callerid=asreceived
group=1
signalling=pri_cpe
channel => 1-15,17-31
group=2
signalling=pri_cpe
channel => 32-46,48-62
==================
the chan_dahdi.conf works as zapata.conf, so do not be confused.
6.3) edit extensions.conf
for incoming line: // for example only
================
[zap-in]
;
; We start with what to do when a call first comes in.
;
exten => s,1,Wait(1) ; Wait a second, just for fun
exten => s,n,Answer ; Answer the line
exten => s,n,Dial(dahdi/13) // zap has been changed to dahdi
exten => s,n,Hangup
==================

7) modprobe dahdi
8) modprobe wct4xxp // for D110P, run wcte11xp
Cool dahdi_cfg -vvvvvvv // note: ztcfg changes dahdi_cfg. more commands are under /usr/sbin
============result of dahdi_cfg=========
DAHDI Tools Version - 2.0.0

DAHDI Version: 2.0.0
Echo Canceller(s):
Configuration
======================

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
===========skip some channels========
9) start asterisk by asterisk -vvvvvvvvgc
under asterisk console, run: dahdi show channels
===================================
new-host-11*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo zap-in default In Service
1 zap-in default In Service
2 zap-in default In Service
3 zap-in default In Service
4 zap-in default In Service
5 zap-in default In Service
6 zap-in default In Service
7 zap-in default In Service
8 zap-in default In Service
9 zap-in default In Service
10 zap-in default In Service
11 zap-in default In Service
12 zap-in default In Service
13 zap-in default In Service
14 zap-in default In Service
15 zap-in default In Service
17 zap-in default In Service
18 zap-in default In Service

10) make a inbound call to test calls
this is only very brief info for dahdi, later, i will add more details for that. if you have any problem, please always refer these links:
voip-info.org
asterisk.org
openvox.com.cn
README file under dahdi-linux
=======================
test environments:
OpenVox D110P/D210P/D410P
Dhadi-linux-2.0.0
libpri-1.4.7
asterisk-1.6.0.1
Centos-5.0
OpenVox D110P/D210P/D410P
========================
regards!
James.zhu

15 years 4 months ago #2528 by pemer
my Software
Asterisk 1.6.0.3
dahdi-linux 2.1.0.3
dahdi-tools 2.1.0.2
libpri 1.4.7

i did nearly this Konfiguration,
the difference is in the secound pri span.
The Secound span looks like this:

group=2
signalling=pri_net
channel => 32-46,48-62

the constellation of hardware looks like this:

Linux Router -> TE SO/ISDN NT <- Alcatel/PBX -> S2M/NET <- Asterisk -> S2M/CPE <- Privider

my first problem is that Asterisk says always then from the Alcatel come a call:

ERROR[30090]: chan_dahdi.c:10130 dahdi_pri_error: !! Unexpected Channel.selection 3

did you know a solution for this ??


thnaks in advance

Patrick
15 years 4 months ago #2529 by james.zhu
hello,
i think it has some wrong with the Alcatel. the chan_dahdi detected a error from that side. could you show me the debug of Pri channels?
how is the status of leds?
regards!
James.zhu

15 years 4 months ago #2531 by pemer
the LED is always Green.

here is the debug log from pri:

< User-User Information (len= 3) [ 04 ]
-- Making new call for cr 6
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
[Jan 16 14:25] ERROR[3437]: chan_dahdi.c:10130 dahdi_pri_error: !! Unexpected Channel selection 3
-- Processing IE 28 (cs0, Facility)
Handle Q.932 ROSE Invoke component
[ Handling operation 30 ]
Channel 0/-1, Call 6 - received AOC charging request - charging case: 1
Handle Q.932 ROSE Invoke component
[ Handling operation 30 ]
Channel 0/-1, Call 6 - received AOC charging request - charging case: 2
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 125 (cs0, High-layer Compatibility)
-- Processing IE 126 (cs0, User-User)
q931.c:3509 q931_receive: call 6 on channel -1 enters state 6 (Call Present)
q931.c:2826 q931_setup_ack: call 6 on channel 30 enters state 25 (Overlap Receiving)
> Protocol Discriminator: Q.931 (8) len=14
> Call Ref: len= 2 (reference 6/0x6) (Terminator)
> Message type: SETUP ACKNOWLEDGE (13)
> [18 03 a9 83 9e]
> Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
> ChanSel: As indicated in following octets
> Ext: 1 Coding: 0 Number Specified Channel Type: 3
> Ext: 1 Channel: 30 ]
> [1e 02 81 82]
> Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
> Ext: 1 Progress Description: Called equipment is non-ISDN. (2) ]
-- Accepting overlap call from '08999341124' to '<unspecified>' on channel 0/30, span 1
-- Starting simple switch on 'DAHDI/30-1'
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 6/0x6) (Originator)
< Message type: INFORMATION (123)
< [70 02 81 30]
< Called Number (len= 4) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0' ]
-- Processing IE 112 (cs0, Called Party Number)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 6/0x6) (Originator)
< Message type: INFORMATION (123)
< [70 02 81 33]
< Called Number (len= 4) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '3' ]
-- Processing IE 112 (cs0, Called Party Number)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 6/0x6) (Originator)
< Message type: INFORMATION (123)
< [70 02 81 30]
< Called Number (len= 4) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0' ]
-- Processing IE 112 (cs0, Called Party Number)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 6/0x6) (Originator)
< Message type: INFORMATION (123)
< [70 02 81 32]
< Called Number (len= 4) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '2' ]
-- Processing IE 112 (cs0, Called Party Number)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 6/0x6) (Originator)
< Message type: INFORMATION (123)
< [70 02 81 31]
< Called Number (len= 4) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '1' ]
-- Processing IE 112 (cs0, Called Party Number)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 6/0x6) (Originator)
< Message type: INFORMATION (123)
< [70 02 81 30]
< Called Number (len= 4) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0' ]
-- Processing IE 112 (cs0, Called Party Number)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 6/0x6) (Originator)
< Message type: INFORMATION (123)
< [70 02 81 30]
< Called Number (len= 4) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0' ]
-- Processing IE 112 (cs0, Called Party Number)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 6/0x6) (Originator)
< Message type: INFORMATION (123)
< [70 02 81 39]
< Called Number (len= 4) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '9' ]
-- Processing IE 112 (cs0, Called Party Number)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 6/0x6) (Originator)
< Message type: INFORMATION (123)
< [70 02 81 30]
< Called Number (len= 4) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0' ]
-- Processing IE 112 (cs0, Called Party Number)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 6/0x6) (Originator)
< Message type: INFORMATION (123)
< [70 02 81 30]
< Called Number (len= 4) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0' ]
-- Processing IE 112 (cs0, Called Party Number)

thanks.
regards,

Patrick
Time to create page: 0.041 seconds
Powered by Kunena Forum