Asterisk-1.2 und Chan_capi-0.6.1 - Keine Eingehenden Anrufe

Tucca

Neuer User
Mitglied seit
14 Jul 2004
Beiträge
174
Punkte für Reaktionen
0
Punkte
0
Hallo,

ich habe gerade mein * von 1.0.9 auf 1.2.0 und chan_capi von 0.5.4 auf 0.6.1 upgedatet.

Asterisk läuft auch soweit. Wenn ich über Capi raus will ist das ok solange kein ankommender Anruf eingeht (per Capi).
Dann ist garnix mehr ...

Wenn ich einen reload mache, gehen die ausgehenden Gespräche wieder!

Hat jemand 1.2 und chan_capi 0.6.1 am laufen?


Edit (20.11.05 - 11:38 ):
Code:
    -- Executing Dial("IAX2/master-1", "CAPI/contr1/14/b||tT") in new stack
    -- Called contr1/14/b
Nov 20 12:35:55 WARNING[8301]: chan_capi.c:3334 show_capi_conf_error: ISDN1: conf_error 0x2003 PLCI=0x1 Command=CONNECT_CONF,0x8483
    -- CAPI/ISDN1/14-c is busy

Edit:
Compilieren lässt sich chan_capi (Version 0.5.4 und 0.6) auch nicht mehr.

Fehler 0.5.4:
Code:
linux:/software/chan_capi-0.5.4 # make
./create_config.sh "/usr/include"
Checking Asterisk version...
 * found 'struct ast_channel_tech'
 * ast_dsp_process() without 'needlock'
 * found 'struct ast_callerid'
 * found 'struct timeval delivery'
 * found 'transfercapability'
 * found 'ast_config_load'
config.h complete.
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o chan_capi.o chan_capi.c
chan_capi.c: In function `capi_handle_connect_indication':
chan_capi.c:2385: warning: implicit declaration of function `use_ast_mutex_init_instead_of_pthread_mutex_init'
chan_capi.c: At top level:
chan_capi.c:3019: warning: initialization from incompatible pointer type
gcc -shared -Xlinker -x -o chan_capi.so chan_capi.o -lcapi20
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o app_capiCD.o app_capiCD.c
In file included from app_capiCD.c:23:
/usr/include/asterisk/file.h:27:2: #error You must include stdio.h before file.h!
In file included from app_capiCD.c:23:
/usr/include/asterisk/file.h:56: error: syntax error before '*' token
/usr/include/asterisk/file.h:57: error: syntax error before '*' token
In file included from app_capiCD.c:39:
chan_capi_pvt.h:192: error: syntax error before "FILE"
chan_capi_pvt.h:192: warning: no semicolon at end of struct or union
chan_capi_pvt.h:227: error: syntax error before '}' token
app_capiCD.c: In function `capiCD_exec':
app_capiCD.c:71: error: dereferencing pointer to incomplete type
app_capiCD.c:72: error: dereferencing pointer to incomplete type
app_capiCD.c:79: error: dereferencing pointer to incomplete type
app_capiCD.c:85: error: dereferencing pointer to incomplete type
app_capiCD.c:141: error: dereferencing pointer to incomplete type
app_capiCD.c:142: error: dereferencing pointer to incomplete type
app_capiCD.c:153: error: dereferencing pointer to incomplete type
make: *** [app_capiCD.o] Error 1

Fehler 0.6:
Code:
linux:/home/marco/chan_capi-cm-0.6 # make
./create_config.sh "/usr/include"
Checking Asterisk version...
 * found 'struct ast_channel_tech'
 * found 'ast_bridged_channel'
 * found 'ast_bridge_result'
 * ast_dsp_process() without 'needlock'
 * found 'struct ast_callerid'
 * found 'struct timeval delivery'
 * found 'transfercapability'
 * found 'ast_config_load'
 * found 'AST_CONTROL_HOLD'
 * found 'struct ast_custom_function'
config.h complete.
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o chan_capi.o chan_capi.c
chan_capi.c: In function `start_pbx_on_match':
chan_capi.c:2023: error: `CAPI_ISDN_STATE_PBX' undeclared (first use in this function)
chan_capi.c:2023: error: (Each undeclared identifier is reported only once
chan_capi.c:2023: error: for each function it appears in.)
chan_capi.c: In function `mkif':
chan_capi.c:4069: warning: implicit declaration of function `use_ast_mutex_init_instead_of_pthread_mutex_init'
chan_capi.c: At top level:
chan_capi.c:4336: warning: initialization from incompatible pointer type
make: *** [chan_capi.o] Error 1

Eine Warnung () bringt chan_capi-cm_0.6.1 auch lässt sich dann aber doch compilieren ! :)

Code:
linux:/software/chan_capi-cm-0.6.1 # make
./create_config.sh "/usr/include"
Checking Asterisk version...
 * found 'struct ast_channel_tech'
 * found 'ast_bridged_channel'
 * found 'ast_bridge_result'
 * ast_dsp_process() without 'needlock'
 * found 'struct ast_callerid'
 * found 'struct timeval delivery'
 * found 'transfercapability'
 * found 'ast_config_load'
 * found 'AST_CONTROL_HOLD'
 * found 'struct ast_custom_function'
config.h complete.
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o chan_capi.o chan_capi.c
chan_capi.c:4416: warning: initialization from incompatible pointer type
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o c20msg.o c20msg.c
gcc -shared -Xlinker -x -o chan_capi.so chan_capi.o c20msg.o -lcapi20

Danke,
Tucca

PS: Verwende SuSE 9.3
 
Bin vor kurzem vom Junghanns Capi 0.3.5 auf capi_cm 0.6.1 gewechselt. Ohne Probleme. Ich mußte nur die geänderte Syntax der capi.conf beachten.

Sieht auch bei dir nach einem Konfigurationsfehler aus.
Nov 20 12:35:55 WARNING[8301]: chan_capi.c:3334 show_capi_conf_error: ISDN1: conf_error 0x2003 PLCI=0x1 Command=CONNECT_CONF,0x8483

Mal zum Vergleich mein aktuelle capi.conf. Habe nur den Kontext anpassen müssen. Ansonsten ist das die Beispiel-Konfig.
Code:
;
; CAPI config
;
;

; general section

[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

; interface sections ...

[ISDN1]          ;this example interface gets name 'ISDN1' and may be any
                 ;name not starting with 'g' or 'contr'.
;ntmode=yes      ;if isdn card operates in nt mode, set this to yes
isdnmode=msn     ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
                 ;when using NT-mode, 'DID' should be set in any case
incomingmsn=*    ;allow incoming calls to this list of MSNs/DIDs, * = any
;defaultcid=123  ;set a default caller id to that interface for dial-out,
                 ;this caller id will be used when dial option 'd' is set.
;controller=0    ;ISDN4BSD default
;controller=7    ;ISDN4BSD USB default
controller=1     ;capi controller number to use
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=extern   ;context for incoming calls
holdtype=hold    ;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   ;DID: immediate start of pbx with extension 's' if no digits were
                 ;     received on incoming call (no destination number yet)
                 ;MSN: start pbx on CONNECT_IND and don't wait for SETUP/SENDING-COMPLETE.
                 ;     info like REDIRECTINGNUMBER may be lost, but this is necessary for
                 ;     drivers/pbx/telco which does not send SETUP or SENDING-COMPLETE.
;echosquelch=1   ;_VERY_PRIMITIVE_ echo suppression
;echocancel=yes  ;EICON DIVA SERVER (CAPI) echo cancelation
                 ;(possible values: 'no', 'yes', 'force', 'g164', 'g165')
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
devices=2        ;number of concurrent calls on this controller
                 ;(2 makes sense for single BRI, 30 for PRI)

Ich probier eventuell mal die 1.2 aus und schau mal wie es dann aussieht.
 
In der neuen Asterisk 1.2 wurde das Interface etwas modifiziert, so dass aeltere chan_capi-cm nicht mehr compilierbar sind. Auch die Warnung mit chan_capi-cm-0.6.1 kommt daher. Im CVS auf sourceforge sollte das aber gefixt sein. Koennte das jemand testen? Dann kann ich daraus die version 0.6.2 machen...

Armin
 
Also compilieren lässt sich die CVS-Version ohne Probleme

bei ausgehenden Calls bekomme ich :
Code:
    -- Executing Dial("SIP/90-ea8d", "CAPI/contr1/014/b||tT") in new stack
       > data = contr1/014/b
       > capi request controller = 1
  == ISDN1: Call CAPI/ISDN1/014-3 with B3  (pres=0x00, ton=0x00)
    -- Called contr1/014/b
    -- ISDN1: received CONNECT_CONF PLCI = 0x201
  == ISDN1: Interface cleanup PLCI=0x201
  == No one is available to answer at this time (1:0/0/0)
  == Auto fallthrough, channel 'SIP/90-ea8d' status is 'NOANSWER'

Eingehend passiert nichts ! :(

capi.conf
Code:
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

; interface sections ...

[ISDN1]          ;this example interface gets name 'ISDN1' and may be any
                 ;name not starting with 'g' or 'contr'.
;ntmode=yes      ;if isdn card operates in nt mode, set this to yes
isdnmode=msn     ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
                 ;when using NT-mode, 'DID' should be set in any case
incomingmsn=*    ;allow incoming calls to this list of MSNs/DIDs, * = any
;defaultcid=123  ;set a default caller id to that interface for dial-out,
                 ;this caller id will be used when dial option 'd' is set.
;controller=0    ;ISDN4BSD default
;controller=7    ;ISDN4BSD USB default
controller=1     ;capi controller number to use
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-in  ;context for incoming calls
holdtype=hold    ;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   ;DID: immediate start of pbx with extension 's' if no digits were
                 ;     received on incoming call (no destination number yet)
                 ;MSN: start pbx on CONNECT_IND and don't wait for SETUP/SENDING-COMPLETE.
                 ;     info like REDIRECTINGNUMBER may be lost, but this is necessary for
                 ;     drivers/pbx/telco which does not send SETUP or SENDING-COMPLETE.
;echosquelch=1   ;_VERY_PRIMITIVE_ echo suppression
;echocancel=yes  ;EICON DIVA SERVER (CAPI) echo cancelation
                 ;(possible values: 'no', 'yes', 'force', 'g164', 'g165')
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
devices=2        ;number of concurrent calls on this controller
                 ;(2 makes sense for single BRI, 30 for PRI)

extensions.conf
Code:
[general]
static=yes
writeprotect=no
autofallthrough=yes
;priorityjumping=no

[capi-in]
exten => s,1,SetCallerID(${CALLERID})
exten => s,2,Dial(IAX2/master:[email protected]/97)

[capi-out]
exten => _X.,1,Dial(CAPI/contr1/${EXTEN}/b,,tT)
exten => _X.,102,BUSY

[duo]
exten => 90,1,Dial(SIP/90,,tTr)
exten => _0X.,1,Goto(capi-out,${EXTEN},1)

Mit *-1.0.9 und chan_capi-cm 0.5.4 hat alles prima funktioniert.
Angeschlossen ist das Kabel auch...
 
Wie sieht denn ein log verbose 5 mit 'capi debug' bei einem eingehenden Anruf aus?

Armin
 
Hallo Armin,

als Hinweis vorweg: Diese ISDN-Karte läuft noch im 1tr6-Modus. Den brauche ich aber noch ein paar Monate.

Die angerufene Durchwahl ist: 19
EAZ 1

Log (Level 5):
Code:
INFO_IND ID=001 #0x0010 LEN=0017
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x70
  InfoElement                     = <80>2

INFO_RESP ID=001 #0x0010 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CALLED PARTY NUMBER
       > ISDN1-pseudo-D: INFO_IND DID digits not used in this state.
INFO_IND ID=001 #0x0011 LEN=0016
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x18
  InfoElement                     = <89>

INFO_RESP ID=001 #0x0011 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CHANNEL IDENTIFICATION 89
INFO_IND ID=001 #0x0012 LEN=0017
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x70
  InfoElement                     = <80>2

INFO_RESP ID=001 #0x0012 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CALLED PARTY NUMBER
       > ISDN1-pseudo-D: INFO_IND DID digits not used in this state.
INFO_IND ID=001 #0x0013 LEN=0016
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x18
  InfoElement                     = <89>

INFO_RESP ID=001 #0x0013 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CHANNEL IDENTIFICATION 89
INFO_IND ID=001 #0x0014 LEN=0017
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x70
  InfoElement                     = <80>2

INFO_RESP ID=001 #0x0014 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CALLED PARTY NUMBER
       > ISDN1-pseudo-D: INFO_IND DID digits not used in this state.
INFO_IND ID=001 #0x0015 LEN=0016
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x18
  InfoElement                     = <89>

INFO_RESP ID=001 #0x0015 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CHANNEL IDENTIFICATION 89

Log (Level 5 - Durchwahl: 26 (EAZ 6) - selbe ISDN-Karte:
Code:
INFO_IND ID=001 #0x0016 LEN=0017
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x70
  InfoElement                     = <80>6

INFO_RESP ID=001 #0x0016 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CALLED PARTY NUMBER
       > ISDN1-pseudo-D: INFO_IND DID digits not used in this state.
INFO_IND ID=001 #0x0017 LEN=0016
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x18
  InfoElement                     = <89>

INFO_RESP ID=001 #0x0017 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CHANNEL IDENTIFICATION 89
INFO_IND ID=001 #0x0018 LEN=0017
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x70
  InfoElement                     = <80>6

INFO_RESP ID=001 #0x0018 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CALLED PARTY NUMBER
       > ISDN1-pseudo-D: INFO_IND DID digits not used in this state.
INFO_IND ID=001 #0x0019 LEN=0016
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x18
  InfoElement                     = <89>

INFO_RESP ID=001 #0x0019 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CHANNEL IDENTIFICATION 89
INFO_IND ID=001 #0x001a LEN=0017
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x70
  InfoElement                     = <80>6

INFO_RESP ID=001 #0x001a LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CALLED PARTY NUMBER
       > ISDN1-pseudo-D: INFO_IND DID digits not used in this state.
INFO_IND ID=001 #0x001b LEN=0016
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x18
  InfoElement                     = <89>

INFO_RESP ID=001 #0x001b LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1-pseudo-D: info element CHANNEL IDENTIFICATION 89


Ausgehendes Gespräch
Code:
       > priority = mine
    -- Executing Dial("IAX2/master-1", "CAPI/contr1/14/b||tT") in new stack
       > data = contr1/14/b
       > parsed dialstring: 'contr1' '' '14' 'b'
       > capi request controller = 1
       > parsed dialstring: 'contr1' '' '14' 'b'
  == ISDN1: Call CAPI/ISDN1/14-4 with B3  (pres=0x00, ton=0x00)
CONNECT_REQ ID=001 #0x0005 LEN=0056
  Controller/PLCI/NCCI            = 0x1
  CIPValue                        = 0x1
  CalledPartyNumber               = <80>14
  CallingPartyNumber              = <00 80>1234567
  CalledPartySubaddress           = default
  CallingPartySubaddress          = default
  BProtocol
   B1protocol                     = 0x1
   B2protocol                     = 0x1
   B3protocol                     = 0x0
   B1configuration                = default
   B2configuration                = default
   B3configuration                = default
   GlobalConfiguration            = default
  BC                              = default
  LLC                             = default
  HLC                             = default
  AdditionalInfo
   BChannelinformation            = <00 00>
   Keypadfacility                 = default
   Useruserdata                   = default
   Facilitydataarray              = default
   SendingComplete                = default

    -- Called contr1/14/b
CONNECT_CONF ID=001 #0x0005 LEN=0014
  Controller/PLCI/NCCI            = 0x201
  Info                            = 0x0

    -- ISDN1: received CONNECT_CONF PLCI = 0x201
INFO_IND ID=001 #0x001c LEN=0015
  Controller/PLCI/NCCI            = 0x201
  InfoNumber                      = 0x800d
  InfoElement                     = default

INFO_RESP ID=001 #0x001c LEN=0012
  Controller/PLCI/NCCI            = 0x201

    -- ISDN1: info element SETUP ACK
INFO_IND ID=001 #0x001d LEN=0016
  Controller/PLCI/NCCI            = 0x201
  InfoNumber                      = 0x18
  InfoElement                     = <89>

INFO_RESP ID=001 #0x001d LEN=0012
  Controller/PLCI/NCCI            = 0x201

    -- ISDN1: info element CHANNEL IDENTIFICATION 89
DISCONNECT_IND ID=001 #0x001e LEN=0014
  Controller/PLCI/NCCI            = 0x201
  Reason                          = 0x0

DISCONNECT_RESP ID=001 #0x001e LEN=0012
  Controller/PLCI/NCCI            = 0x201

  == ISDN1: CAPI Hangingup
  == ISDN1: Interface cleanup PLCI=0x201
  == No one is available to answer at this time (1:0/0/0)

Evtl. kann ich es morgen auch mal mit Euro-ISDN testen.

Gruß und Danke für die Mühe,
Marco :)
 
mit Euro-ISDN funktioniert die chan_capi.

Leider brauche ich wie gesagt noch das alte ISDN-Protokoll 1TR6.
 
Frage zu CLIR:
Bei mir zeigt er IMMER die Rufnummer des Anrufenden an! Dies will ich aber nicht - von Call zu Call verbieten.

Capi debug:
Code:
    -- Executing Goto("SIP/90-1d82", "capi-out|01791234567|1") in new stack
    -- Goto (capi-out,01791234567,1)
    -- Executing SetCallerPres("SIP/90-1d82", "prohib_not_screened") in new stack
    -- Executing Dial("SIP/90-1d82", "CAPI/contr1/01791234567||tT") in new stack
       > data = contr1/01791234567
       > parsed dialstring: 'contr1' '' '01791234567' ''
       > capi request controller = 1
       > parsed dialstring: 'contr1' '' '01791234567' ''
  == ISDN1: Call CAPI/ISDN1/01791234567-c   (pres=0x20, ton=0x00)
CONNECT_REQ ID=001 #0x0030 LEN=0056
  Controller/PLCI/NCCI            = 0x1
  CIPValue                        = 0x1
  CalledPartyNumber               = <80>01791234567
  CallingPartyNumber              = <00 a0>90
  CalledPartySubaddress           = default
  CallingPartySubaddress          = default
  BProtocol
   B1protocol                     = 0x1
   B2protocol                     = 0x1
   B3protocol                     = 0x0
   B1configuration                = default
   B2configuration                = default
   B3configuration                = default
   GlobalConfiguration            = default
  BC                              = default
  LLC                             = default
  HLC                             = default
  AdditionalInfo
   BChannelinformation            = <00 00>
   Keypadfacility                 = default
   Useruserdata                   = default
   Facilitydataarray              = default
   SendingComplete                = default

    -- Called contr1/01791234567
CONNECT_CONF ID=001 #0x0030 LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Info                            = 0x0

    -- ISDN1: received CONNECT_CONF PLCI = 0x101
INFO_IND ID=001 #0x0532 LEN=0015
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x800d
  InfoElement                     = default

INFO_RESP ID=001 #0x0532 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1: info element SETUP ACK
INFO_IND ID=001 #0x0533 LEN=0016
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x18
  InfoElement                     = <89>

INFO_RESP ID=001 #0x0533 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1: info element CHANNEL IDENTIFICATION 89
INFO_IND ID=001 #0x0534 LEN=0015
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x8001
  InfoElement                     = default

INFO_RESP ID=001 #0x0534 LEN=0012
  Controller/PLCI/NCCI            = 0x101

    -- ISDN1: info element ALERTING
    -- CAPI/ISDN1/01795340899-c is ringing
  == ISDN1: CAPI Hangingup
    -- ISDN1: activehangingup (cause=0)
DISCONNECT_REQ ID=001 #0x0031 LEN=0018
  Controller/PLCI/NCCI            = 0x101
  AdditionalInfo
   BChannelinformation            = default
   Keypadfacility                 = default
   Useruserdata                   = default
   Facilitydataarray              = default
   SendingComplete                = default

  == Spawn extension (capi-out, 01791234567, 2) exited non-zero on 'SIP/90-1d82'
DISCONNECT_CONF ID=001 #0x0031 LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Info                            = 0x0

DISCONNECT_IND ID=001 #0x0535 LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Reason                          = 0x3400

DISCONNECT_RESP ID=001 #0x0535 LEN=0012
  Controller/PLCI/NCCI            = 0x101

  == ISDN1: Interface cleanup PLCI=0x101

capi.conf
Code:
;
; CAPI config
;
;

; general section

[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

; interface sections ...

[ISDN1]          ;this example interface gets name 'ISDN1' and may be any
                 ;name not starting with 'g' or 'contr'.
;ntmode=yes      ;if isdn card operates in nt mode, set this to yes
isdnmode=msn     ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
                 ;when using NT-mode, 'DID' should be set in any case
incomingmsn=*    ;allow incoming calls to this list of MSNs/DIDs, * = any
;defaultcid=123  ;set a default caller id to that interface for dial-out,
                 ;this caller id will be used when dial option 'd' is set.
;controller=0    ;ISDN4BSD default
;controller=7    ;ISDN4BSD USB default
controller=1     ;capi controller number to use
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-in  ;context for incoming calls
holdtype=hold    ;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   ;DID: immediate start of pbx with extension 's' if no digits were
                 ;     received on incoming call (no destination number yet)
                 ;MSN: start pbx on CONNECT_IND and don't wait for SETUP/SENDING-COMPLETE.
                 ;     info like REDIRECTINGNUMBER may be lost, but this is necessary for
                 ;     drivers/pbx/telco which does not send SETUP or SENDING-COMPLETE.
;echosquelch=1   ;_VERY_PRIMITIVE_ echo suppression
;echocancel=yes  ;EICON DIVA SERVER (CAPI) echo cancelation
                 ;(possible values: 'no', 'yes', 'force', 'g164', 'g165')
                                                                                                            1,1           Top
;echocancel=yes  ;EICON DIVA SERVER (CAPI) echo cancelation
                 ;(possible values: 'no', 'yes', 'force', 'g164', 'g165')
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
devices=2        ;number of concurrent calls on this controller
                 ;(2 makes sense for single BRI, 30 for PRI)

extensions.conf
Code:
exten => _X.,1,SetCallerPres(prohib_not_screened)
exten => _X.,2,Dial(CAPI/contr1/${EXTEN},,tT)

Tucca
 
Tucca schrieb:
mit Euro-ISDN funktioniert die chan_capi.

Leider brauche ich wie gesagt noch das alte ISDN-Protokoll 1TR6.

Dann solltest Du Dir überlegen, solange bei 1.0.9 zu bleiben wenn es damit lief.

jo
 
hm, ich kann es mit meinem *-1.0.9 versuchen. Dort habe ich es aber noch nicht benötigt.
Der *-1.2 hängt an einem anderen Anschluss - an dem ich dies benötige.
 
Ok, ich hatte verstanden, dass es vorher lief. Dann ist es wohl doch ein grundsätzliches Problem.

jo
 
Um es korrekt zu formulieren:
Die chan_capi 0.5.4 mit *-1.0.9 läuft auch mit 1tr6. Hier habe ich aber weder mit 1tr6 noch mit Euro-ISDN das CLIR getestet - nicht nötig.

Die chan_capi 0.6.2 (CVS) läuft auch mit *-1.2. Hier allerdings kein 1tr6 mehr. Bei diesem Gerät wollte ich auch die CLIR-Funktion einsetzen.

Ansonsten läuft *-1.2 und chan_capi 0.6.2 problemlos bei mir (mit SuSE 9.3 und AVM B1).

@Rollo: Danke für deine Hilfe
 
Das CLIR wird korrekt gesetzt ueber CAPI. Aber eventuell ist das mit 1TR6 gar nicht unterstuetzt?
Der Ankommende Ruf ueber 1TR6 wird gar nicht richtig signalisiert, es muss mindestens mal ein CONNECT_IND auftauchen (oder hast du aus dem Log etwas vorenthalten?).

Armin
 
1TR6 kann ich erst morgen wieder testen.
 
habe das selbe problem!

hallo zusammen,
ich habe das selbe problem.
ich habe mein * an einer philips TK-Anlage "1700 nebenstellen" angebunden die leider 1tr6 spricht!
telefonate nach außen funktionieren, aber leider kann ich keine ankommenden rufe entgegen nehmen.

schade, da migriert man auf eine höhere * version und schon funktioniert was nicht.
das ist echt schade an so modularen projekten:)
aber wie man so schön sagt: einen geschenkten gaul schaut man nicht ins maul!
 
wie ist denn deine config? welche versionen verwendest du?
Etwas mehr details solltest Du schon geben.

Armin
 
Teilweise keine eingehenden Anrufe

Hallo,

bei mir ist ein ähnliches Problem, nur das es noch etwas myteriöser ist.
Ich kann über capi Problemlos raustelefonieren, bei eingehenden Anrufen habe ich das Problem, das sie von manchen Geräten funtionieren und von anderen nicht.
Wenn ich mich von meinem eplus Mobiltelefon anrufe, dann funktioniert das, wenn ich allerdings von O2 oder Arcor angerufen werde, dann passiert garnichts. Auch auf der Asterisk Konsole wird nichts vermerkt.

Da ich selber aber kein Telefon habe mit dem ich mich nicht anrufen kann, kann ich das Problem nur schwer weiter eingrenzen. Meine capi.conf ist die Beispieldatei nur mit einem veränderten Eingangskontext.
 
@jkon: Hast du immediate=yes ? Das koennte helfen.

Armin
 
Hi,

ich habe leider meine capi.conf verloren :(
Ich kann Dir aber sagen, dass ich den immediate Wert erst auf dem default Wert hatte. Damit konnte ich nicht rauswählen. Als ich den immediate Wert auf den anderen (war das jetzt true oder false?) gestellt hatte, dann konnte ich zumindest raustelefonieren.

jkon
 
Das macht aber irgendwie keinen Sinn, denn bei chan-capi ist immedate= nur bei ankommenden Verbindungen relevant.

Armin
 

Neueste Beiträge

Statistik des Forums

Themen
244,859
Beiträge
2,219,659
Mitglieder
371,572
Neuestes Mitglied
#Kuddel#
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.