List Info

Thread: View status on ISDN card using chan_capi




View status on ISDN card using chan_capi
user name
2006-06-21 23:45:46
Hi,

I have now two ISDN HFC-S cards running (thx to HPS for the
great
driver).

I use for my SIP and IAX2 channels something like:
exten => 200,hint,SIP/200
exten => 201,hint,SIP/201
exten => 202,hint,IAX2/202

So i can see perfectly with 'show hints' the status of the
lines and
they are displayed on my GXP-2000.

Is that for the ISDN cards also possible?

Best regards,
Matthias

-- 

"Programming today is a race between software
engineers striving to
build bigger and better idiot-proof programs, and the
universe trying to
produce bigger and better idiots. So far, the universe is
winning." --
Rich Cook
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
View status on ISDN card using chan_capi
user name
2006-06-22 07:41:53
On Thursday 22 June 2006 01:45, Matthias Fechner wrote:
> Hi,
>
> I have now two ISDN HFC-S cards running (thx to HPS for
the great
> driver).
>
> I use for my SIP and IAX2 channels something like:
> exten => 200,hint,SIP/200
> exten => 201,hint,SIP/201
> exten => 202,hint,IAX2/202
>
> So i can see perfectly with 'show hints' the status
of the lines and
> they are displayed on my GXP-2000.
>
> Is that for the ISDN cards also possible?
>

There is a command, "capi info", that will
display information about the ISDN 
cards. It will display something like this:

CAPI thread [0x0] {
 Application ID     : 0x00000000
 Application uptime : 0x000001c9 seconds

 Call descriptor statistics:
    allocation count        : 0x00000000 call descriptors
    free count              : 0x00000000 call descriptors
    in memory count         : 0x00000000 call descriptors
    in use count            : 0x00000000 call descriptors
    record allocation rate  :     0x0000 calls/second
    limit allocation rate   :     0x0010 calls/second
}
Config entry 'ISDN2' {
 b_channels_curr : 2 call descriptor(s) free
 b_channels_max  : 2 call descriptor(s) total
}
Config entry 'ISDN1' {
 b_channels_curr : 2 call descriptor(s) free
 b_channels_max  : 2 call descriptor(s) total
}

And when you make a call, it will show the controller also:

CAPI controller 0x9 {
 active     : 0x0001 call descriptors
 on hold    : 0x0000 call descriptors
 B-channels : 0x0040 units
}

Yours
--HPS
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
View status on ISDN card using chan_capi
user name
2006-06-22 08:58:43
Hello Hans,

* Hans Petter Selasky <hselaskyc2i.net> [22-06-06
09:41]:
> And when you make a call, it will show the controller
also:
> 
> CAPI controller 0x9 {
>  active     : 0x0001 call descriptors
>  on hold    : 0x0000 call descriptors
>  B-channels : 0x0040 units
> }

ah ok, but i think the hint function from asterisk cannot
handle it or?
I am not sure how it is working with SIP and IAX2 but if use
the hint
configuration in the extensions.conf and execute the
following command
in the asterisk shell I see:
show hints
 -= Registered Asterisk Dial Plan Hints =-
  202                 : IAX2/202              State:Idle
Watchers  1
  201                 : SIP/201               State:InUse
Watchers  1
  200                 : SIP/200              
State:Unavailable Watchers  1
----------------
- 3 hints registered

or
 -= Registered Asterisk Dial Plan Hints =-
  202                 : IAX2/202         State:Ringing
Watchers  1
  201                 : SIP/201          State:InUse
Watchers  1
  200                 : SIP/200          State:Unavailable
Watchers  1
----------------
- 3 hints registered

sry I not an asterisk programmer so I have no idea who SIP
and IAX2 is
doing this, but if show hints display it, my hardphone can
display the
status of the lines via BLF.

It would be really great if you can implement something like
this into
chan_capi.

For the hint configuration it seems, that I need something
like:
CAPI/ISDN1/channel1
CAPI/ISDN2/channel2

or something similar.

If you need more information, a testsystem or anything else
feel free
to contact me (per ICQ too, remember the PCI Fritz card  ).


Best regards,
Matthias

-- 

"Programming today is a race between software
engineers striving to
build bigger and better idiot-proof programs, and the
universe trying to
produce bigger and better idiots. So far, the universe is
winning." --
Rich Cook
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
View status on ISDN card using chan_capi
user name
2006-06-22 09:41:31
Hello,

some off topic, but pretty close 

just curios, you use two HFC-S adapters, one in NT mode to
connect your
phones to, and the second one as "normal" ISDN
adapter to connect to
your real NTBA?

I tried the patch for a while as well, do I need two HFC-S
adapters for
this configuration? I think the patch removes / replaces
some other 
isdn device drivers with? So the combination HFC-S +
FritzPCI is not
possible?

One more question about the NT mode, if I use _ONLY_ phones
or devices
with own power supply I don't need the phantom power of
NTBA, correct?
If I'd like to use a ISDN line with more than 10 meters es
external S0
bus, do I need the power of an NTBA than in any case, or is
this not
possible at all?

Matthias, may I have your ICQ number by pm?

Regards
Oliver

Also schrieb Matthias Fechner am Thu, Jun 22, 2006 at
10:58:43AM +0200:
> * Hans Petter Selasky <hselaskyc2i.net> [22-06-06 09:41]:
> > And when you make a call, it will show the
controller also:
> > 
> > CAPI controller 0x9 {
> >  active     : 0x0001 call descriptors
> >  on hold    : 0x0000 call descriptors
> >  B-channels : 0x0040 units
> > }
> 
> ah ok, but i think the hint function from asterisk
cannot handle it or?
> I am not sure how it is working with SIP and IAX2 but
if use the hint
> configuration in the extensions.conf and execute the
following command
> in the asterisk shell I see:
> show hints
>  -= Registered Asterisk Dial Plan Hints =-
>   202                 : IAX2/202             
State:Idle Watchers  1
>   201                 : SIP/201              
State:InUse Watchers  1
>   200                 : SIP/200              
State:Unavailable Watchers  1
> ----------------
> - 3 hints registered
> 
> or
>  -= Registered Asterisk Dial Plan Hints =-
>   202                 : IAX2/202         State:Ringing
Watchers  1
>   201                 : SIP/201          State:InUse
Watchers  1
>   200                 : SIP/200         
State:Unavailable Watchers  1
> ----------------
> - 3 hints registered
> 
> sry I not an asterisk programmer so I have no idea who
SIP and IAX2 is
> doing this, but if show hints display it, my hardphone
can display the
> status of the lines via BLF.
> 
> It would be really great if you can implement something
like this into
> chan_capi.
> 
> For the hint configuration it seems, that I need
something like:
> CAPI/ISDN1/channel1
> CAPI/ISDN2/channel2
> 
> or something similar.
> 
> If you need more information, a testsystem or anything
else feel free
> to contact me (per ICQ too, remember the PCI Fritz card
 ).

-- 
------------------------------------------------------------
------
   Wie man weiss, ist "Windows" ebenfalls
indianisch und heisst
      ,,Weisser Mann starren durch Glasscheibe auf Sanduhr``
------------------------------------------------------------
------

_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
View status on ISDN card using chan_capi
user name
2006-06-22 10:19:01
Hello Oliver,

* Oliver Schneider <oskobo.de> [22-06-06
11:41]:
> just curios, you use two HFC-S adapters, one in NT mode
to connect your
> phones to, and the second one as "normal"
ISDN adapter to connect to
> your real NTBA?

yes that is correct.
Now i try to get my ISDN-PBX running too.

> I tried the patch for a while as well, do I need two
HFC-S adapters for
> this configuration? I think the patch removes /
replaces some other 
> isdn device drivers with? So the combination HFC-S +
FritzPCI is not
> possible?

we Hans and myself tried the fritz card, but it doesn't
work well,
sound quality is more than bad. I bought my HFC-S cards at
ebay for 3
EUR+shipping, is under 10 EUR.

> One more question about the NT mode, if I use _ONLY_
phones or devices
> with own power supply I don't need the phantom power
of NTBA, correct?

hm, good question. I have a ISDN phone with powersupply, but
I need a
NTBA for Powersupply and I plugged the powersupply to my
external ntba
too.
It seems, that the isdn phone is not powering the bus only
the phone.
But try it, without powersupply i cannot here anything one
the phone
with powersupply everthing works fine.

> If I'd like to use a ISDN line with more than 10
meters es external S0
> bus, do I need the power of an NTBA than in any case,
or is this not
> possible at all?

I should say, easily try it.


Best regards,
Matthias

-- 

"Programming today is a race between software
engineers striving to
build bigger and better idiot-proof programs, and the
universe trying to
produce bigger and better idiots. So far, the universe is
winning." --
Rich Cook
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
View status on ISDN card using chan_capi
user name
2006-06-22 10:12:40
Hello Oliver,

* Oliver Schneider <oskobo.de> [22-06-06
11:41]:
> Matthias, may I have your ICQ number by pm?

2473178

Gruss,
Matthias

-- 

"Programming today is a race between software
engineers striving to
build bigger and better idiot-proof programs, and the
universe trying to
produce bigger and better idiots. So far, the universe is
winning." --
Rich Cook
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd
[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )