[Asterisk-Users] chan_capi capiECT
Alexander Noack
alex at aiesec.wiwi.uni-rostock.de
Tue Jan 20 15:03:42 MST 2004
Hi all,
does anyone have capiECT working? I can't get it to work - please see
my logfiles below.
While using an * CVS version of late September and chan_capi-0.2.5 (I
guess), it worked!!! (I know, never change a running system ...
should've backuped ... etc.)
Here's the setup:
NT----AgfeoISDNPBX----AgfeoISDNPBX----AnalogPhones
in between the two PBX I attached my * server with a FritzPCI card to
the S0-bus.
I have some Homeautomation on the server and * is supposed to route
the calls depending on certain conditions.
Switching an incoming call using * "Dial"-Feature would block the two
internal B-channels, that's why I'd like to use capiECT.
What's not working:
When I dial from the outside the call is parked and the transfer to
the internal PBX is initiated ... yet nothing happens :(
(The PBXes are setup correctly, routing the call directly to the
internal PBX works.)
Thanks in advance!
Regards,
Alex
####
#### System
####
Asterisk CVS as of January 20
chan_capi-0.3.0
AVM-Capi ver3.17-02(49.18)
####
#### Here's part of my extensions.conf:
####
[remote]
exten => s,1,Wait(1)
exten => s,2,Answer
exten => s,3,Wait(1)
exten => s,4,capiHOLD()
exten => s,5,capiECT(30:31)
####
#### Here's what "capi debug" on the CLI returns:
####
*CLI> capi debug
CAPI Debugging Enabled
*CLI> Jan 20 10:06:31 NOTICE[2051]: chan_capi.c:1870 capi_handle_msg:
CONNECT_IND ID=004 #0x0314 LEN=0044
Controller/PLCI/NCCI = 0x101
CIPValue = 0x10
C30dPartyNumber = <81>30
CallingPartyNumber = A<80>01722950xxx
C30dPartySubaddress = default
CallingPartySubaddress = default
BC = <80 90 a3>
LLC = default
HLC = <91 81>
AdditionalInfo = default
== CONNECT_IND
(PLCI=0x101,DID=30,CID=01722950xxx,CIP=0x10,CONTROLLER=0x1)
-- Executing Wait("CAPI[contr1/30]/0", "1") in new stack
-- started pbx on channel!
-- INFO_IND ID=004 #0x0315 LEN=0018
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x70
InfoElement = <81>30
-- INFO_IND ID=004 #0x0316 LEN=0016
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x18
InfoElement = <89>
-- ALERT_CONF ID=004 #0x0314 LEN=0014
Controller/PLCI/NCCI = 0x101
Info = 0x0
-- Executing Answer("CAPI[contr1/30]/0", "") in new stack
-- CAPI Answering for MSN 30
-- Executing Wait("CAPI[contr1/30]/0", "1") in new stack
-- CONNECT_ACTIVE_IND ID=004 #0x031b LEN=0015
Controller/PLCI/NCCI = 0x101
ConnectedNumber = default
ConnectedSubaddress = default
LLC = default
-- CONNECT_B3_IND ID=004 #0x031c LEN=0013
Controller/PLCI/NCCI = 0x10101
NCPI = default
-- CONNECT_B3_ACTIVE_IND ID=004 #0x031d LEN=0013
Controller/PLCI/NCCI = 0x10101
NCPI = default
-- Executing capiHOLD("CAPI[contr1/30]/0", "") in new stack
-- FACILITY_CONF ID=004 #0x0004 LEN=0022
Controller/PLCI/NCCI = 0x101
Info = 0x0
FacilitySelector = 0x3
FacilityConfirmationParameter = <02 00 02 00 00>
Jan 20 10:06:33 NOTICE[8201]: app_capiHOLD.c:73 capiHOLD_exec: sent
FACILITY_REQ PLCI = 0x101
-- FACILITY_IND ID=004 #0x0348 LEN=0020
Controller/PLCI/NCCI = 0x101
FacilitySelector = 0x3
FacilityIndicationParameter = <02 00 02 00 00>
Jan 20 10:06:34 NOTICE[2051]: chan_capi.c:1501 pipe_msg: PLCI=0x101
put onhold
== DISCONNECT_B3_IND NCCI=0x10101
Jan 20 10:06:34 NOTICE[8201]: app_capiHOLD.c:84 capiHOLD_exec: PLCI =
0x101 is on hold now
-- Executing capiECT("CAPI[contr1/30]/0", "30:31") in new stack
Jan 20 10:06:34 NOTICE[8201]: app_capiECT.c:65 capiECT_exec: ECT to
30:31
== CAPI Call CAPI[contr1/30]/0 -- CONNECT_CONF ID=004 #0x0005
LEN=0014
Controller/PLCI/NCCI = 0x201
Info = 0x0
== received CONNECT_CONF PLCI = 0x201 INFO = 0
-- INFO_IND ID=004 #0x034a LEN=0015
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x800d
InfoElement = default
-- INFO_IND ID=004 #0x034b LEN=0017
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x1e
InfoElement = <81 88>
-- INFO_IND ID=004 #0x034c LEN=0016
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x18
InfoElement = <89>
Jan 20 10:06:34 NOTICE[2051]: chan_capi.c:1870 capi_handle_msg:
CONNECT_IND ID=004 #0x034d LEN=0035
Controller/PLCI/NCCI = 0x301
CIPValue = 0x10
C30dPartyNumber = <81>31
CallingPartyNumber = A<80>30
C30dPartySubaddress = default
CallingPartySubaddress = default
BC = <80 90 a3>
LLC = default
HLC = <91 81>
AdditionalInfo = default
== CONNECT_IND (PLCI=0x301,DID=31,CID=30,CIP=0x10,CONTROLLER=0x1)
Jan 20 10:06:34 ERROR[2051]: chan_capi.c:1987 capi_handle_msg: did
not find device for msn = 31
-- INFO_IND ID=004 #0x034e LEN=0018
Controller/PLCI/NCCI = 0x301
InfoNumber = 0x70
InfoElement = <81>31
Jan 20 10:06:34 ERROR[2051]: chan_capi.c:1155 find_pipe: unable to
find a pipe for PLCI = 0x301 MN = 0x34e
Jan 20 10:06:34 NOTICE[2051]: chan_capi.c:1255 pipe_msg: INFO_IND
ID=004 #0x034e LEN=0018
Controller/PLCI/NCCI = 0x301
InfoNumber = 0x70
InfoElement = <81>31
-- INFO_IND ID=004 #0x034f LEN=0016
Controller/PLCI/NCCI = 0x301
InfoNumber = 0x18
InfoElement = <8a>
Jan 20 10:06:34 ERROR[2051]: chan_capi.c:1155 find_pipe: unable to
find a pipe for PLCI = 0x301 MN = 0x34f
Jan 20 10:06:34 NOTICE[2051]: chan_capi.c:1255 pipe_msg: INFO_IND
ID=004 #0x034f LEN=0016
Controller/PLCI/NCCI = 0x301
InfoNumber = 0x18
InfoElement = <8a>
== DISCONNECT_IND PLCI=0x301 REASON=0
Jan 20 10:06:34 ERROR[2051]: chan_capi.c:1155 find_pipe: unable to
find a pipe for PLCI = 0x301 MN = 0x353
== DISCONNECT_IND PLCI=0x101 REASON=0x3301
== DISCONNECT_IND PLCI=0x201 REASON=0x3301
Jan 20 10:06:35 NOTICE[8201]: app_capiECT.c:150 capiECT_exec: sent
DISCONNECT_REQ PLCI=0x201
== Spawn extension (remote, s, 5) exited non-zero on
'CAPI[contr1/30]/0'
-- CAPI Hangingup
-- DISCONNECT_CONF ID=004 #0x0006 LEN=0014
Controller/PLCI/NCCI = 0x201
Info = 0x2002
Jan 20 10:06:35 NOTICE[2051]: chan_capi.c:1142 find_pipe: PLCI doesnt
match last pipe (PLCI = 0x201)
Jan 20 10:06:35 NOTICE[2051]: chan_capi.c:1255 pipe_msg:
DISCONNECT_CONF ID=004 #0x0006 LEN=0014
Controller/PLCI/NCCI = 0x201
Info = 0x2002
*CLI>
####
#### Finally some output of /var/log/messages
####
Jan 20 10:06:31 server isdnlog: Jan 20 10:06:31 * Call to tei 127
from 01722950xxx on 30 RING (Speech)
Jan 20 10:06:31 server isdnlog: Jan 20 10:06:31 * Call to tei 127
from 01722950xxx on 30 HLC: CCITT, Telefonie
Jan 20 10:06:31 server capifaxrcvd[1062]: Incoming Call from
01722950xxx
Jan 20 10:06:31 server capifaxrcvd[1062]: C30d #: 30
Jan 20 10:06:31 server capifaxrcvd[1062]: Call from 01722950xxx
ignored
Jan 20 10:06:31 server kernel: capidrv-1: incoming call
01722950xxx,1,1,30
Jan 20 10:06:31 server kernel: capidrv-1: patching si2=1 to 0 for
VBOX
Jan 20 10:06:31 server kernel: isdn_net: call from 01722950xxx,1,0 ->
30
Jan 20 10:06:31 server kernel: isdn_net: call from 01722950xxx -> 0
30 ignored
Jan 20 10:06:31 server kernel: isdn_tty: call from 01722950xxx -> 30
ignored
Jan 20 10:06:31 server kernel: capidrv-1: incoming call
01722950xxx,1,0,30 ignored
Jan 20 10:06:32 server isdnlog: Jan 20 10:06:32 Call to tei 127 from
01722950xxx on 30 COLP 30
Jan 20 10:06:32 server isdnlog: Jan 20 10:06:32 Call to tei 64 from
01722950xxx on 30 CONNECT (Speech)
Jan 20 10:06:33 server kernel: kcapi: appl 4 ncci 0x10101 up
Jan 20 10:06:34 server isdnlog: Jan 20 10:06:34 * Call to tei 64 from
01722950xxx on 30 MAKEL
Jan 20 10:06:34 server kernel: kcapi: appl 4 ncci 0x10101 down
Jan 20 10:06:34 server isdnlog: Jan 20 10:06:34 * tei 64 calling 31
with 30 RING (Speech)
Jan 20 10:06:34 server isdnlog: Jan 20 10:06:34 * tei 64 calling 31
with 30 HLC: CCITT, Telefonie
Jan 20 10:06:34 server isdnlog: Jan 20 10:06:34 * Call to tei 127
from 30 on 31 RING (Speech)
Jan 20 10:06:34 server isdnlog: Jan 20 10:06:34 * Call to tei 127
from 30 on 31 HLC: CCITT, Telefonie
Jan 20 10:06:34 server capifaxrcvd[1062]: Incoming Call from 30
Jan 20 10:06:34 server capifaxrcvd[1062]: C30d #: 31
Jan 20 10:06:34 server capifaxrcvd[1062]: Call from 30 ignored
Jan 20 10:06:34 server kernel: capidrv-1: incoming call 30,1,1,31
Jan 20 10:06:34 server kernel: capidrv-1: patching si2=1 to 0 for
VBOX
Jan 20 10:06:34 server kernel: isdn_net: call from 30,1,0 -> 31
Jan 20 10:06:34 server kernel: isdn_net: call from 30 -> 0 31 ignored
Jan 20 10:06:34 server kernel: isdn_tty: call from 30 -> 31 ignored
Jan 20 10:06:34 server kernel: capidrv-1: incoming call 30,1,0,31
ignored
Jan 20 10:06:34 server isdnlog: Jan 20 10:06:34 * Call to tei 64 from
30 on 31 HANGUP
- Alexander Noack
- Vitus-Bering-Str. 3
- 18106 Rostock
- Germany
-
-Tel: +49 (381) 12839893
-Fax: +49 (381) 12839901
-Web: www.gaussdivision.de
More information about the asterisk-users
mailing list