Hello List - I'm new to OpenPBX; but have been around Asterisk for a few years. I'm working on T38 transmissions, and am not having much luck - Below are some details.
- OS: CentOS 4.4 - OpenPBX-Ver: 1.2-RC3 (unable to get past bootstrarp.sh using CentOS with the SVN) - spanDSP Ver: 0.0.3pre27 - ATA (x2): Patton M-ATA-1 ( http://www.patton.com/products/pe_products.asp?category=328) - Fax machines (X2): HP1040, Lexmark 7100 My goals are to: Send a fax from FaxMachineA (110) to FaxMachineB(109) over T38 Send a fax from A to OpenPBX Send a fax from OpenPBX to B etc... The ATA's are registered to openPBX using the following: [109-USADATANET] qualify=yes nat=yes secret=109 host=dynamic username=109-USADATANET callerid=Analog Fax <109> dtmfmode=inband type=friend context=default [110-USADATANET] qualify=yes nat=yes secret=110 host=dynamic username=110-USADATANET callerid=Analog Fax 2 <110> dtmfmode=inband type=friend context=default The rest of my sip.conf looks like this: [general] context=default ; Default context for incoming calls bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=66.218.0.22 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls ;videosupport=yes ; Turn on support for SIP video t38udptlsupport=yes ; Turn on support for T.38 UDPTL disallow=all ; First disallow all codecs allow=alaw allow=ulaw dtmfmode = inband And my extensions.conf: [default] exten => 110,1,Dial(SIP/110-USADATANET,20,r) --> So 110 and 109 can talk exten => 109,1,Dial(SIP/109-USADATANET,20,r) exten => 800,1,Goto(faxin,s,1) --> So 110 or 109 can send a fax into openPBX [faxin] exten => s,1,Set(LOCALSTATIONID=USADATANET FAX) exten => s,n,Set(LOCALHEADERINFO=USA Datanet is a solution provider for business) exten => s,n,Set(FAXFILE=/tmp/${UNIQUEID}.tif) exten => s,n,Set(FAXFILENOEXT=/tmp/${UNIQUEID}) exten => s,n,RxFAX(${FAXFILE}|debug) exten => s,n,NoOp(RX: REMOTESTATIONID is ${REMOTESTATIONID}) exten => s,n,NoOp(RX: PHASEESTATUS is ${PHASEESTATUS}) [faxout] exten => s,1,Set(LOCALSTATIONID=USADATANET FAX) exten => s,n,Set(LOCALHEADERINFO=USA Datanet is a solution provider for business) exten => s,n,Set(FAXFILE=/tmp/1169665779.4.tif) exten => s,n,TxFAX(${FAXFILE}|caller|debug) exten => h,1,NoOp(TX: REMOTESTATIONID is ${REMOTESTATIONID}) exten => h,n,NoOp(TX: PHASEESTATUS is ${PHASEESTATUS}) I've tried all the "tips" I could find on both the wiki and previous threads in this list including: -- enable/disable ECM (the change is effective as the fax machines shows either G3 or ECM depending on my setting) -- use ALAW as preffered -- use ULAW as preffered -- disable silence suppression on ATA's I can see the following when snooping the traffic: -- SIP messages in both directions work, the SDP for T38 accepted -- T30/T38 packets in both directions -- RTP in both directions (before the T38 starts) ------------------------------------------- Results: A) FAXB(109) --> ATA --> OPBX(ext800) If I am setup using the above, and dial 800 from FAXB I either see "success" in the debug or failure result (11) and the sending fax machine shows "send error" with a resuting 8kb tiff <snip> Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38Tx 52: indicator no-signal Jan 24 17:51:59 DEBUG[3058920368]: udptl.c:966 opbx_udptl_write: Sending 29 bytes, 3 copies of UDPTL data to 66.218.1.221:8002 Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Send complete in phase T30_PHASE_D_TX, state 3 Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Disconnecting Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Changing from phase T30_PHASE_D_TX to T30_PHASE_E Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38TSet rx type 0 Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38TSet tx type 1 Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Changing from state 3 to 2 Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Send complete in phase T30_PHASE_E, state 2 Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:119 phase_e_handler: ============================================================================== Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:142 phase_e_handler: Fax receive not successful - result (11) Unexpected message received. Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:144 phase_e_handler: ============================================================================== Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Changing from state 2 to 30 Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Changing from phase T30_PHASE_E to T30_PHASE_CALL_FINISHED Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38TSet rx type 13 Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38TSet tx type 13 Jan 24 17:51:59 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38TFAX exchange complete </snip> B) Now when I enable ECM here's what happens: FAXA(110) --> ATA --> OPBX(ext800) <snip> Jan 24 17:56:10 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Send complete in phase T30_PHASE_B_TX, state 15 Jan 24 17:56:10 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38Tx 183: data type v21/hdlc-fcs-OK-sig-end + 0 byte(s) Jan 24 17:56:10 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38Tx 183: c0 01 40 Jan 24 17:56:10 DEBUG[3058920368]: udptl.c:966 opbx_udptl_write: Sending 31 bytes, 1 copies of UDPTL data to 66.218.1.221:8002 Jan 24 17:56:10 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38Tx 184: indicator no-signal Jan 24 17:56:10 DEBUG[3058920368]: udptl.c:966 opbx_udptl_write: Sending 29 bytes, 3 copies of UDPTL data to 66.218.1.221:8002 Jan 24 17:56:10 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Send complete in phase T30_PHASE_B_TX, state 15 Jan 24 17:56:10 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Changing from phase T30_PHASE_B_TX to T30_PHASE_B_RX Jan 24 17:56:10 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38TSet rx type 4 Jan 24 17:56:10 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38TSet tx type 0 Jan 24 17:56:11 DEBUG[3058920368]: generator.c:125 opbx_generator_deactivate: Trying to deactivate generator in SIP/110-USADATANET-86a3 Jan 24 17:56:11 DEBUG[3058920368]: generator.c:156 opbx_generator_deactivate: Generator on SIP/110-USADATANET-86a3 stopped after 0 iterations Jan 24 17:56:11 DEBUG[3058920368]: app_rxfax.c:519 rxfax_exec: Got hangup Jan 24 17:56:11 DEBUG[3058920368]: app_rxfax.c:119 phase_e_handler: ============================================================================== Jan 24 17:56:11 DEBUG[3058920368]: app_rxfax.c:142 phase_e_handler: Fax receive not successful - result (61) The call dropped prematurely. Jan 24 17:56:11 DEBUG[3058920368]: app_rxfax.c:144 phase_e_handler: ============================================================================== Jan 24 17:56:11 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Changing from state 15 to 30 Jan 24 17:56:11 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.30Changing from phase T30_PHASE_B_RX to T30_PHASE_CALL_FINISHED Jan 24 17:56:11 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38TSet rx type 13 Jan 24 17:56:11 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38TSet tx type 13 Jan 24 17:56:11 DEBUG[3058920368]: app_rxfax.c:83 span_message: FLOW T.38TFAX exchange complete Jan 24 17:56:11 DEBUG[3058920368]: channel.c:2175 set_format: Set channel SIP/110-USADATANET-86a3 to read format alaw Jan 24 17:56:11 DEBUG[3058920368]: channel.c:2175 set_format: Set channel SIP/110-USADATANET-86a3 to write format alaw </snip> C) And if I stop openPBX and start fresh, I seem to get further... but I still see the folllowing: <snip> Jan 24 18:00:41 DEBUG[3060526000]: udptl.c:966 opbx_udptl_write: Sending 31 bytes, 1 copies of UDPTL data to 66.218.1.221:8002 Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:83 span_message: FLOW T.38Tx 184: indicator no-signal Jan 24 18:00:41 DEBUG[3060526000]: udptl.c:966 opbx_udptl_write: Sending 29 bytes, 3 copies of UDPTL data to 66.218.1.221:8002 Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:83 span_message: FLOW T.30Send complete in phase T30_PHASE_B_TX, state 15 Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:83 span_message: FLOW T.30Changing from phase T30_PHASE_B_TX to T30_PHASE_B_RX Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:83 span_message: FLOW T.38TSet rx type 4 Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:83 span_message: FLOW T.38TSet tx type 0 Jan 24 18:00:41 DEBUG[3060526000]: generator.c:125 opbx_generator_deactivate: Trying to deactivate generator in SIP/110-USADATANET-ea5c Jan 24 18:00:41 DEBUG[3060526000]: generator.c:156 opbx_generator_deactivate: Generator on SIP/110-USADATANET-ea5c stopped after 0 iterations Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:519 rxfax_exec: Got hangup Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:119 phase_e_handler: ============================================================================== Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:142 phase_e_handler: Fax receive not successful - result (61) The call dropped prematurely. Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:144 phase_e_handler: ============================================================================== Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:83 span_message: FLOW T.30Changing from state 15 to 30 Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:83 span_message: FLOW T.30Changing from phase T30_PHASE_B_RX to T30_PHASE_CALL_FINISHED Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:83 span_message: FLOW T.38TSet rx type 13 Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:83 span_message: FLOW T.38TSet tx type 13 Jan 24 18:00:41 DEBUG[3060526000]: app_rxfax.c:83 span_message: FLOW T.38TFAX exchange complete Jan 24 18:00:41 DEBUG[3060526000]: channel.c:2175 set_format: Set channel SIP/110-USADATANET-ea5c to read format alaw Jan 24 18:00:41 DEBUG[3060526000]: channel.c:2175 set_format: Set channel SIP/110-USADATANET-ea5c to write format alaw </snip> The real kicker is, it worked twice using the same settings as above.... Am I missing something? Thanks for the help.... Chris --
_______________________________________________ Openpbx-users mailing list [email protected] http://lists.openpbx.org/mailman/listinfo/openpbx-users
