Hallo liebe Asterisk Gemeinde,
eigentlich kann ich meine Probleme in Sachen * selbst lösen, aber jetzt habe ich die Grenze überschritten. Zu viele Schlaganfälle
Zur Sache. Asterisk soll als SMSC für meine lokale TK-Anlage dienen. Es geht mir um das Senden von Statusmeldungen.
Die Konfiguration
- Asterisk 1.6.1.1-rc1
- chan_capi 1.1.3
Asterisk läuft auf einer Suse 11.1 mit einer passiven Fritz Karte am internen S0 einer Agfeo AS40. Als Telefon zum Testen kommt ein Siemens Gigaset SX680 zum Einsatz.
SMSC Nummer ist 46
Gigaset ist 48
Der Versand vom Gigaset zum Asterisk funktioniert. Nur umgekehrt geht es nicht. Asterisk ruft das Gigaset, selbiges klingelt und das wars.
Ich habe mal die beiden LogFiles einer Verbindung angehängt
Asterisk empfängt SMS
Interssant ist nur die Info "Unknown message type 02" ??
Hier der Versand zum Gigaset. Geht nicht
Die Fehlermeldungen sagen mir nun garnichts. Mein Verdacht ist, das entweder die Fritz-Karte nicht brauchbar ist, oder chan_capi.
Wer einer Rat?
eigentlich kann ich meine Probleme in Sachen * selbst lösen, aber jetzt habe ich die Grenze überschritten. Zu viele Schlaganfälle
Zur Sache. Asterisk soll als SMSC für meine lokale TK-Anlage dienen. Es geht mir um das Senden von Statusmeldungen.
Die Konfiguration
- Asterisk 1.6.1.1-rc1
- chan_capi 1.1.3
Asterisk läuft auf einer Suse 11.1 mit einer passiven Fritz Karte am internen S0 einer Agfeo AS40. Als Telefon zum Testen kommt ein Siemens Gigaset SX680 zum Einsatz.
SMSC Nummer ist 46
Gigaset ist 48
Der Versand vom Gigaset zum Asterisk funktioniert. Nur umgekehrt geht es nicht. Asterisk ruft das Gigaset, selbiges klingelt und das wars.
Ich habe mal die beiden LogFiles einer Verbindung angehängt
Asterisk empfängt SMS
Interssant ist nur die Info "Unknown message type 02" ??
Code:
CAPI: ApplId=0x0003 Command=0x02 SubCommand=0x82 MsgNum=0x8a6c NCCI=0x00000101
CONNECT_IND ID=003 #0x8a6c LEN=0035
Controller/PLCI/NCCI = 0x101
CIPValue = 0x10
CalledPartyNumber = <81>46
CallingPartyNumber = A<80>48
CalledPartySubaddress = default
CallingPartySubaddress = default
BC = <80 90 a3>
LLC = default
HLC = <91 81>
AdditionalInfo = default
-- CONNECT_IND (PLCI=0x101,DID=46,CID=48,CIP=0x10,CONTROLLER=0x1)
> AVM1#02: msn='44' DNID='46' MSN
> AVM1#02: msn='45' DNID='46' MSN
> AVM1#02: msn='46' DNID='46' MSN
== AVM1#02: setting format alaw - 0x8 (alaw)
== AVM1#02: Incoming call '48' -> '46'
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8a6d NCCI=0x00000101
INFO_IND ID=003 #0x8a6d LEN=0018
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x70
InfoElement = <81>46
INFO_RESP ID=003 #0x8a6d LEN=0012
Controller/PLCI/NCCI = 0x101
-- AVM1#02: info element CALLED PARTY NUMBER
> AVM1#02: INFO_IND DID digits not used in this state.
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8a6e NCCI=0x00000101
INFO_IND ID=003 #0x8a6e LEN=0016
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x18
InfoElement = <8a>
INFO_RESP ID=003 #0x8a6e LEN=0012
Controller/PLCI/NCCI = 0x101
-- AVM1#02: info element CHANNEL IDENTIFICATION 8a
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8a6f NCCI=0x00000101
INFO_IND ID=003 #0x8a6f LEN=0016
Controller/PLCI/NCCI = 0x101
InfoNumber = 0xa1
InfoElement = <a1>
INFO_RESP ID=003 #0x8a6f LEN=0012
Controller/PLCI/NCCI = 0x101
-- AVM1#02: info element Sending Complete
> chan_capi devicestate requested for AVM1#02/46 is 'Ringing'
-- Executing [46@smsa:1] NoOp("CAPI/AVM1#02/46-70", "46:") in new stack
-- Executing [46@smsa:2] Goto("CAPI/AVM1#02/46-70", "smsin,46,1") in new stack
-- Goto (smsin,46,1)
-- Executing [46@smsin:1] Answer("CAPI/AVM1#02/46-70", "") in new stack
== AVM1#02: Answering for 46
CONNECT_RESP ID=003 #0x8a6c LEN=0038
Controller/PLCI/NCCI = 0x101
Reject = 0x0
BProtocol
B1protocol = 0x1
B2protocol = 0x1
B3protocol = 0x0
B1configuration = default
B2configuration = default
B3configuration = default
GlobalConfiguration = default
ConnectedNumber = <01 80>46
ConnectedSubaddress = default
LLC = default
AdditionalInfo
BChannelinformation = default
Keypadfacility = default
Useruserdata = default
Facilitydataarray = default
SendingComplete = default
> chan_capi devicestate requested for AVM1#02/46 is 'In use'
== Started pbx on channel CAPI/AVM1#02/46-70
== AVM1#02: Requested Indication-STOP for CAPI/AVM1#02/46-70
CAPI: ApplId=0x0003 Command=0x03 SubCommand=0x82 MsgNum=0x8a72 NCCI=0x00000101
CONNECT_ACTIVE_IND ID=003 #0x8a72 LEN=0015
Controller/PLCI/NCCI = 0x101
ConnectedNumber = default
ConnectedSubaddress = default
LLC = default
CONNECT_ACTIVE_RESP ID=003 #0x8a72 LEN=0012
Controller/PLCI/NCCI = 0x101
CAPI: ApplId=0x0003 Command=0x82 SubCommand=0x82 MsgNum=0x8a73 NCCI=0x00010101
CONNECT_B3_IND ID=003 #0x8a73 LEN=0013
Controller/PLCI/NCCI = 0x10101
NCPI = default
CONNECT_B3_RESP ID=003 #0x8a73 LEN=0015
Controller/PLCI/NCCI = 0x10101
Reject = 0x0
NCPI = default
CAPI: ApplId=0x0003 Command=0x83 SubCommand=0x82 MsgNum=0x8a74 NCCI=0x00010101
CONNECT_B3_ACTIVE_IND ID=003 #0x8a74 LEN=0013
Controller/PLCI/NCCI = 0x10101
NCPI = default
CONNECT_B3_ACTIVE_RESP ID=003 #0x8a74 LEN=0012
Controller/PLCI/NCCI = 0x10101
-- Executing [46@smsin:2] NoOp("CAPI/AVM1#02/46-70", "empfang") in new stack
-- Executing [46@smsin:3] Wait("CAPI/AVM1#02/46-70", "2") in new stack
-- Executing [46@smsin:4] SMS("CAPI/AVM1#02/46-70", "46,as") in new stack
sms argc 2 queue <46> opts <as> addr <> body <>
initial delay 300ms
-- SMS TX 93 00
-- SMS RX 91 0E 01 07 02 81 74 00 00 06 41 67 B3 C8 24 02 13
-- SMS TX 95 02 00 00
-- SMS RX 91 19 02 08 00 F3 00 00 81 11 00 01 02 10 01 00 02 02 00 01 00 03 04 43 34 35 30 CB
[Aug 12 15:12:47] WARNING[26696]: app_sms.c:1114 sms_handleincoming: Unknown message type 02
-- SMS TX 96 03 00 FF 00
-- SMS RX 94 00 6C
[Aug 12 15:12:48] NOTICE[26696]: app_sms.c:2004 sms_exec: channel hangup
-- Executing [46@smsin:5] Hangup("CAPI/AVM1#02/46-70", "") in new stack
== Spawn extension (smsin, 46, 5) exited non-zero on 'CAPI/AVM1#02/46-70'
== AVM1#02: CAPI Hangingup for PLCI=0x101 in state 2
-- AVM1#02: activehangingup (cause=16) for PLCI=0x101
DISCONNECT_B3_REQ ID=003 #0x2205 LEN=0013
Controller/PLCI/NCCI = 0x10101
NCPI = default
> chan_capi devicestate requested for AVM1#02/46 is 'Not in use'
CAPI: ApplId=0x0003 Command=0x84 SubCommand=0x81 MsgNum=0x2205 NCCI=0x00010101
DISCONNECT_B3_CONF ID=003 #0x2205 LEN=0014
Controller/PLCI/NCCI = 0x10101
Info = 0x0
CAPI: ApplId=0x0003 Command=0x84 SubCommand=0x82 MsgNum=0x8b3c NCCI=0x00010101
DISCONNECT_B3_IND ID=003 #0x8b3c LEN=0015
Controller/PLCI/NCCI = 0x10101
Reason_B3 = 0x3301
NCPI = default
DISCONNECT_B3_RESP ID=003 #0x8b3c LEN=0012
Controller/PLCI/NCCI = 0x10101
DISCONNECT_REQ ID=003 #0x2206 LEN=0013
Controller/PLCI/NCCI = 0x101
AdditionalInfo = default
CAPI: ApplId=0x0003 Command=0x04 SubCommand=0x81 MsgNum=0x2206 NCCI=0x00000101
DISCONNECT_CONF ID=003 #0x2206 LEN=0014
Controller/PLCI/NCCI = 0x101
Info = 0x0
> chan_capi devicestate requested for AVM1#02/46 is 'Not in use'
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8b3d NCCI=0x00000101
INFO_IND ID=003 #0x8b3d LEN=0017
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x8
InfoElement = <80 90>
INFO_RESP ID=003 #0x8b3d LEN=0012
Controller/PLCI/NCCI = 0x101
-- AVM1#02: info element CAUSE 80 90
CAPI: ApplId=0x0003 Command=0x04 SubCommand=0x82 MsgNum=0x8b3e NCCI=0x00000101
DISCONNECT_IND ID=003 #0x8b3e LEN=0014
Controller/PLCI/NCCI = 0x101
Reason = 0x3490
DISCONNECT_RESP ID=003 #0x8b3e LEN=0012
Controller/PLCI/NCCI = 0x101
> AVM1#02: CAPI INFO 0x3490: Normal call clearing
== AVM1#02: Interface cleanup PLCI=0x101
Hier der Versand zum Gigaset. Geht nicht
Code:
-- Attempting call on CAPI/AVM1/46:48 for application SMS(0) (Retry 1)
> data = AVM1/46:48 format=8
> parsed dialstring: 'AVM1' '46' '48' ''
> capi request for interface 'AVM1'
== AVM1#02: setting format alaw - 0x8 (alaw)
> parsed dialstring: 'AVM1' '46' '48' ''
> capi: peerlink -1 allocated, peer is unlinked
== AVM1#02: Call CAPI/AVM1#02/48-71 (pres=0x00, ton=0x00)
CONNECT_REQ ID=003 #0x2207 LEN=0049
Controller/PLCI/NCCI = 0x1
CIPValue = 0x1
CalledPartyNumber = <80>48
CallingPartyNumber = <00 80>46
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 = <01 00>
> chan_capi devicestate requested for AVM1#02/48 is 'In use'
CAPI: ApplId=0x0003 Command=0x02 SubCommand=0x81 MsgNum=0x2207 NCCI=0x00000101
CONNECT_CONF ID=003 #0x2207 LEN=0014
Controller/PLCI/NCCI = 0x101
Info = 0x0
-- AVM1#02: received CONNECT_CONF PLCI = 0x101
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8b3f NCCI=0x00000101
INFO_IND ID=003 #0x8b3f LEN=0015
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x8002
InfoElement = default
INFO_RESP ID=003 #0x8b3f LEN=0012
Controller/PLCI/NCCI = 0x101
-- AVM1#02: info element CALL PROCEEDING
-- chan_capi queue frame: [ TYPE: Control (4) SUBCLASS: Unknown control '15' (15) ] [AVM1#02]
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8b40 NCCI=0x00000101
INFO_IND ID=003 #0x8b40 LEN=0016
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x18
InfoElement = <89>
INFO_RESP ID=003 #0x8b40 LEN=0012
Controller/PLCI/NCCI = 0x101
-- AVM1#02: info element CHANNEL IDENTIFICATION 89
CAPI: ApplId=0x0003 Command=0x02 SubCommand=0x82 MsgNum=0x8b41 NCCI=0x00000201
CONNECT_IND ID=003 #0x8b41 LEN=0033
Controller/PLCI/NCCI = 0x201
CIPValue = 0x1
CalledPartyNumber = <81>48
CallingPartyNumber = A<80>46
CalledPartySubaddress = default
CallingPartySubaddress = default
BC = <80 90 a3>
LLC = default
HLC = default
AdditionalInfo = default
-- CONNECT_IND (PLCI=0x201,DID=48,CID=46,CIP=0x1,CONTROLLER=0x1)
> AVM1#01: msn='44' DNID='48' MSN
> AVM1#01: msn='45' DNID='48' MSN
> AVM1#01: msn='46' DNID='48' MSN
[Aug 12 15:15:05] WARNING[23108]: chan_capi.c:4473 capidev_handle_connect_indication: did not find device for msn = 48
CONNECT_RESP ID=003 #0x8b41 LEN=0019
Controller/PLCI/NCCI = 0x201
Reject = 0x1
BProtocol = default
ConnectedNumber = default
ConnectedSubaddress = default
LLC = default
AdditionalInfo = default
> CAPI: Command=CONNECT_IND,0x8482: no interface for PLCI=0x201, MSGNUM=0x8b41!
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8b42 NCCI=0x00000201
INFO_IND ID=003 #0x8b42 LEN=0018
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x70
InfoElement = <81>48
INFO_RESP ID=003 #0x8b42 LEN=0012
Controller/PLCI/NCCI = 0x201
CAPI: INFO_IND no interface for PLCI=0x201
> CAPI: Command=INFO_IND,0x8492: no interface for PLCI=0x201, MSGNUM=0x8b42!
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8b43 NCCI=0x00000201
INFO_IND ID=003 #0x8b43 LEN=0016
Controller/PLCI/NCCI = 0x201
InfoNumber = 0x18
InfoElement = <8a>
INFO_RESP ID=003 #0x8b43 LEN=0012
Controller/PLCI/NCCI = 0x201
CAPI: INFO_IND no interface for PLCI=0x201
> CAPI: Command=INFO_IND,0x8492: no interface for PLCI=0x201, MSGNUM=0x8b43!
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8b44 NCCI=0x00000201
INFO_IND ID=003 #0x8b44 LEN=0016
Controller/PLCI/NCCI = 0x201
InfoNumber = 0xa1
InfoElement = <a1>
INFO_RESP ID=003 #0x8b44 LEN=0012
Controller/PLCI/NCCI = 0x201
CAPI: INFO_IND no interface for PLCI=0x201
> CAPI: Command=INFO_IND,0x8492: no interface for PLCI=0x201, MSGNUM=0x8b44!
CAPI: ApplId=0x0003 Command=0x04 SubCommand=0x82 MsgNum=0x8b47 NCCI=0x00000201
DISCONNECT_IND ID=003 #0x8b47 LEN=0014
Controller/PLCI/NCCI = 0x201
Reason = 0x0
DISCONNECT_RESP ID=003 #0x8b47 LEN=0012
Controller/PLCI/NCCI = 0x201
CAPI: DISCONNECT_IND no interface for PLCI=0x201
> CAPI: Command=DISCONNECT_IND,0x848c: no interface for PLCI=0x201, MSGNUM=0x8b47!
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8b48 NCCI=0x00000101
INFO_IND ID=003 #0x8b48 LEN=0015
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x8001
InfoElement = default
INFO_RESP ID=003 #0x8b48 LEN=0012
Controller/PLCI/NCCI = 0x101
-- AVM1#02: info element ALERTING
-- chan_capi queue frame: [ TYPE: Control (4) SUBCLASS: Unknown control '14' (14) ] [AVM1#02]
-- chan_capi queue frame: [ TYPE: Control (4) SUBCLASS: Ringing (3) ] [AVM1#02]
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8b49 NCCI=0x00000101
INFO_IND ID=003 #0x8b49 LEN=0017
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x1e
InfoElement = <81 88>
INFO_RESP ID=003 #0x8b49 LEN=0012
Controller/PLCI/NCCI = 0x101
-- AVM1#02: info element PI 81 88
> AVM1#02: In-band information available
CAPI: ApplId=0x0003 Command=0x08 SubCommand=0x82 MsgNum=0x8b4a NCCI=0x00000101
INFO_IND ID=003 #0x8b4a LEN=0016
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x18
InfoElement = <89>
INFO_RESP ID=003 #0x8b4a LEN=0012
Controller/PLCI/NCCI = 0x101
-- AVM1#02: info element CHANNEL IDENTIFICATION 89
> chan_capi devicestate requested for AVM1#02/48 is 'In use'
== AVM1#02: CAPI Hangingup for PLCI=0x101 in state 5
-- AVM1#02: activehangingup (cause=19) for PLCI=0x101
DISCONNECT_REQ ID=003 #0x2208 LEN=0013
Controller/PLCI/NCCI = 0x101
AdditionalInfo = default
CAPI: ApplId=0x0003 Command=0x04 SubCommand=0x81 MsgNum=0x2208 NCCI=0x00000101
DISCONNECT_CONF ID=003 #0x2208 LEN=0014
Controller/PLCI/NCCI = 0x101
Info = 0x0
[Aug 12 15:15:15] NOTICE[26721]: pbx_spool.c:338 attempt_thread: Call failed to go through, reason (3) Remote end Ringing
> chan_capi devicestate requested for AVM1#02/48 is 'Not in use'
> chan_capi devicestate requested for AVM1#02/48 is 'Not in use'
CAPI: ApplId=0x0003 Command=0x04 SubCommand=0x82 MsgNum=0x8b4b NCCI=0x00000101
DISCONNECT_IND ID=003 #0x8b4b LEN=0014
Controller/PLCI/NCCI = 0x101
Reason = 0x3400
DISCONNECT_RESP ID=003 #0x8b4b LEN=0012
Controller/PLCI/NCCI = 0x101
== AVM1#02: Interface cleanup PLCI=0x101
Die Fehlermeldungen sagen mir nun garnichts. Mein Verdacht ist, das entweder die Fritz-Karte nicht brauchbar ist, oder chan_capi.
Wer einer Rat?