- Mitglied seit
- 20 Jul 2007
- Beiträge
- 22
- Punkte für Reaktionen
- 0
- Punkte
- 0
halli hallo.
ich hab mal ne bescheidene frage und zwar, nachdem mein asterisk sein rxfax() aufruft und die file gespeichert hat, passiert garnix mehr, obwohl er danach eigentlich via system() noch einen befehl ausführen sollte, bzw. zu testzwecken hab ich noch ein NoOp eingefügt, aber da passiert nix.
so sieht meine extensions aus:
und so die deug ausgabe:
ich hab mal ne bescheidene frage und zwar, nachdem mein asterisk sein rxfax() aufruft und die file gespeichert hat, passiert garnix mehr, obwohl er danach eigentlich via system() noch einen befehl ausführen sollte, bzw. zu testzwecken hab ich noch ein NoOp eingefügt, aber da passiert nix.
so sieht meine extensions aus:
Code:
exten => <mynr>,1,Set(SCRIPTFILE=/scripte/asterisk/fax2mail2)
exten => <mynr>,n,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID})
exten => <mynr>,n,Wait(3)
exten => <mynr>,n,rxfax(${FAXFILE})
exten => <mynr>,n,NoOp(hallo dudu)
exten => <mynr>,n,system(${SCRIPTFILE} ${FAXFILE} ${ARG2} ${ARG1})
exten => <mynr>,n,Hangup
und so die deug ausgabe:
Code:
CONNECT_IND ID=002 #0x81bd LEN=0037
Controller/PLCI/NCCI = 0x101
CIPValue = 0x4
CalledPartyNumber = <c1><mynr>
CallingPartyNumber = <00 a3>
CalledPartySubaddress = default
CallingPartySubaddress = default
BC = <90 90 a3>
LLC = default
HLC = default
AdditionalInfo = default
-- CONNECT_IND (PLCI=0x101,DID=<mynr>,CID=,CIP=0x4,CONTROLLER=0x1)
> ISDN1#02: msn='*' DNID='<mynr>' MSN
== ISDN1#02: setting format alaw - 0x8 (alaw)
== ISDN1#02: Incoming call '' -> '<mynr>'
INFO_IND ID=002 #0x81be LEN=0017
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x1e
InfoElement = <80 83>
INFO_RESP ID=002 #0x81be LEN=0012
Controller/PLCI/NCCI = 0x101
-- ISDN1#02: info element PI 80 83
> ISDN1#02: Origination is non ISDN
INFO_IND ID=002 #0x81bf LEN=0024
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x70
InfoElement = <c1><mynr>
INFO_RESP ID=002 #0x81bf LEN=0012
Controller/PLCI/NCCI = 0x101
-- ISDN1#02: info element CALLED PARTY NUMBER
> ISDN1#02: INFO_IND DID digits not used in this state.
INFO_IND ID=002 #0x81c0 LEN=0016
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x18
InfoElement = <89>
INFO_RESP ID=002 #0x81c0 LEN=0012
Controller/PLCI/NCCI = 0x101
-- ISDN1#02: info element CHANNEL IDENTIFICATION 89
INFO_IND ID=002 #0x81c1 LEN=0016
Controller/PLCI/NCCI = 0x101
InfoNumber = 0xa1
InfoElement = <a1>
INFO_RESP ID=002 #0x81c1 LEN=0012
Controller/PLCI/NCCI = 0x101
-- ISDN1#02: info element Sending Complete
-- ISDN1#02: CAPI/ISDN1#02/<mynr>-14: <mynr> matches in context capi-in
== Started pbx on channel CAPI/ISDN1#02/<mynr>-14
> CAPI devicestate requested for ISDN1#02/<mynr>
-- Executing [<mynr>@capi-in:1] Set("CAPI/ISDN1#02/<mynr>-14", "SCRIPTFILE=/scripte/asterisk/fax2mail2") in new stack
-- Executing [<mynr>@capi-in:2] Set("CAPI/ISDN1#02/<mynr>-14", "FAXFILE=/var/spool/asterisk/fax/1189082308.21") in new stack
-- Executing [<mynr>@capi-in:3] Wait("CAPI/ISDN1#02/<mynr>-14", "3") in new stack
-- Executing [<mynr>@capi-in:4] RxFAX("CAPI/ISDN1#02/<mynr>-14", "/var/spool/asterisk/fax/1189082308.21") in new stack
== ISDN1#02: Answering for <mynr>
CONNECT_RESP ID=002 #0x81bd LEN=0044
Controller/PLCI/NCCI = 0x101
Reject = 0x0
BProtocol
B1protocol = 0x1
B2protocol = 0x1
B3protocol = 0x0
B1configuration = default
B2configuration = default
B3configuration = default
GlobalConfiguration = default
ConnectedNumber = <00 80><mynr> ConnectedSubaddress = default
LLC = default
AdditionalInfo
BChannelinformation = default
Keypadfacility = default
Useruserdata = default
Facilitydataarray = default
SendingComplete = default
> CAPI devicestate requested for ISDN1#02/<mynr>
CONNECT_ACTIVE_IND ID=002 #0x81c2 LEN=0015
Controller/PLCI/NCCI = 0x101
ConnectedNumber = default
ConnectedSubaddress = default
LLC = default
CONNECT_ACTIVE_RESP ID=002 #0x81c2 LEN=0012
Controller/PLCI/NCCI = 0x101
CONNECT_B3_IND ID=002 #0x81c3 LEN=0013
Controller/PLCI/NCCI = 0x10101
NCPI = default
CONNECT_B3_RESP ID=002 #0x81c3 LEN=0015
Controller/PLCI/NCCI = 0x10101
Reject = 0x0
NCPI = default
CONNECT_B3_ACTIVE_IND ID=002 #0x81c4 LEN=0013
Controller/PLCI/NCCI = 0x10101
NCPI = default
CONNECT_B3_ACTIVE_RESP ID=002 #0x81c4 LEN=0012
Controller/PLCI/NCCI = 0x10101
INFO_IND ID=002 #0x8f58 LEN=0015
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x8045
InfoElement = default
INFO_RESP ID=002 #0x8f58 LEN=0012
Controller/PLCI/NCCI = 0x101
-- ISDN1#02: info element DISCONNECT
-- ISDN1#02: Disconnect case 3
-- CAPI queue frame: [ TYPE: Control (4) SUBCLASS: Hangup (1) ] [ISDN1#02]
INFO_IND ID=002 #0x8f59 LEN=0017
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x1e
InfoElement = <82 88>
INFO_RESP ID=002 #0x8f59 LEN=0012
Controller/PLCI/NCCI = 0x101
-- ISDN1#02: info element PI 82 88
> ISDN1#02: In-band information available
INFO_IND ID=002 #0x8f5a LEN=0017
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x8
InfoElement = <80 90>
INFO_RESP ID=002 #0x8f5a LEN=0012
Controller/PLCI/NCCI = 0x101
-- ISDN1#02: info element CAUSE 80 90
== ISDN1#02: CAPI Hangingup for PLCI=0x101 in state 2
-- ISDN1#02: activehangingup (cause=16) for PLCI=0x101
DISCONNECT_B3_REQ ID=002 #0x1159 LEN=0013
Controller/PLCI/NCCI = 0x10101
NCPI = default
> CAPI devicestate requested for ISDN1#02/<mynr>
> CAPI devicestate requested for ISDN1#02/<mynr>
DISCONNECT_B3_CONF ID=002 #0x1159 LEN=0014
Controller/PLCI/NCCI = 0x10101
Info = 0x0
DISCONNECT_B3_IND ID=002 #0x8f5b LEN=0015
Controller/PLCI/NCCI = 0x10101
Reason_B3 = 0x3301
NCPI = default
DISCONNECT_B3_RESP ID=002 #0x8f5b LEN=0012
Controller/PLCI/NCCI = 0x10101
DISCONNECT_REQ ID=002 #0x115a LEN=0013
Controller/PLCI/NCCI = 0x101
AdditionalInfo = default
DISCONNECT_CONF ID=002 #0x115a LEN=0014
Controller/PLCI/NCCI = 0x101
Info = 0x0
DISCONNECT_IND ID=002 #0x8f5c LEN=0014
Controller/PLCI/NCCI = 0x101
Reason = 0x3490
DISCONNECT_RESP ID=002 #0x8f5c LEN=0012
Controller/PLCI/NCCI = 0x101
> ISDN1#02: CAPI INFO 0x3490: Normal call clearing
== ISDN1#02: Interface cleanup PLCI=0x101