Re: [asterisk-users] Silly (??) question about chan_dahdi [SOLVED]
Hi, I finally solved the problem. As I mentioned in one of my earlier postings, I forgot to install libpri when I compiled the dahdi package for the first time. I fixed that but did not compile asterisk again. Therefore the chan-dahdi.so obviously did not contain the necessary code to react to calls. The second detail was to add signalling = bri_cpe to /etc/asterisk/chan_dahdi.conf Thanks for your help, Stefan David Backeberg schrieb: On Wed, May 27, 2009 at 2:23 PM, Stefan-Michael Guenther asteris...@in-put.de wrote: *CLI dialplan show [ Context 'default' created by 'pbx_config' ] '8304478' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '8304479' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '83086920' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '83086921' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] Your extensions look good. At this point I'm guessing there's something silly going on with your physical lines. Do you have an ordinary telephone for your country that you can plug in and confirm the lines work properly there. I think at this point you need help from somebody who knows line signaling for your country. Either your phone company or Digium tech support if you have a digium card. -- 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 ___ -- 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
Re: [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 ___ -- 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
Re: [asterisk-users] Silly (??) question about chan_dahdi
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,11 Anything 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 = 63 You 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.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir ___ -- 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
Re: [asterisk-users] Silly (??) question about chan_dahdi
On Wed, May 27, 2009 at 3:55 AM, Stefan-Michael Guenther asteris...@in-put.de wrote: 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. Is that your entire extensions.conf? If so, this is part of your problem. If you do the square-bracket [] style contexts, you need to have jumps to them from the default context. So your plan should say extensions.conf [default] 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() And you will need to cli dialplan reload to reload extensions.conf ___ -- 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
Re: [asterisk-users] Silly (??) question about chan_dahdi
Hi, I have set context=default both in /etc/asterisk/dahdi-channels.conf and /etc/asterisk/chan_dahdi.conf, and created the necessary context with extens for both numbers I have replaced the ISDN cable, the LED on the card is green, but still asterisk doesn't react to call to 8304478 and 8304479, while the ISDN phone does, No, they are not both connected at the same time. Stefan David Backeberg schrieb: On Wed, May 27, 2009 at 3:55 AM, Stefan-Michael Guenther asteris...@in-put.de wrote: 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. Is that your entire extensions.conf? If so, this is part of your problem. If you do the square-bracket [] style contexts, you need to have jumps to them from the default context. So your plan should say extensions.conf [default] 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() And you will need to cli dialplan reload to reload extensions.conf -- 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 ___ -- 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
Re: [asterisk-users] Silly (??) question about chan_dahdi
On Wed, May 27, 2009 at 12:19 PM, Stefan-Michael Guenther asteris...@in-put.de wrote: I have replaced the ISDN cable, the LED on the card is green, but still asterisk doesn't react to call to 8304478 and 8304479, while the ISDN phone does, No, they are not both connected at the same time. Please paste in your entire extensions.conf I'm not sure you understood what I told you on my last reply. Please also paste in the output of: cli dialplan show ___ -- 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
Re: [asterisk-users] Silly (??) question about chan_dahdi
You should also do core set verbose 10 so you can see how the dialplan executes on these calls. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of David Backeberg Sent: Wednesday, May 27, 2009 11:23 AM To: asteris...@in-put.de; Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Silly (??) question about chan_dahdi On Wed, May 27, 2009 at 12:19 PM, Stefan-Michael Guenther asteris...@in-put.de wrote: I have replaced the ISDN cable, the LED on the card is green, but still asterisk doesn't react to call to 8304478 and 8304479, while the ISDN phone does, No, they are not both connected at the same time. Please paste in your entire extensions.conf I'm not sure you understood what I told you on my last reply. Please also paste in the output of: cli dialplan show ___ -- 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 ___ -- 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
Re: [asterisk-users] Silly (??) question about chan_dahdi
Hi, David Backeberg schrieb: Please paste in your entire extensions.conf I'm not sure you understood what I told you on my last reply. here it is: [general] static = yes writeprotect = no priorityjumping=yes [globals] [default] 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() Re: exten = 83086921,1,ANSWER() exten = 83086921,2,WAIT(10) exten = 83086921,3,HANGUP() exten = 83086920,1,ANSWER() exten = 83086920,2,WAIT(10) exten = 83086920,3,HANGUP() Please also paste in the output of: cli dialplan show *CLI dialplan show [ Context 'default' created by 'pbx_config' ] '8304478' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '8304479' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '83086920' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '83086921' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] [ Context 'parkedcalls' created by 'features' ] '700' = 1. Park() [features] [ Context 'app_queue_gosub_virtual_context' created by 'app_queue' ] 's' =1. NoOp() [app_queue] [ Context 'app_dial_gosub_virtual_context' created by 'app_dial' ] 's' =1. NoOp() [app_dial] -= 7 extensions (15 priorities) in 4 contexts. =- Thanks for your help support, 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
Re: [asterisk-users] Silly (??) question about chan_dahdi
Maybe this is an american thing, but why are your working lines 8 digits and your non-working 7 digits? Pardon if this was addressed earlier in the thread. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of David Backeberg Sent: Wednesday, May 27, 2009 2:53 PM To: asteris...@in-put.de; Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Silly (??) question about chan_dahdi On Wed, May 27, 2009 at 2:23 PM, Stefan-Michael Guenther asteris...@in-put.de wrote: *CLI dialplan show [ Context 'default' created by 'pbx_config' ] '8304478' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '8304479' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '83086920' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '83086921' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] Your extensions look good. At this point I'm guessing there's something silly going on with your physical lines. Do you have an ordinary telephone for your country that you can plug in and confirm the lines work properly there. I think at this point you need help from somebody who knows line signaling for your country. Either your phone company or Digium tech support if you have a digium card. ___ -- 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 ___ -- 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
Re: [asterisk-users] Silly (??) question about chan_dahdi
On Wed, May 27, 2009 at 2:23 PM, Stefan-Michael Guenther asteris...@in-put.de wrote: *CLI dialplan show [ Context 'default' created by 'pbx_config' ] '8304478' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '8304479' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '83086920' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] '83086921' = 1. ANSWER() [pbx_config] 2. WAIT(10) [pbx_config] 3. HANGUP() [pbx_config] Your extensions look good. At this point I'm guessing there's something silly going on with your physical lines. Do you have an ordinary telephone for your country that you can plug in and confirm the lines work properly there. I think at this point you need help from somebody who knows line signaling for your country. Either your phone company or Digium tech support if you have a digium card. ___ -- 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
Re: [asterisk-users] Silly (??) question about chan_dahdi
asterisk -rvvv CLI pri debug span 3 place a call and catch the stuff off the screen you can also try pri intense debug span 3 if there's nothing showing up it's possible your number comes with 0 or so ... so you might want to do exten = _X.,1,BLAH instead of specifying the exact numberes Martin On Wed, May 27, 2009 at 11:19 AM, Stefan-Michael Guenther asteris...@in-put.de wrote: Hi, I have set context=default both in /etc/asterisk/dahdi-channels.conf and /etc/asterisk/chan_dahdi.conf, and created the necessary context with extens for both numbers I have replaced the ISDN cable, the LED on the card is green, but still asterisk doesn't react to call to 8304478 and 8304479, while the ISDN phone does, No, they are not both connected at the same time. Stefan David Backeberg schrieb: On Wed, May 27, 2009 at 3:55 AM, Stefan-Michael Guenther asteris...@in-put.de wrote: 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. Is that your entire extensions.conf? If so, this is part of your problem. If you do the square-bracket [] style contexts, you need to have jumps to them from the default context. So your plan should say extensions.conf [default] 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() And you will need to cli dialplan reload to reload extensions.conf -- 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 ___ -- 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 ___ -- 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
[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 ___ -- 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
Re: [asterisk-users] Silly (??) question about chan_dahdi
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 asteris...@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 ___ -- 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