hi all,
i have a probably very stupid question/problem.
for testing purpose i am trying to get asterisk running with two isdn
cards. I'd only like to here the demo sound when i call the number - but
nothing works.
The output of show channels is not showing any channel - should there be
4 channels ? - capi info shows my two cards perfectly.
The ISDN Controller's are attached to an PTMP ISDN Line
I can't find good documentation about how to configure capi.conf.
Here is my actual config (capi.conf)
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
[interfaces]
isdnmode=ptmp
msn=073266xxxx
controller=1,2
context=demo
devices=2
incommingmsn=*
softdtmf=0
here the output from the chan_capi initialization
[chan_capi.so] => (Common ISDN API for Asterisk)
May 27 16:47:00 ERROR[1024]: chan_capi.c:2664 load_module: Unknown
isdnmode parameter "ptmp" -- ignoring
May 27 16:47:00 NOTICE[1024]: chan_capi.c:2338 mkif:
ast_capi_pvt(0732663288,,demo,0x6,2) (1,2,64) (0)(0.800000/0.800000) 0
May 27 16:47:00 NOTICE[1024]: chan_capi.c:2338 mkif:
ast_capi_pvt(0732663288,,demo,0x6,2) (1,2,64) (0)(0.800000/0.800000) 0
May 27 16:47:00 NOTICE[1024]: chan_capi.c:2694 load_module: this box has
2 capi controller(s)
-- listening on contr1 CIPmask = 0x1fff03ff
-- CAPI[contr1] supports DTMF
-- CAPI[contr1] supports supplementary services
-- listening on contr2 CIPmask = 0x1fff03ff
-- CAPI[contr2] supports DTMF
-- CAPI[contr2] supports supplementary services
here what capi info and show channels is showing
*CLI> capi info
Contr1: 2 B channels total, 2 B channels free.
Contr2: 2 B channels total, 2 B channels free.
*CLI> show channels
Channel (Context Extension Pri ) State Appl.
Data
0 active channel(s)
can anyone please give me a hint what i am doing wrong ?
thanks
Wolfgang
Hi Wolfgang, On Thu, May 27, 2004 at 02:49:51PM +0200, Wolfgang Pichler wrote: ...> Here is my actual config (capi.conf)...> [interfaces] > isdnmode=ptmp > msn=073266xxxxin my setup I'm using only the localpart as msn without the long distance dial prefix. Did you try this? -- Gruss / Best regards | LF.net GmbH | fon +49 711 90074-414 Thorsten Huber | Ruppmannstrasse 27 | fax +49 711 90074-33 th@LF.net | D-70565 Stuttgart | http://www.lf.net
Hi Wolfgang, I think everything is just fine because * says you that it has found 2 CAPI devices. (you can strip isdnmode=ptmp from your capi.conf anyway). I didn't understand what you where exactly doing. I think you have one of these cards connected to your providers PTMP line and the other one connected to your internal S0 bus with your phone. If that's the case, you have to know that you have to use one ISDN card that supports NT mode (to emulate an NTBA) so that you can connect your phone directly to it. This can be cards with HFC chipset, unfortunately normal AVM Fritz cards do not support this mode. I list of cheap cards can be found here: http://isdn.jolly.de/cards.html You have also to cross over the senders and receivers channels. A good describtion for it can be found here: http://home.foni.net/~jolly2/download/PBX4Linux-2.3.html (only for the hardware installation) To bring the internal S0 bus on the road you have to use bri-stuff from Klaus-Peter Junghanns. For the external CAPI device you also have to use his chan_capi. Both can be found here: http://www.junghanns.net/asterisk/ Regards, Julian Pawlowski
Hi!> If that's the case, you have to know that you have to use one ISDN card > that supports NT mode (to emulate an NTBA) so that you can connect your > phone directly to it.Question: Do I need to insert the 100 (or 50) Ohm resistor if I want to connect an old Auerswald PBX (ets2106) to the NT mode card, or does such a PBX already come with terminiation? Cheers, Philipp
can someone tell me how does the extensions.conf have to be - so that it is only configured to answer the phone ? (i've noe tested the card with capifax and capifaxrecvd - everything works fine) best regards Wolfgang Am Do, den 27.05.2004 schrieb Wolfgang Pichler um 14:49:> hi all, > > i have a probably very stupid question/problem. > > for testing purpose i am trying to get asterisk running with two isdn > cards. I'd only like to here the demo sound when i call the number - but > nothing works. > The output of show channels is not showing any channel - should there be > 4 channels ? - capi info shows my two cards perfectly. > The ISDN Controller's are attached to an PTMP ISDN Line > I can't find good documentation about how to configure capi.conf. > > Here is my actual config (capi.conf) > [general] > nationalprefix=0 > internationalprefix=00 > rxgain=0.8 > txgain=0.8 > > [interfaces] > isdnmode=ptmp > msn=073266xxxx > controller=1,2 > context=demo > devices=2 > incommingmsn=* > softdtmf=0 > > > here the output from the chan_capi initialization > [chan_capi.so] => (Common ISDN API for Asterisk) > May 27 16:47:00 ERROR[1024]: chan_capi.c:2664 load_module: Unknown > isdnmode parameter "ptmp" -- ignoring > May 27 16:47:00 NOTICE[1024]: chan_capi.c:2338 mkif: > ast_capi_pvt(0732663288,,demo,0x6,2) (1,2,64) (0)(0.800000/0.800000) 0 > May 27 16:47:00 NOTICE[1024]: chan_capi.c:2338 mkif: > ast_capi_pvt(0732663288,,demo,0x6,2) (1,2,64) (0)(0.800000/0.800000) 0 > May 27 16:47:00 NOTICE[1024]: chan_capi.c:2694 load_module: this box has > 2 capi controller(s) > -- listening on contr1 CIPmask = 0x1fff03ff > -- CAPI[contr1] supports DTMF > -- CAPI[contr1] supports supplementary services > -- listening on contr2 CIPmask = 0x1fff03ff > -- CAPI[contr2] supports DTMF > -- CAPI[contr2] supports supplementary services > > here what capi info and show channels is showing > > *CLI> capi info > Contr1: 2 B channels total, 2 B channels free. > Contr2: 2 B channels total, 2 B channels free. > *CLI> show channels > Channel (Context Extension Pri ) State Appl. > Data > 0 active channel(s) > > can anyone please give me a hint what i am doing wrong ? > > thanks > Wolfgang > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Hi Wolfgang,
here is our capi.conf for two controllers on two different ISDN lines
;
; CAPI config
;
;
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
[interfaces]
msn=041XXXX120
incomingmsn=*
controller=1
softdtmf=0
context=default
devices=2
msn=041XXXX682
incomingmsn=*
controller=2
softdtmf=0
context=assistenza
devices=2 believe it or not, but you can see in the chan_capi source code,
the creation of the lines are activated by parsing
the line "devices=" so it seems that MUST be the last line of every
interface parameters. With this capi.conf and two AVM
controllers (one PCI, une USB) with hacked drivers, we do have random
problems, when we have many calls, our server hangs and we
must reboot. Does anyone have a suggestion?Bye.Francesco P.S. what do you
mean with PTMP line?
----- Original Message -----
From: "Wolfgang Pichler" <madmin@dialog-telekom.at>
To: "Asterisk-Users Mailinglist"
<Asterisk-Users@lists.digium.com>
Sent: Thursday, May 27, 2004 2:49 PM
Subject: [Asterisk-Users] CAPI / Channels
> hi all,
>
> i have a probably very stupid question/problem.
>
> for testing purpose i am trying to get asterisk running with two isdn
> cards. I'd only like to here the demo sound when i call the number -
but
> nothing works.
> The output of show channels is not showing any channel - should there be
> 4 channels ? - capi info shows my two cards perfectly.
> The ISDN Controller's are attached to an PTMP ISDN Line
> I can't find good documentation about how to configure capi.conf.
>
> Here is my actual config (capi.conf)
> [general]
> nationalprefix=0
> internationalprefix=00
> rxgain=0.8
> txgain=0.8
>
> [interfaces]
> isdnmode=ptmp
> msn=073266xxxx
> controller=1,2
> context=demo
> devices=2
> incommingmsn=*
> softdtmf=0
>
>
> here the output from the chan_capi initialization
> [chan_capi.so] => (Common ISDN API for Asterisk)
> May 27 16:47:00 ERROR[1024]: chan_capi.c:2664 load_module: Unknown
> isdnmode parameter "ptmp" -- ignoring
> May 27 16:47:00 NOTICE[1024]: chan_capi.c:2338 mkif:
> ast_capi_pvt(0732663288,,demo,0x6,2) (1,2,64) (0)(0.800000/0.800000) 0
> May 27 16:47:00 NOTICE[1024]: chan_capi.c:2338 mkif:
> ast_capi_pvt(0732663288,,demo,0x6,2) (1,2,64) (0)(0.800000/0.800000) 0
> May 27 16:47:00 NOTICE[1024]: chan_capi.c:2694 load_module: this box has
> 2 capi controller(s)
> -- listening on contr1 CIPmask = 0x1fff03ff
> -- CAPI[contr1] supports DTMF
> -- CAPI[contr1] supports supplementary services
> -- listening on contr2 CIPmask = 0x1fff03ff
> -- CAPI[contr2] supports DTMF
> -- CAPI[contr2] supports supplementary services
>
> here what capi info and show channels is showing
>
> *CLI> capi info
> Contr1: 2 B channels total, 2 B channels free.
> Contr2: 2 B channels total, 2 B channels free.
> *CLI> show channels
> Channel (Context Extension Pri ) State Appl.
> Data
> 0 active channel(s)
>
> can anyone please give me a hint what i am doing wrong ?
>
> thanks
> Wolfgang
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
> With this capi.conf and two AVM controllers (one PCI, une USB) with hacked drivers, we do have> random problems, when we have many calls, our server hangs and we must reboot. Should be up to your hacked drivers, not up to asterisk. Use active cards (or at least one) to prevent those failures. Maybe you can use older ISA-based cards, they can be bought e.g. at ebay for only a few euros...> P.S. what do you mean with PTMP line?PTMP means Point-To-Multipoint and is the operation mode of your ISDN connection (in Germany it is called Mehrger?teanschluss/Basisanschluss). You can connect several phones (up to 8) at the same time directly to your NTBA. Of cause you have PTP, which stands for Point-to-Point. In this mode you need to connect an telephone system in order to be able to make calls. (in Germany it is called Anlagenanschluss). Regards Julian Pawlowski