[Asterisk-Users] CAPI Question

Aldo Bergamini aab.lists at nb-a.com
Wed Jan 5 09:03:24 MST 2005


Dear list,

I am starting to setup an asterisk pbx, using a Fritz ISDN card through
chan_capi (0.3.5). The underlying OS is SUSE 9.2; I installed asterisk
with the RPMs supplied on the DVD.

While I can dial out (I had successful outside calls), through the ISDN
card, so far I could not answer a phone call on the card.

My capi.conf file is quite fantasyless:

;
; CAPI config
;
;
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8

[interfaces]

msn=221591030
incomingmsn=221591030
controller=1
devices=2
softdtmf=1
callgroup=1
context=from-chan_capi
;accountcode=
;echosquelch=1
;echocancel=yes
;echotail=64
;deflect=02-fastweb !!

Now if I try from one SIP extension to call my self (on 0221591030) , I
can obtain the 'ringing' of the office number. But I was not able to see
Asterisk answering the call. There is a second ISDN physical phone
connected, as well as a Zyxel ISDN router (with two analog phones
attached). Everything rings but the internal SIP extension...

After some fiddling I did activate capi debugging; here is what prints
out on the CLI during an attempt:

gamma-stargate*CLI> capi info
Contr1: 2 B channels total, 2 B channels free.
gamma-stargate*CLI> reload
Jan  5 16:52:40 NOTICE[1110690736]: indications.c:397
ast_unregister_indication_country: Removed default indication country 'it'
    -- CONNECT_CONF ID=002 #0x0041 LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Info                            = 0x0

    -- INFO_IND ID=002 #0x17cc LEN=0015
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x800d
  InfoElement                     = default

    -- INFO_IND ID=002 #0x17cd LEN=0016
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x18
  InfoElement                     = <89>

    -- CONNECT_IND ID=002 #0x17ce LEN=0049
  Controller/PLCI/NCCI            = 0x201
  CIPValue                        = 0x10
  CalledPartyNumber               = <a1>221591030
  CallingPartyNumber              = <21 81>221591030
  CalledPartySubaddress           = default
  CallingPartySubaddress          = default
  BC                              = <80 90 a3>
  LLC                             = default
  HLC                             = <91 81>
  AdditionalInfo                  = default

Jan  5 16:52:57 NOTICE[1088080816]: chan_capi.c:1932 capi_handle_msg:
CONNECT_IND ID=002 #0x17ce LEN=0049
  Controller/PLCI/NCCI            = 0x201
  CIPValue                        = 0x10
  CalledPartyNumber               = <a1>221591030
  CallingPartyNumber              = <21 81>221591030
  CalledPartySubaddress           = default
  CallingPartySubaddress          = default
  BC                              = <80 90 a3>
  LLC                             = default
  HLC                             = <91 81>
  AdditionalInfo                  = default

Jan  5 16:52:57 ERROR[1088080816]: chan_capi.c:2051 capi_handle_msg: did
not find device for msn = 221591030
    -- INFO_IND ID=002 #0x17cf LEN=0025
  Controller/PLCI/NCCI            = 0x201
  InfoNumber                      = 0x70
  InfoElement                     = <a1>221591030

Jan  5 16:52:57 ERROR[1088080816]: chan_capi.c:1198 find_pipe: unable to
find a pipe for PLCI = 0x201 MN = 0x17cf
Jan  5 16:52:57 NOTICE[1088080816]: chan_capi.c:1302 pipe_msg: INFO_IND
ID=002 #0x17cf LEN=0025
  Controller/PLCI/NCCI            = 0x201
  InfoNumber                      = 0x70
  InfoElement                     = <a1>221591030
    -- INFO_IND ID=002 #0x17d0 LEN=0016
  Controller/PLCI/NCCI            = 0x201
  InfoNumber                      = 0x18
  InfoElement                     = <8a>

Jan  5 16:52:57 ERROR[1088080816]: chan_capi.c:1198 find_pipe: unable to
find a pipe for PLCI = 0x201 MN = 0x17d0
Jan  5 16:52:57 NOTICE[1088080816]: chan_capi.c:1302 pipe_msg: INFO_IND
ID=002 #0x17d0 LEN=0016
  Controller/PLCI/NCCI            = 0x201
  InfoNumber                      = 0x18
  InfoElement                     = <8a>
    -- DISCONNECT_IND ID=002 #0x17d3 LEN=0014
  Controller/PLCI/NCCI            = 0x201
  Reason                          = 0x0

Jan  5 16:52:57 ERROR[1088080816]: chan_capi.c:1198 find_pipe: unable to
find a pipe for PLCI = 0x201 MN = 0x17d3
    -- INFO_IND ID=002 #0x17d4 LEN=0015
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x8001
  InfoElement                     = default

    -- DISCONNECT_CONF ID=002 #0x0042 LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Info                            = 0x0

    -- DISCONNECT_IND ID=002 #0x17d5 LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Reason                          = 0x3400

gamma-stargate*CLI> 

Unfortunately I do not understand where the problem is.

The context inside extension.conf that I would like to obtain the call is
the following:


; *** INBOUND CONTEXT: DIAL INTERNAL PHONES
[from-chan_capi]

; reach the internal dialplan context!
include => incoming
include => nba_plan


; *** INCOMING CONTEXT: FROM FRITZ! CARD
[incoming]

; context to receive calls from chapi_chan; use NB&A Dial Plan

exten => s,1,Answer()
exten => s,2,Dial(SIP/2000,20)
exten => s,3,Hangup()



Any help appreciated,

thanks,
Aldo







More information about the asterisk-users mailing list