[Asterisk-bsd] Fwd: Mysterious Problems with CAPI on FreeBSD, no incoming calls, error 0x2003

Stefan Pichler listen at edv-pichler.info
Thu Aug 9 14:42:59 CDT 2007


Okay, i'm very sorry, but here is the Problem-resolve:

controller=1     ;ISDN4BSD default (first controller)

The first Controller has to be "0". Copy&Paste-Error.

I'm very sorry to desturbed you.

Have a nice day
Stefan

-------- Original Message --------
Subject: [Asterisk-bsd] Mysterious Problems with CAPI on FreeBSD,no incoming calls, error 0x2003
Date: Thu, 9 Aug 2007 20:24:40 +0200
From: Stefan Pichler <listen at edv-pichler.info>
To: asterisk-bsd at lists.digium.com

Dear List,

first: Hello. I'm new here, thank you for reading my Mail.

I experience mysterious Problems with my CAPI interface. A friend helped to
setup the FreeBSD and Asterisk, but now we are on a Point it seems we need help
from "outside".

The border-Parameters are:
PC: Via-ITX - Board with 1,2GHz VIA-CPU and 512Mb Ram.
OS: FreeBSD 6.2-stable fresh installed and updated
CAPI 2.0 / ISDN4BSD from here: svn://svn.turbocat.net/i4b
For I4B changed Kernel-Config
One ISDN-Kard (HFC) in PCI.
Asterisk is connected directly to S0-ISDN (without internal PBX).

The Error:
Incoming Calls was signalled on the directly connected ISDN-Phone, but Asterisk
never shows anything in Log - with "debug" and "verbose" at 5.
Outgoing Calls in Asterisk gives me the following Error-Message:
--
    -- Executing [012345 at default:1] Set("SIP/20-0889c000",
"CALLERID(all)=57567") in new stack
    -- Executing [012345 at default:2] Dial("SIP/20-0889c000",
"CAPI/ISDNTE/57567:12345/b") in new stack
  == chan_capi_call:4593:ENTRY=ISDNTE:PLCI=0x0001:PBX_CHAN=CAPI/ISDNTE/12345:
  ==
    -- Called ISDNTE/57567:12345/b
[Aug  9 20:16:30] WARNING[17160]: chan_capi.c:1056 capi_show_conf_error: CAPI:
conf_error 0x2003 PLCI=0x00000001 Command=CONNECT_CONF,0x8483
       > CAPI INFO 0x2003: Out of PLCIs
    -- No one is available to answer at this time (1:0/0/0)
    -- Executing [012345 at default:3] Hangup("SIP/20-0889c000", "") in new stack
  == Spawn extension (default, 012345, 3) exited non-zero on 'SIP/20-0889c000'
       > Out of order update usecount!
--
where (0)12345 is the Number i dialed and 57567 is my own MSN.
The first 0 was cut off by extensions-Config (to simulate an 0 to become a
line)

A Call in Shell of
>capitest -u 0 -o "57567"
was working fine, and all ISDN-Phones are ringing.

Here is my Configuration:
---
/# isdnconfig
controller 0 = {
  Layer 1:
    description : HFC-2BDS0 128K PCI ISDN adapter
    type        : passive ISDN (Basic Rate, 2xB)
    channels    : 0x3
    serial      : 0xabcd
    power_save  : on
    dialtone    : enabled
    attached    : yes
    PH-state    : F3: Deactivated
  Layer 2:
    driver_type : DRVR_D_CHANNEL
}
---
/usr/local/etc/asterisk/capi.conf:
[general]
nationalprefix=0
internationalprefix=00
rxgain=1.0
txgain=1.0
digit_timeout=2

[ISDNTE]         ;this example interface gets name 'ISDN1' and may be any
                 ;name not starting with 'g' or 'contr'.
isdnmode=msn     ;'MSN' (point-to-multipoint)
incomingmsn=*    ;allow incoming calls to this list of MSNs/DIDs, * == any
controller=1     ;ISDN4BSD default (first controller)
group=1          ;dialout group
;prefix=0        ;set a prefix to calling number on incoming calls
softdtmf=on      ;enable/disable software dtmf detection, recommended for AVM
cards
relaxdtmf=on     ;in addition to softdtmf, you can use relaxed dtmf detection
accountcode=     ;Asterisk accountcode to use in CDRs
context=capi-extern ;context for incoming calls
holdtype=local   ;when Asterisk puts the call on hold, ISDN HOLD will be used.
If
                 ;set to 'local' (default value), no hold is done and Asterisk
may
                 ;play MOH.
;immediate=yes   ;immediate start of pbx with extension 's' if no digits were
                 ;received on incoming call (no destination number yet)
echocancel=no    ;disable echo canceller
echosquelch=no   ;primitive echo suppression
;echocancelold=yes;use facility selector 6 instead of correct 8 (necessary for
older eicon drivers)
;echotail=64     ;echo cancel tail setting
;bridge=yes      ;native bridging (CAPI line interconnect) if available
;callgroup=1     ;Asterisk call group
;deflect=1234567 ;deflect incoming calls to 1234567 if all B channels are busy
devices=2        ;number of concurrent calls on this controller
                 ;(2 makes sense for single BRI, 30 for PRI)
---
Changed Kernel Parameters:
# I4B section
#
options IPR_VJ
device "i4bdss1"
device "i4b"
device "i4btrc"
device "i4bctl"
device "i4brbch"
device "i4btel"
device "i4bipr"
device "i4bisppp"
#
device ihfc
device usb
device pcm
#or device sound
#if device pcm does not exist
---

I hope anyone here can help with tipps and tricks to find out my Error!
Thank you very much for reading, and for your friendly Answer.

Stefan

--
Stefan Pichler



_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-bsd
-- 
Stefan Pichler





More information about the Asterisk-BSD mailing list