[Problem] IAX Modem - Asterisk - Hylafax

TRex

Neuer User
Mitglied seit
10 Apr 2009
Beiträge
40
Punkte für Reaktionen
0
Punkte
0
Guten Morgen,
ich betreibe an meinem Asterisk zwei IAX-Modem (IAX0 und IAX1)
Versand und Empfang klappen prima.

Jetzt habe ich nach außen 3 eingehende Faxnummern ( Endnummer 50,51, und [noparse]58)[/noparse] die allesamt auf das IAX-Modem geroutet werden.
Um die eingehenden FAXE zu verteilen sollte ich wissen, welche Nebenstelle angerufen wird.

Nach allen Beschreibungen müsste dies als CID2,3 oder 4 mitkommen, tut es aber nicht.

Anbei die Config des IAX1:
Code:
CountryCode:	 	49	
AreaCode:		7141
FAXNumber:		+XXXXX
LongDistancePrefix:	0
InternationalPrefix:	00
DialStringRules:	etc/dialrules
ServerTracing:		0xFFF
SessionTracing:		0xFFF
RecvFileMode:		0600
LogFileMode:		0600
DeviceMode:		0600
RingsBeforeAnswer:	1
SpeakerVolume:		off
GettyArgs:		"-h %l dx_%s"
LocalIdentifier:	" "
TagLineFont:		etc/lutRS18.pcf
TagLineFormat:		"%A, %d %b %Y um %H:%M:%S|Seite %%P von %%T"
#TagLineFormat:		"From %%l|%c|Page %%P of %%T"
MaxRecvPages:		200
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType:		Class1		# use this to supply a hint

#
# Enabling this will use the hfaxd-protocol to set Caller*ID
#
#ModemSetOriginCmd:	AT+VSID="%s","%d"

#
# If "glare" during initialization becomes a problem then take
# the modem off-hook during initialization, and then place it
# back on-hook when done.
#
#ModemResetCmds:	"ATH1\nAT+VCID=1"	# enables CallID display
#ModemReadyCmds:	ATH0

Class1AdaptRecvCmd:	AT+FAR=1
Class1TMConnectDelay:	400		# counteract quick CONNECT response

#
# If you have trouble with V.17 receiving or sending,
# you may want to enable one of these, respectively.
#
#Class1RMQueryCmd:      "!24,48,72,96"  # enable this to disable V.17 receiving
#Class1TMQueryCmd:      "!24,48,72,96"  # enable this to disable V.17 sending

#
# You'll likely want Caller*ID display (also displays DID) enabled.
#
ModemResetCmds:		AT+VCID=1	# enables CallID display

#
# The pty does not support changing parity.
#
PagerTTYParity:		none

#
# If you are "missing" Caller*ID data on some calls (but not all)
# and if you do not have adequate glare protection you may want to
# not answer based on RINGs, but rather enable the CallIDAnswerLength
# for NDID, disable AT+VCID=1 and do this:
#
#RingsBeforeAnswer: 0
#ModemRingResponse: AT+VRID=1

# Uncomment DATE and TIME if you really want them, but you probably don't.
#CallIDPattern:          "DATE="
#CallIDPattern:          "TIME="
CallIDPattern:          "NMBR="
CallIDPattern:          "NAME="
CallIDPattern:	   "ANID="
CallIDPattern:          "USER="	# username provided by call
CallIDPattern:          "PASS="	# password provided by call
CallIDPattern:          "CDID="	# DID context in call
CallIDPattern:          "NDID="
CallIDPattern:	   "CID"	
#CallIDAnswerLength:	10
#CallIDDisplay:	TRUE

Anbei ein Ausdruck des Empfangslog ( Name und Nummern rausgemacht)
Code:
Sep 24 08:00:45.32: [30647]: SESSION BEGIN 000000409 49XXXXXX58
Sep 24 08:00:45.32: [30647]: HylaFAX (tm) Version 6.0.6
Sep 24 08:00:45.32: [30647]: CallID: "07141XXXX" "NAMEXXXX" "<NONE>" "<NONE>" "<NONE>" "<NONE>" "s" ""
Sep 24 08:00:45.32: [30647]: MODEM set XON/XOFF/FLUSH: input ignored, output disabled
Sep 24 08:00:45.32: [30647]: <-- [4:ATA\r]
Sep 24 08:00:49.04: [30647]: --> [7:CONNECT]
Sep 24 08:00:49.04: [30647]: ANSWER: FAX CONNECTION  DEVICE '/dev/ttyIAX1'
Sep 24 08:00:49.04: [30647]: STATE CHANGE: ANSWERING -> RECEIVING
Sep 24 08:00:49.04: [30647]: RECV FAX: begin
Sep 24 08:00:49.12: [30647]: <-- HDLC<32:FF C0 04 B5 00 AA 12 9E 36 86 62 82 1A 04 14 2E B6 94 04 6A A6 4E CE 96 F6 76 04 6C 74 0C 74 6C>
Sep 24 08:00:49.12: [30647]: <-- data [32]
Sep 24 08:00:49.12: [30647]: <-- data [2]
Sep 24 08:00:50.04: [30647]: --> [7:CONNECT]
Sep 24 08:00:50.04: [30647]: <-- HDLC<23:FF C0 02 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04>
Sep 24 08:00:50.04: [30647]: <-- data [23]
Sep 24 08:00:50.04: [30647]: <-- data [2]
Sep 24 08:00:50.80: [30647]: --> [7:CONNECT]
Sep 24 08:00:50.80: [30647]: <-- HDLC<13:FF C8 01 00 77 5F 23 01 FB C1 01 01 18>
Sep 24 08:00:50.80: [30647]: <-- data [13]
Sep 24 08:00:50.80: [30647]: <-- data [2]
Sep 24 08:00:51.38: [30647]: --> [2:OK]
Sep 24 08:00:51.38: [30647]: <-- [9:AT+FRH=3\r]
Sep 24 08:00:51.90: [30647]: --> [7:CONNECT]
Sep 24 08:00:53.46: [30647]: --> HDLC<25:FF C0 C2 6C 8C 8C 6C 4C 9C 04 8C 2C 8C EC 04 9C 2C D4 04 04 04 04 04 AA 44>
Sep 24 08:00:53.46: [30647]: --> [2:OK]
Sep 24 08:00:53.46: [30647]: RECV recv TSI (sender id)
Sep 24 08:00:53.46: [30647]: REMOTE TSI "+49 7141 XXXXX"
Sep 24 08:00:53.46: [30647]: <-- [9:AT+FRH=3\r]
Sep 24 08:00:53.90: [30647]: --> [7:CONNECT]
Sep 24 08:00:53.90: [30647]: --> HDLC<15:FF C8 C1 00 46 1F 23 01 01 01 01 01 00 71 65>
Sep 24 08:00:53.96: [30647]: --> [2:OK]
Sep 24 08:00:53.96: [30647]: RECV recv DCS (command signal)
Sep 24 08:00:53.96: [30647]: REMOTE wants 14400 bit/s
Sep 24 08:00:53.96: [30647]: REMOTE wants A4 page width (215 mm)
Sep 24 08:00:53.96: [30647]: REMOTE wants unlimited page length
Sep 24 08:00:53.96: [30647]: REMOTE wants 7.7 line/mm
Sep 24 08:00:53.96: [30647]: REMOTE wants 2-D MMR
Sep 24 08:00:53.96: [30647]: REMOTE wants T.30 Annex A, 256-byte ECM
Sep 24 08:00:53.96: [30647]: RECV training at v.17 14400 bit/s
Sep 24 08:00:53.96: [30647]: MODEM set XON/XOFF/DRAIN: input ignored, output generated
Sep 24 08:00:53.96: [30647]: <-- [11:AT+FRM=145\r]
Sep 24 08:00:55.64: [30647]: --> [7:CONNECT]
Sep 24 08:00:57.16: [30647]: MODEM set XON/XOFF/DRAIN: input ignored, output disabled
Sep 24 08:00:57.16: [30647]: RECV: TCF 2713 bytes, 0% non-zero, 2689 zero-run
Sep 24 08:00:57.16: [30647]: --> [10:NO CARRIER]
Sep 24 08:00:57.16: [30647]: <-- [9:AT+FRS=7\r]
Sep 24 08:00:57.22: [30647]: --> [2:OK]
Sep 24 08:00:57.22: [30647]: TRAINING succeeded
Sep 24 08:00:57.22: [30647]: <-- [9:AT+FTH=3\r]
Sep 24 08:00:57.24: [30647]: --> [7:CONNECT]
Sep 24 08:00:57.24: [30647]: <-- HDLC<3:FF C8 21>
Sep 24 08:00:57.24: [30647]: <-- data [3]
Sep 24 08:00:57.24: [30647]: <-- data [2]
Sep 24 08:00:58.32: [30647]: --> [2:OK]
Sep 24 08:00:58.32: [30647]: <-- [11:AT+FRM=146\r]
Sep 24 08:00:59.32: [30647]: --> [7:CONNECT]
Sep 24 08:00:59.32: [30647]: MODEM input buffering enabled
Sep 24 08:00:59.32: [30647]: MODEM set XON/XOFF/FLUSH: input ignored, output generated
Sep 24 08:00:59.74: [30647]: RECV received frame number 0
Sep 24 08:01:00.02: [30647]: RECV received frame number 1
Sep 24 08:01:00.16: [30647]: RECV received frame number 2
Sep 24 08:01:00.30: [30647]: RECV received frame number 3
Sep 24 08:01:00.56: [30647]: RECV received frame number 4
Sep 24 08:01:00.70: [30647]: RECV received frame number 5
Sep 24 08:01:00.84: [30647]: RECV received frame number 6
Sep 24 08:01:00.98: [30647]: RECV received frame number 7
Sep 24 08:01:01.12: [30647]: RECV received frame number 8
Sep 24 08:01:01.40: [30647]: RECV received frame number 9
Sep 24 08:01:01.46: [30647]: RECV received frame number 10
Sep 24 08:01:01.46: [30647]: RECV received RCP frame
Sep 24 08:01:01.46: [30647]: MODEM set XON/XOFF/DRAIN: input ignored, output disabled
Sep 24 08:01:01.46: [30647]: MODEM input buffering disabled
Sep 24 08:01:01.46: [30647]: --> [10:NO CARRIER]
Sep 24 08:01:01.46: [30647]: <-- [9:AT+FRH=3\r]
Sep 24 08:01:01.66: [30647]: --> [7:CONNECT]
Sep 24 08:01:02.80: [30647]: --> HDLC<9:FF C8 FD F4 00 00 50 09 57>
Sep 24 08:01:02.88: [30647]: --> [2:OK]
Sep 24 08:01:02.88: [30647]: RECV recv PPS (partial page signal)
Sep 24 08:01:02.88: [30647]: RECV recv EOP (no more pages or documents)
Sep 24 08:01:02.88: [30647]: RECV received 11 frames of block 1 of page 1
Sep 24 08:01:02.91: [30647]: RECV/CQ: Adjusting for EOFB at row 2314
Sep 24 08:01:02.91: [30647]: RECV: 2710 bytes of data, 2314 total lines
Sep 24 08:01:02.91: [30647]: MODEM set XON/XOFF/DRAIN: input ignored, output disabled
Sep 24 08:01:02.91: [30647]: <-- [9:AT+FRS=7\r]
Sep 24 08:01:02.96: [30647]: --> [2:OK]
Sep 24 08:01:02.97: [30647]: RECV send MCF (message confirmation)
Sep 24 08:01:02.97: [30647]: <-- [9:AT+FTH=3\r]
Sep 24 08:01:03.00: [30647]: --> [7:CONNECT]
Sep 24 08:01:03.00: [30647]: <-- HDLC<3:FF C8 31>
Sep 24 08:01:03.00: [30647]: <-- data [3]
Sep 24 08:01:03.00: [30647]: <-- data [2]
Sep 24 08:01:04.06: [30647]: --> [2:OK]
Sep 24 08:01:04.06: [30647]: <-- [9:AT+FRH=3\r]
Sep 24 08:01:04.58: [30647]: --> [7:CONNECT]
Sep 24 08:01:05.60: [30647]: --> HDLC<5:FF C8 DF 59 6F>
Sep 24 08:01:05.68: [30647]: --> [2:OK]
Sep 24 08:01:05.68: [30647]: RECV recv DCN (disconnect)
Sep 24 08:01:05.68: [30647]: MODEM input buffering enabled
Sep 24 08:01:05.68: [30647]: RECV FAX (000000409): from +49 7141 XXXXX, page 1 in 0:00:13, INF, 7.7 line/mm, 2-D MMR, 14400 bit/s
Sep 24 08:01:05.68: [30647]: RECV FAX (000000409): recvq/fax000000012.tif from +49 7141 XXXXX, route to <unspecified>, 1 pages in 0:00:16
Sep 24 08:01:05.70: [30647]: RECV FAX: bin/faxrcvd "recvq/fax000000012.tif" "ttyIAX1" "000000409" "" "07141XXXXX" "NAMEXXXX" "<NONE>" "<NONE>" "<NONE>" "<NONE>" "s" ""
Sep 24 08:01:05.70: [30647]: RECV FAX: end
Sep 24 08:01:05.70: [30647]: SESSION END

Wie ich alle Beschreibungen verstanden habe müsste ja einer der CALLIDPattern die gewählte Nummer beinhalten.
Aber wie kann ich das jetzt auswerten und weitergeben?

Achja, ich benutze Freepbx...
Any Ideas?
Gruß Peter
 
Zuletzt bearbeitet von einem Moderator:
Ohne jetzt in FreePBX einzusteigen (aber ist da nicht IAX nicht sowieso manuell ...):

Das klappt, wenn Du wie folgt wählst (iaxmodem sei das Modem, ${EXTEN} sei die empfangende Faxnummer):


Code:
Dial(IAX2/iaxmodem/${EXTEN},10);

Damit müßte das s in

Sep 24 08:00:45.32: [30647]: CallID: "07141XXXX" "NAMEXXXX" "<NONE>" "<NONE>" "<NONE>" "<NONE>" "s" ""

durch den Inhalt alss ${EXTEN} ersetzt werden und dann auch im Hylafax-Prozess bis bin/faxrcvd durchlaufen, so dass die Faxverteilung klappt (funktioniert mit Hylafax wie bei Dir und Hylafax+ wie bei mir)
 
Kostenlos!

Statistik des Forums

Themen
248,475
Beiträge
2,292,301
Mitglieder
377,927
Neuestes Mitglied
mp24