Stefan-Michael Guenther
2009-May-26  18:30 UTC
[asterisk-users] Silly (??) question about chan_dahdi
Hi, these are my first steps with DAHDI and I finally managed to get asterisk to load chan_dahdi (after I found out, that I need libpri). But how do I tell chan_dahdi on which isdn numbers it should react? I haven't found a parameter like "incomingmsn" for chan_capi in the documentation. Thanks for your help, Stefan
You define context= for the channels in dahdi.conf and then in extensions.conf you define those numbers in that particular context name eg: dahdi.conf context=incoming channel => 1-15,17-31 extensions.conf [incoming] exten => _X.,1,Answer exten => _X.,2,Echo and it will "react" to all numbers that come on that circuit and do Echo app on incoming calls Martin On Tue, May 26, 2009 at 1:30 PM, Stefan-Michael Guenther <asterisk02 at in-put.de> wrote:> Hi, > > these are my first steps with DAHDI and I finally managed to get > asterisk to load chan_dahdi (after I found out, that I need libpri). > > But how do I tell chan_dahdi on which isdn numbers it should react? I > haven't found a parameter like "incomingmsn" for chan_capi in the > documentation. > > Thanks for your help, > > Stefan > > > _______________________________________________ > -- 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 >
Stefan-Michael Guenther
2009-May-27  07:55 UTC
[asterisk-users] Silly (??) question about chan_dahdi
Hi Martin,
thanks for your suggestions, but ....
 >You define context= for the channels in dahdi.conf
 >and then in extensions.conf you define those numbers in that
 >particular context name
 >
 >eg:
 >
 >dahdi.conf
 >
 >context=incoming
 >channel => 1-15,17-31
 >
in /etc/asterisk there is a chan_dahdi.conf and a dahdi-channels.conf 
which were automatically created (and a little bit modified by me):
chan_dadhi.conf:
----------------
[trunkgroups]
[channels]
language=de
context=incoming
switchtype=euroisdn
group = 1
channel => 1,2,4,5,7,8,10,11
overlapdial=yes
usecallerid=yes
callwaiting=no
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
group=1
callgroup=1
pickupgroup=1
dahdi-channels.conf:
--------------------
; Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" AMI/CCS RED
group=0,11
context=incoming
switchtype = euroisdn
signalling = bri_cpe
channel => 1-2
group = 63
; Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" AMI/CCS RED
group=0,12
context=incoming
switchtype = euroisdn
signalling = bri_cpe
channel => 4-5
group = 63
; Span 3: B4/0/3 "B4XXP (PCI) Card 0 Span 3" (MASTER) AMI/CCS
group=0,13
context=incoming
switchtype = euroisdn
signalling = bri_cpe
channel => 7-8
group = 63
; Span 4: B4/0/4 "B4XXP (PCI) Card 0 Span 4" AMI/CCS RED
group=0,14
context=incoming
switchtype = euroisdn
signalling = bri_cpe
channel => 10-11
group = 63
extensions.conf:
-----------------
[incoming]
exten => 8304479,1,ANSWER()
exten => 8304479,2,WAIT(10)
exten => 8304479,3,HANGUP()
exten => 8304478,1,ANSWER()
exten => 8304478,2,WAIT(10)
exten => 8304478,3,HANGUP()
Asterisk still doesn't pick up calls for these two numbers.
I'm a little bit irritated by the fact, that in the cli asterisk 
mentions "ISDN PRI signalling" while we are using BRI . BTW, the
warning
is currently correct, the is an isdn cable only in port 3.
   == Parsing '/etc/asterisk/chan_dahdi.conf':   == Found 
 
   == Parsing '/etc/asterisk/users.conf':   == Found 
 
[May 27 09:39:35] WARNING[5145]: chan_dahdi.c:4664 handle_alarms: 
Detected alarm on channel 1: Red Alarm 
     -- Registered channel 1, ISDN PRI signalling 
 
[May 27 09:39:35] WARNING[5145]: chan_dahdi.c:4664 handle_alarms: 
Detected alarm on channel 2: Red Alarm 
     -- Registered channel 2, ISDN PRI signalling 
 
[May 27 09:39:35] WARNING[5145]: chan_dahdi.c:4664 handle_alarms: 
Detected alarm on channel 4: Red Alarm 
     -- Registered channel 4, ISDN PRI signalling 
 
[May 27 09:39:35] WARNING[5145]: chan_dahdi.c:4664 handle_alarms: 
Detected alarm on channel 5: Red Alarm 
     -- Registered channel 5, ISDN PRI signalling 
 
     -- Registered channel 7, ISDN PRI signalling 
 
     -- Registered channel 8, ISDN PRI signalling 
 
[May 27 09:39:35] WARNING[5145]: chan_dahdi.c:4664 handle_alarms: 
Detected alarm on channel 10: Red Alarm 
     -- Registered channel 10, ISDN PRI signalling 
 
[May 27 09:39:35] WARNING[5145]: chan_dahdi.c:4664 handle_alarms: 
Detected alarm on channel 11: Red Alarm 
     -- Registered channel 11, ISDN PRI signalling 
 
     -- Automatically generated pseudo channel 
 
   == Registered channel type 'DAHDI' (DAHDI Telephony Driver)
The two numbers above are correct, when I use an ISDN phone it rings for 
both numbers.
Thanks for your help,
Stefan
-- 
********************************************
in-put GbR - Das Linux-Systemhaus
Stefan-Michael Guenther
Geschaeftsfuehrer
Moltkestrasse 49     D-76133 Karlsruhe
Tel./Fax : +49 (0)721 / 83044 - 98/93
http://www.in-put.de
********************************************
      Schulungen  Installationen
          Beratung   Support
       Voice-over-IP-Loesungen
********************************************
On Wed, May 27, 2009 at 09:55:13AM +0200, Stefan-Michael Guenther wrote:> Hi Martin, > > thanks for your suggestions, but .... > > >You define context= for the channels in dahdi.conf > >and then in extensions.conf you define those numbers in that > >particular context name > > > >eg: > > > >dahdi.conf > > > >context=incoming > >channel => 1-15,17-31 > > > in /etc/asterisk there is a chan_dahdi.conf and a dahdi-channels.conf > which were automatically created (and a little bit modified by me): > > chan_dadhi.conf: > ---------------- > [trunkgroups] > > [channels] > language=de > context=incoming > switchtype=euroisdn > group = 1 > channel => 1,2,4,5,7,8,10,11Anything after that line has no effect.> overlapdial=yes > usecallerid=yes > callwaiting=no > callwaitingcallerid=yes > threewaycalling=yes > transfer=yes > canpark=yes > cancallforward=yes > callreturn=yes > echocancel=yes > echocancelwhenbridged=yes > group=1 > callgroup=1 > pickupgroup=1 > > dahdi-channels.conf: > -------------------- > ; Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" AMI/CCS RED > group=0,11 > context=incoming > switchtype = euroisdn > signalling = bri_cpe > channel => 1-2 > group = 63You have no #include of that (which is probably a good thing, as it overlaps with channels you already set in chan_dahdi.conf itself). Hence the value of that file is mostly informative: this is what dahdi_genconf generated :-) [snip] -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir