Re: [asterisk-users] Problem with ReceiveFax
On 13/03/2012 8:10 PM, Ishfaq Malik wrote: On Tue, 2012-03-13 at 00:10 +0800, Larry Moore wrote: On 12/03/2012 10:53 PM, Ishfaq Malik wrote: Thanks for the input so far. I'm going to keep plugging away and if anyone has any insights, they will be gladly appreciated. Ish In SIP Account Configuration on Draytek; Set Voice Active Detect to Off In Phone Settings on the Draytek; Enable Symmetric RTP Check Start End RTP Ports match values set in /etc/asterisk/udptl.conf for udptlstart udptlend In /etc/asterisk/udptl.conf set; use_even_ports=yes Thanks for the above, I was hoping to have replied earlier with a success message buy alas, no joy to be had. Could I be having some sort of DTMF issue? I noticed this in amongst the console output once I set the console logging level to include dtmf [2012-03-13 12:06:39] DTMF[24784]: channel.c:3976 __ast_read: DTMF end 'f' received on SIP/588-000c, duration 0 ms [2012-03-13 12:06:39] DTMF[24784]: channel.c:4002 __ast_read: DTMF begin emulation of 'f' with duration 100 queued on SIP/588-000c [2012-03-13 12:06:39] DTMF[24784]: channel.c:4138 __ast_read: DTMF end emulation of 'f' queued on SIP/588-000c does the above look correct for an inbound fax? Thanks in advance (again!) Ish It's now time to do some debugging. I would suggest you capture packets between asterisk and peer 588 using tcpdump, make sure you enable a large enough snaplen (-s) to ensure you capture all packets in the frame. Submit your fax and upon completion of the session whether or not it is received successfully, transfer the file where you can open the captured file in Wireshark and select VoIP Calls located in the Telephony menu. You can then select the relevant line or lines in the session and click on the Flow button and review what is happening. I have a Grandstream HT-503 at the other end of an IPSEC vpn which has the FXO port connected to a PSTN line. I have configured the HT-503 to call the fax extension in the dialplan when it answers a call hence I have disabled faxdetect in the peer configuration. Looking at the Draytek manual I think this would be setup in VoIP Phone Settings by enabling Call Forwarding and setting it to Always and defining the SIP URL as fax@astersk_server_ip, assuming you have a fax extension enabled in the context of the peer. I am assuming you currently have this set to 200@astersk_server_ip. Did you disable VAD on the Draytek. I would also suggest you disable Call Waiting Call Transfer. You may also want to look at Volume Gain in case that affects the level of the signal being converted to T.38 on the Draytek. Testing by progressively decreasing the level and if that doesn't help then increasing it. Here is the peer configuration I just tested with my HT-503. T.38 is enabled in the [general] section of sip.conf [0123456789] type=peer defaultuser=0123456789 secret=you_guessed_it call-limit=2 host=dynamic disallow=g722 g726nonstandard=yes ;(this is required for Sipura and Grandstream ATAs, among others). transport=udp,tcp encryption=no directmedia=no faxdetect=no context=Fax-Test qualify=yes Good luck. Larry. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFax
On Fri, 2012-03-02 at 15:32 +, Ishfaq Malik wrote: I'm trying to get an inbound fax written to a tiff file but I'm having major problems. Using asterisk 1.8.7.0 on CentOS 5.6 Here's the CLI output when I try CLI == Using UDPTL CoS mark 5 == Using SIP RTP CoS mark 5 -- Executing [200@local:1] Goto(SIP/588-0007, fax-in,s,1) -- Goto (fax-in,s,1) -- Executing [s@fax-in:1] Answer(SIP/588-0007, ) -- Executing [s@fax-in:2] Wait(SIP/588-0007, 3) [2012-03-02 15:11:27] NOTICE[4628]: chan_sip.c:7280 sip_read: FAX CNG detected but no fax extension -- Executing [s@fax-in:3] Set(SIP/588-0007, FAXFILE=/tmp/fax-588-20120302-151130.tiff) -- Executing [s@fax-in:4] ReceiveFAX(SIP/588-0007, /tmp/fax-588-20120302-151130.tiff) -- Channel 'SIP/588-0007' receiving FAX '/tmp/fax-588-20120302-151130.tiff' [2012-03-02 15:11:33] WARNING[4628]: res_fax.c:1508 receivefax_t38_init: channel 'SIP/588-0007' refused to negotiate T.38 [2012-03-02 15:11:33] WARNING[4628]: res_fax.c:1529 receivefax_t38_init: Audio FAX not allowed on channel 'SIP/588-0007' and T.38 negotiation failed; aborting. [2012-03-02 15:11:33] ERROR[4628]: res_fax.c:1734 receivefax_exec: error initializing channel 'SIP/588-0007' in T.38 mode == Spawn extension (fax-in, s, 4) exited non-zero on 'SIP/588-0007' -- Executing [h@fax-in:1] NoOP(SIP/588-0007, ### FAXSTATUS: FAILED) -- Executing [h@fax-in:2] NoOP(SIP/588-0007, ###FAXERROR: T38_NEG_ERROR) -- Executing [h@fax-in:3] NoOP(SIP/588-0007, ### FAXMODE: ) -- Executing [h@fax-in:4] NoOP(SIP/588-0007, ###FAXPAGES: 0) -- Executing [h@fax-in:5] NoOP(SIP/588-0007, ### FAXBITRATE: ) -- Executing [h@fax-in:6] NoOP(SIP/588-0007, ### FAXRESOLUTION: ) -- Executing [h@fax-in:7] NoOP(SIP/588-0007, ### REMOTESTATIONID: ) -- Executing [h@fax-in:8] System(SIP/588-0007, mail -s FaxToEmail i...@pack-net.co.uk /tmp/fax-588-20120302-151130.tiff) [2012-03-02 15:11:33] WARNING[3685]: chan_sip.c:8740 process_sdp: Unsupported SDP media type in offer: audio 0 RTP/AVP 8 [2012-03-02 15:11:33] WARNING[3685]: chan_sip.c:8827 process_sdp: Failing due to no acceptable offer found Any insight in to what is going wrong would be really helpful. I'm using Fax for Asterisk and have attained a license and installed it. The fax machine is connection to a Draytek VoIP enabled router and then to our test server Here's the settings for the peer carthage*CLI sip show peer 588 * Name : 588 Realtime peer: Yes, cached Secret : Set MD5Secret: Not set Remote Secret: Not set Context : local Subscr.Cont. : Not set Language : AMA flags: Unknown Transfer mode: open CallingPres : Presentation Allowed, Not Screened Callgroup: Pickupgroup : MOH Suggest : Mailbox : VM Extension : asterisk LastMsgsSent : 32767/65535 Call limit : 5 Max forwards : 0 Dynamic : Yes Callerid : MaxCallBR: 384 kbps Expire : 2598 Insecure : no Force rport : Yes ACL : No DirectMedACL : No T.38 support : Yes T.38 EC mode : FEC T.38 MaxDtgrm: -1 DirectMedia : No PromiscRedir : No User=Phone : No Video Support: No Text Support : No Ign SDP ver : No Trust RPID : No Send RPID: Yes Subscriptions: Yes Overlap dial : Yes DTMFmode : rfc2833 Timer T1 : 500 Timer B : 32000 ToHost : Addr-IP : 82.68.49.35:5060 Defaddr-IP : (null) Prim.Transp. : UDP Allowed.Trsp : UDP Def. Username: 588 SIP Options : replaces replace Codecs : 0x10c (ulaw|alaw|g729) Codec Order : (alaw:20,ulaw:20,g729:20) Auto-Framing : No 100 on REG : Yes Status : OK (36 ms) Useragent: DrayTek UA-1.2.3 Vigor2710 3.3.6.1_232201 Reg. Contact : sip:5...@xxx.xxx.xxx.xxx Qualify Freq : 12 ms Sess-Timers : Accept Sess-Refresh : uas Sess-Expires : 1800 secs Min-Sess : 90 secs RTP Engine : asterisk Parkinglot : Use Reason : No Encryption : No Here's the relevant sip settings T.38 support: Yes T.38 EC mode: FEC T.38 MaxDtgrm: -1 here's the fax settings fax show settings FAX For Asterisk Settings: ECM: Enabled Status Events: On Minimum Bit Rate: 2400 Maximum Bit Rate: 14400 Modem Modulations Allowed: V17,V27,V29 FAX Technology Modules: DIGIUM (Digium FAX Driver) Settings: Maximum T.38 Packet Delay: 800 T.38 Session Packet Capture: Off G.711 Session Audio Capture: Off fax show stats FAX Statistics: --- Current Sessions : 0 Reserved Sessions: 0 Transmit Attempts: 0 Receive Attempts : 9
Re: [asterisk-users] Problem with ReceiveFax
On 12/03/2012 5:27 PM, Ishfaq Malik wrote: On Fri, 2012-03-02 at 15:32 +, Ishfaq Malik wrote: I've tried this with the f option on receiveFax but it still isn't working. Any insight would be helpful as this is driving me a bit potty == Using UDPTL CoS mark 5 == Using SIP RTP CoS mark 5 -- Executing [200@local:1] Goto(SIP/588-, fax-in,s,1) -- Goto (fax-in,s,1) -- Executing [s@fax-in:1] Answer(SIP/588-, ) -- Executing [s@fax-in:2] Wait(SIP/588-, 3) -- Executing [s@fax-in:3] Set(SIP/588-, FAXFILE=/tmp/fax-588-20120312-092231.tiff) -- Executing [s@fax-in:4] ReceiveFAX(SIP/588-, /tmp/fax-588-20120312-092231.tiff,f) -- Channel 'SIP/588-' receiving FAX '/tmp/fax-588-20120312-092231.tiff' [2012-03-12 09:22:34] WARNING[4529]: res_fax.c:1508 receivefax_t38_init: channel 'SIP/588-' refused to negotiate T.38 -- Channel 'SIP/588-' FAX session '0' started [2012-03-12 09:22:34] WARNING[3763]: chan_sip.c:8740 process_sdp: Unsupported SDP media type in offer: audio 0 RTP/AVP 8 [2012-03-12 09:22:34] WARNING[3763]: chan_sip.c:8827 process_sdp: Failing due to no acceptable offer found [2012-03-12 09:22:44] ERROR[4529]: res_fax.c:1344 generic_fax_exec: channel 'SIP/588-' FAX session '0' failure, reason: 'fax session timed-out' (TIMEOUT) -- Executing [s@fax-in:5] Hangup(SIP/588-, ) == Spawn extension (fax-in, s, 5) exited non-zero on 'SIP/588-' -- Executing [h@fax-in:1] NoOP(SIP/588-, ### FAXSTATUS: FAILED) -- Executing [h@fax-in:2] NoOP(SIP/588-, ###FAXERROR: TIMEOUT) -- Executing [h@fax-in:3] NoOP(SIP/588-, ### FAXMODE: ) -- Executing [h@fax-in:4] NoOP(SIP/588-, ###FAXPAGES: 0) -- Executing [h@fax-in:5] NoOP(SIP/588-, ### FAXBITRATE: ) -- Executing [h@fax-in:6] NoOP(SIP/588-, ### FAXRESOLUTION: ) -- Executing [h@fax-in:7] NoOP(SIP/588-, ### REMOTESTATIONID: ) -- Executing [h@fax-in:8] System(SIP/588-, mail -s FaxToEmail i...@-net.co.uk /tmp/fax-588-20120312-092231.tiff) -- FAX handle 0: [ 040.001588 ], entering CLOSING state -- Channel 'SIP/588-' FAX session '0' is complete, result: 'FAILED' (FAX_NO_FAX), error: 'T1_TIMEOUT', pages: 0, resolution: 'unknown', transfer rate: '2400', remoteSID: '' Thanks in Advance Looking at the information you have sent in this posting in certainly appears that the 'f' option has indeed helped however you have another matter to overcome. You may wish to set the following parameters in your peer configuration for 588. ignoresdpversion=yes directmedia=no I use Spandsp FAX successfully. I have also attached an analogue Fax Modem to the FXS port on an SPA8800 and an HT-502 and have been able to receive faxes on them when I last tested, the SPA8800 like the HT-502 are now in storage. Looking at the User Guide for the Vigor 2701 there is an option in the configuration to enable T.38 mode, did you enable it? In my sip.conf I have the following; [general] . . . faxdetect=cng t38pt_udptl=yes,redundancy,maxdatagram=400 ;t38pt_usertpsource=yes . . . [903] ; Cisco SPA8800 FXS Port 3 ; Grandstream HT502 FXS Port 1 ; Analogue FAX Modem attached type=friend defaultuser=903 secret=you_guessed_it call-limit=2 disallow=g722 transport=udp qualify=yes canreinvite=no directmedia=no host=dynamic context=FAX-T38 faxdetect=no Larry. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFax
On 03/12/2012 04:27 AM, Ishfaq Malik wrote: I've tried this with the f option on receiveFax but it still isn't working. Any insight would be helpful as this is driving me a bit potty == Using UDPTL CoS mark 5 == Using SIP RTP CoS mark 5 -- Executing [200@local:1] Goto(SIP/588-, fax-in,s,1) -- Goto (fax-in,s,1) -- Executing [s@fax-in:1] Answer(SIP/588-, ) -- Executing [s@fax-in:2] Wait(SIP/588-, 3) -- Executing [s@fax-in:3] Set(SIP/588-, FAXFILE=/tmp/fax-588-20120312-092231.tiff) -- Executing [s@fax-in:4] ReceiveFAX(SIP/588-, /tmp/fax-588-20120312-092231.tiff,f) -- Channel 'SIP/588-' receiving FAX '/tmp/fax-588-20120312-092231.tiff' [2012-03-12 09:22:34] WARNING[4529]: res_fax.c:1508 receivefax_t38_init: channel 'SIP/588-' refused to negotiate T.38 -- Channel 'SIP/588-' FAX session '0' started [2012-03-12 09:22:34] WARNING[3763]: chan_sip.c:8740 process_sdp: Unsupported SDP media type in offer: audio 0 RTP/AVP 8 [2012-03-12 09:22:34] WARNING[3763]: chan_sip.c:8827 process_sdp: Failing due to no acceptable offer found [2012-03-12 09:22:44] ERROR[4529]: res_fax.c:1344 generic_fax_exec: channel 'SIP/588-' FAX session '0' failure, reason: 'fax session timed-out' (TIMEOUT) When the T.38 re-INVITE was rejected by your SIP peer, they sent an SDP offer with the audio stream set to port number zero ('0'). This means the audio stream is not active, and thus cannot be used. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies Jabber: kflem...@digium.com | SIP: kpflem...@digium.com | Skype: kpfleming 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at www.digium.com www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFax
On 12/03/2012 5:27 PM, Ishfaq Malik wrote: On Fri, 2012-03-02 at 15:32 +, Ishfaq Malik wrote: I've tried this with the f option on receiveFax but it still isn't working. Any insight would be helpful as this is driving me a bit potty == Using UDPTL CoS mark 5 == Using SIP RTP CoS mark 5 -- Executing [200@local:1] Goto(SIP/588-, fax-in,s,1) -- Goto (fax-in,s,1) -- Executing [s@fax-in:1] Answer(SIP/588-, ) -- Executing [s@fax-in:2] Wait(SIP/588-, 3) -- Executing [s@fax-in:3] Set(SIP/588-, FAXFILE=/tmp/fax-588-20120312-092231.tiff) -- Executing [s@fax-in:4] ReceiveFAX(SIP/588-, /tmp/fax-588-20120312-092231.tiff,f) -- Channel 'SIP/588-' receiving FAX '/tmp/fax-588-20120312-092231.tiff' [2012-03-12 09:22:34] WARNING[4529]: res_fax.c:1508 receivefax_t38_init: channel 'SIP/588-' refused to negotiate T.38 -- Channel 'SIP/588-' FAX session '0' started [2012-03-12 09:22:34] WARNING[3763]: chan_sip.c:8740 process_sdp: Unsupported SDP media type in offer: audio 0 RTP/AVP 8 [2012-03-12 09:22:34] WARNING[3763]: chan_sip.c:8827 process_sdp: Failing due to no acceptable offer found [2012-03-12 09:22:44] ERROR[4529]: res_fax.c:1344 generic_fax_exec: channel 'SIP/588-' FAX session '0' failure, reason: 'fax session timed-out' (TIMEOUT) -- Executing [s@fax-in:5] Hangup(SIP/588-, ) == Spawn extension (fax-in, s, 5) exited non-zero on 'SIP/588-' -- Executing [h@fax-in:1] NoOP(SIP/588-, ### FAXSTATUS: FAILED) -- Executing [h@fax-in:2] NoOP(SIP/588-, ### FAXERROR: TIMEOUT) -- Executing [h@fax-in:3] NoOP(SIP/588-, ### FAXMODE: ) -- Executing [h@fax-in:4] NoOP(SIP/588-, ### FAXPAGES: 0) -- Executing [h@fax-in:5] NoOP(SIP/588-, ### FAXBITRATE: ) -- Executing [h@fax-in:6] NoOP(SIP/588-, ### FAXRESOLUTION: ) -- Executing [h@fax-in:7] NoOP(SIP/588-, ### REMOTESTATIONID: ) -- Executing [h@fax-in:8] System(SIP/588-, mail -s FaxToEmail i...@-net.co.uk /tmp/fax-588-20120312-092231.tiff) -- FAX handle 0: [ 040.001588 ], entering CLOSING state -- Channel 'SIP/588-' FAX session '0' is complete, result: 'FAILED' (FAX_NO_FAX), error: 'T1_TIMEOUT', pages: 0, resolution: 'unknown', transfer rate: '2400', remoteSID: '' Thanks in Advance Looking at the information you have sent in this posting in certainly appears that the 'f' option has indeed helped however you have another matter to overcome. You may wish to set the following parameters in your peer configuration for 588. ignoresdpversion=yes directmedia=no I use Spandsp FAX successfully. I have also attached an analogue Fax Modem to the FXS port on an SPA8800 and an HT-502 and have been able to receive faxes on them when I last tested, the SPA8800 like the HT-502 are now in storage. Looking at the User Guide for the Vigor 2701 there is an option in the configuration to enable T.38 mode, did you enable it? In my sip.conf I have the following; [general] . . . faxdetect=cng t38pt_udptl=yes,redundancy,maxdatagram=400 ;t38pt_usertpsource=yes . . . [903] ; Cisco SPA8800 FXS Port 3 ; Grandstream HT502 FXS Port 1 ; Analogue FAX Modem attached type=friend defaultuser=903 secret=you_guessed_it call-limit=2 disallow=g722 transport=udp qualify=yes canreinvite=no directmedia=no host=dynamic context=FAX-T38 faxdetect=no Larry. --- Try the ReceiveFax F option and see if it makes a difference we have had great success with it. Thanks Bryant -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFax
On Mon, 2012-03-12 at 09:11 -0400, Bryant Zimmerman wrote: Looking at the information you have sent in this posting in certainly appears that the 'f' option has indeed helped however you have another matter to overcome. You may wish to set the following parameters in your peer configuration for 588. ignoresdpversion=yes This one passed me by, thanks for the info directmedia=no I use Spandsp FAX successfully. I have also attached an analogue Fax Modem to the FXS port on an SPA8800 and an HT-502 and have been able to receive faxes on them when I last tested, the SPA8800 like the HT-502 are now in storage. Looking at the User Guide for the Vigor 2701 there is an option in the configuration to enable T.38 mode, did you enable it? Foolishly I hadn't and feel very stupid about that! In my sip.conf I have the following; [general] . . . faxdetect=cng t38pt_udptl=yes,redundancy,maxdatagram=400 tried this and ,fec, ;t38pt_usertpsource=yes had this already set . . . [903] ; Cisco SPA8800 FXS Port 3 ; Grandstream HT502 FXS Port 1 ; Analogue FAX Modem attached type=friend defaultuser=903 secret=you_guessed_it call-limit=2 disallow=g722 transport=udp qualify=yes canreinvite=no directmedia=no host=dynamic context=FAX-T38 faxdetect=no Larry. It's still not working but not throwing any errors at all. I've checked that the fax machine itself works (actually hoping that it wouldn't and that would explain my problem) by plugging it into a phone line and it does. Now getting the following == Using UDPTL CoS mark 5 == Using SIP RTP CoS mark 5 -- Executing [200@local:1] Goto(SIP/588-000b, fax-in,s,1) -- Goto (fax-in,s,1) -- Executing [s@fax-in:1] Answer(SIP/588-000b, ) -- Executing [s@fax-in:2] Wait(SIP/588-000b, 3) -- Executing [s@fax-in:3] Set(SIP/588-000b, FAXFILE=/tmp/fax-588-20120312-144800.tiff) -- Executing [s@fax-in:4] ReceiveFAX(SIP/588-000b, /tmp/fax-588-20120312-144800.tiff,f) -- Channel 'SIP/588-000b' receiving FAX '/tmp/fax-588-20120312-144800.tiff' -- Channel 'SIP/588-000b' FAX session '11' started -- FAX handle 0: [ 000.000190 ], STAT_EVT_STRT_RX st: IDLE rt: IDLENSRX -- FAX handle 0: [ 000.000277 ], STAT_EVT_RX_HW_RDY st: WT_RX_HW_RDY rt: RRDYNHRY -- FAX handle 0: [ 000.000308 ], P30EVN_RECEIVE_STARTED -- FAX handle 0: [ 000.000341 ], STAT_INFO_CSI -- FAX handle 0: [ 000.000377 ], STAT_INFO_DIS -- FAX handle 0: [ 002.174255 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21 -- FAX handle 0: [ 005.503113 ], STAT_EVT_T4_EXPst: WT_DIS_RSP rt: RXXXNFRX -- FAX handle 0: [ 005.503170 ], STAT_INFO_CSI -- FAX handle 0: [ 005.503202 ], STAT_INFO_DIS -- FAX handle 0: [ 007.669035 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21 -- FAX handle 0: [ 011.001891 ], STAT_EVT_T4_EXPst: WT_DIS_RSP rt: RXXXNFRX -- FAX handle 0: [ 011.001943 ], STAT_INFO_CSI -- FAX handle 0: [ 011.001974 ], STAT_INFO_DIS -- FAX handle 0: [ 013.169811 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21 -- FAX handle 0: [ 016.502670 ], STAT_EVT_T4_EXPst: WT_DIS_RSP rt: RXXXNFRX -- FAX handle 0: [ 016.502723 ], STAT_INFO_CSI -- FAX handle 0: [ 016.502753 ], STAT_INFO_DIS -- FAX handle 0: [ 018.668594 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21 -- FAX handle 0: [ 022.001447 ], STAT_EVT_T4_EXPst: WT_DIS_RSP rt: RXXXNFRX -- FAX handle 0: [ 022.001496 ], STAT_INFO_CSI -- FAX handle 0: [ 022.001527 ], STAT_INFO_DIS -- FAX handle 0: [ 024.169368 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21 -- FAX handle 0: [ 027.503224 ], STAT_EVT_T4_EXPst: WT_DIS_RSP rt: RXXXNFRX -- FAX handle 0: [ 027.503282 ], STAT_INFO_CSI -- FAX handle 0: [ 027.503313 ], STAT_INFO_DIS -- FAX handle 0: [ 029.669146 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21 -- FAX handle 0: [ 033.002003 ], STAT_EVT_T4_EXPst: WT_DIS_RSP rt: RXXXNFRX -- FAX handle 0: [ 033.002054 ], STAT_INFO_CSI -- FAX handle 0: [ 033.002084 ], STAT_INFO_DIS -- FAX handle 0: [ 035.169922 ], STAT_EVT_TX_V21_DONE st: WT_DIS_RSP rt: WDSRNT21 -- FAX handle 0: [ 038.502780 ], STAT_EVT_T4_EXPst: WT_DIS_RSP rt: RXXXNFRX -- FAX handle 0: [ 038.502835 ], STAT_INFO_CSI -- FAX handle 0: [ 038.502866 ], STAT_INFO_DIS -- FAX handle 0: [ 040.001719 ], STAT_EVT_T1_EXPst: WT_DIS_RSP rt: WDSRNT1X -- FAX handle 0: [ 040.001764 ], P30EVN_PHASE_E -- FAX handle 0: [ 040.001783 ], entering CLOSING state -- FAX handle 0: [ 040.001798 ], STAT_FRM_DCN -- FAX handle 0: [ 040.668702 ], STAT_EVT_TX_V21_DONE st: SEND_DCN rt: XDCNNT21 -- FAX handle 0: [ 041.195677 ], STAT_EVT_TX_V21_DONE st: WT_HW_CLS rt: UNEXPECT -- FAX handle 0: [ 043.170593 ], STAT_EVT_HW_CLOSE st:
Re: [asterisk-users] Problem with ReceiveFax
On Mon, 2012-03-12 at 14:53 +, Ishfaq Malik wrote: On Mon, 2012-03-12 at 09:11 -0400, Bryant Zimmerman wrote: Looking at the information you have sent in this posting in certainly appears that the 'f' option has indeed helped however you have another matter to overcome. You may wish to set the following parameters in your peer configuration for 588. ignoresdpversion=yes This one passed me by, thanks for the info directmedia=no I use Spandsp FAX successfully. I have also attached an analogue Fax Modem to the FXS port on an SPA8800 and an HT-502 and have been able to receive faxes on them when I last tested, the SPA8800 like the HT-502 are now in storage. Looking at the User Guide for the Vigor 2701 there is an option in the configuration to enable T.38 mode, did you enable it? Foolishly I hadn't and feel very stupid about that! In my sip.conf I have the following; [general] . . . faxdetect=cng t38pt_udptl=yes,redundancy,maxdatagram=400 tried this and ,fec, ;t38pt_usertpsource=yes had this already set . . . [903] ; Cisco SPA8800 FXS Port 3 ; Grandstream HT502 FXS Port 1 ; Analogue FAX Modem attached type=friend defaultuser=903 secret=you_guessed_it call-limit=2 disallow=g722 transport=udp qualify=yes canreinvite=no directmedia=no host=dynamic context=FAX-T38 faxdetect=no Larry. It's still not working but not throwing any errors at all. I've checked that the fax machine itself works (actually hoping that it wouldn't and that would explain my problem) by plugging it into a phone line and it does. Does anyone know if these settings are correct and if not, how to change them? CLI fax show settings FAX For Asterisk Settings: ECM: Enabled Status Events: On Minimum Bit Rate: 2400 Maximum Bit Rate: 14400 Modem Modulations Allowed: V17,V27,V29 FAX Technology Modules: DIGIUM (Digium FAX Driver) Settings: Maximum T.38 Packet Delay: 800 T.38 Session Packet Capture: Off G.711 Session Audio Capture: Off Ish -- Ishfaq Malik Software Developer PackNet Ltd Office: 0161 660 3062 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFax
On 12/03/2012 10:53 PM, Ishfaq Malik wrote: Thanks for the input so far. I'm going to keep plugging away and if anyone has any insights, they will be gladly appreciated. Ish In SIP Account Configuration on Draytek; Set Voice Active Detect to Off In Phone Settings on the Draytek; Enable Symmetric RTP Check Start End RTP Ports match values set in /etc/asterisk/udptl.conf for udptlstart udptlend In /etc/asterisk/udptl.conf set; use_even_ports=yes -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFax
On 03/12/2012 11:10 AM, Larry Moore wrote: Check Start End RTP Ports match values set in /etc/asterisk/udptl.conf for udptlstart udptlend This is unnecessary; the two endpoints are free to use different port ranges if they wish, it won't make any difference. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies Jabber: kflem...@digium.com | SIP: kpflem...@digium.com | Skype: kpfleming 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at www.digium.com www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFAX app from FFA
Ok, for the variables, I can retrieve some of them like the caller number and so on (I would assume that all the variables that last for duration of call are there), but I still think that I sould not use the h extension to continue after ReceiveFAX use, it's like not a lot of people use FFA, moreover very few came accross such an issue which is fine. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFAX app from FFA
From: khalid touati khalidtou...@gmail.com Sent: Tuesday, June 21, 2011 9:12 AM To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Problem with ReceiveFAX app from FFA Ok, for the variables, I can retrieve some of them like the caller number and so on (I would assume that all the variables that last for duration of call are there), but I still think that I sould not use the h extension to continue after ReceiveFAX use, it's like not a lot of people use FFA, moreover very few came accross such an issue which is fine. Here is a receivefax example. Note this is not a complete example just a snip. You have to use the h extension if you really want to make it all work. Don't fight it just do it. This is a standard process very similar to how you need to handle returns from Dial comands. f/F option is a special patch written by Kevin @ digium and will not be in the distro unitl 10.x FAX-MASTER_CHK-FAILED(${CALLERID(number)) FAX-MASTER_DO-FAILED() are database storage macro that stores and get's failed fax attempts so I can force a roll back. Store the fax vars in a database on success and fail. This lets me notify the user for either case. [fax_inbound_efax] exten = PFax,1,Set(SIP_CODEC=ulaw) exten = PFax,n,Set(l_faxoptions=f) exten = PFax,n,Set(l_faxhasfailed=${FAX-MASTER_CHK-FAILED(${CALLERID(number)},${p_Ca llSrcTrunk})}) exten = PFax,n,GotoIf($[${l_faxhasfailed}0]?audioonly:tryt38) exten = PFax,n(audioonly),Set(l_faxoptions=F) exten = PFax,n(tryt38),Answer() exten = PFax,n,Wait(2) exten = PFax,n,Set(l_faxFile_Base=${STRFTIME(,,%Y%m%d-%H%M)}_${RAND(1)}) exten = PFax,n,Set(l_faxFile_Path=/var/spool/fax_in/) exten = PFax,n,Set(l_faxFile_FullName=fax_${l_faxFile_Base}.tiff) exten = PFax,n,Set(l_faxFile=${l_faxFile_Path}${l_faxFile_FullName}) exten = PFax,n,ReceiveFAX(${l_faxFile},${l_faxoptions}) exten = h,1,NoOp(Do Fax Hangup) exten = h,n,Goto(Do-${FAXOPT(status)},1) exten = Do-SUCCESS,1,NoOp(Fax Success) exten = Do-SUCCESS,n,Goto(Do-Store,1) exten = Do-SUCCESS,n,NoOp(Return from System) exten = Do-FAILED,1,NoOp(Fax Failed) exten = Do-FAILED,n,GotoIf($[${l_faxoptions}=f]?DoLogFallback:DoNoFallback) exten = Do-FAILED,n(DoLogFallback),Set(FAX-MASTER_DO-FAILED()=${CALLERID(number)},${ p_CallSrcTrunk}) exten = Do-FAILED,n(DoNoFallback),Goto(Do-Store,1) exten = Do-Store,1,NoOp(Store Fax Data) exten = Do-Store,n,GotoIf($[${FAXOPT(rate)}=]?DoRate0:DoRate) exten = Do-Store,n(DoRate0),Set(l_storeRate=0) exten = Do-Store,n,Goto(DoDisplay) exten = Do-Store,n(DoRate),Set(l_storeRate=${FAXOPT(rate)}) exten = Do-Store,n(DoDisplay),NoOp(DT = ${STRFTIME(,,%Y-%m-%d %H:%M:%S)}) exten = Do-Store,n,NoOp(Fax Base = ${l_faxFile_Base}) exten = Do-Store,n,NoOp(Switch ID = ${gbl_switchid}) exten = Do-Store,n,NoOp(Account Code = ${gbl_actnumber}) exten = Do-Store,n,NoOp(Line Code = ${gbl_actlineid}) exten = Do-Store,n,NoOp(Caller ID Num = ${CALLERID(number)}) exten = Do-Store,n,NoOp(Caller ID Name = ${CALLERID(name)}) exten = Do-Store,n,NoOp(File Path = ${l_faxFile_Path}) exten = Do-Store,n,NoOp(File Name = ${l_faxFile_FullName}) exten = Do-Store,n,NoOp(opt emc = ${FAXOPT(ecm)}) exten = Do-Store,n,NoOp(opt filename = ${FAXOPT(filename)}) exten = Do-Store,n,NoOp(opt localstationid = ${FAXOPT(localstationid)}) exten = Do-Store,n,NoOp(opt headerinfo = ${FAXOPT(headerinfo)}) exten = Do-Store,n,NoOp(opt remotestationid = ${FAXOPT(remotestationid)}) exten = Do-Store,n,NoOp(opt maxrate = ${FAXOPT(maxrate)}) exten = Do-Store,n,NoOp(opt minrate = ${FAXOPT(minrate)}) exten = Do-Store,n,NoOp(opt rate = ${l_storeRate}) exten = Do-Store,n,NoOp(opt pages = ${FAXOPT(pages)}) exten = Do-Store,n,NoOp(opt resolution = ${FAXOPT(resolution)}) exten = Do-Store,n,NoOp(opt error = ${FAXOPT(error)}) exten = Do-Store,n,NoOp(opt status = ${FAXOPT(status)}) exten = Do-Store,n,NoOp(opt statusstr = ${FAXOPT(statusstr)}) exten = Do-Store,n,Run some kind of macro or storage/email script here Good luck Bryant -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFAX app from FFA
On 06/21/2011 09:12 PM, khalid touati wrote: Ok, for the variables, I can retrieve some of them like the caller number and so on (I would assume that all the variables that last for duration of call are there), but I still think that I sould not use the h extension to continue after ReceiveFAX use, it's like not a lot of people use FFA, moreover very few came accross such an issue which is fine. Why do so may people think their problems are unique. Many people use FFA and spandsp. They all come across this. The issue is widely known, well understood, and not at all strange once you think about it. Steve -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFAX app from FFA
@ Bryant: thanks so much for the interesting figure of use. Why do so may people think their problems are unique. Many people use FFA and spandsp. They all come across this. The issue is widely known, well understood, and not at all strange once you think about it. Steve @ Steve: don't get that mad dude, my impression is only My impression and it only affects me, so nothing to worry about, i'd rather discuss asterisk issues instead of discussing my impression, but thanks for your help. -- __**__**_ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/**mailman/listinfo/asterisk-**usershttp://lists.digium.com/mailman/listinfo/asterisk-users -- Abdullah -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFAX app from FFA
On 20/06/2011 8:18 AM, Steve Underwood wrote: On 06/20/2011 03:38 AM, khalid touati wrote: Hi Guys, I solved temporarely my issue by kind of tricking Asterisk, I used the following line instead of the old: exten = h,n,System('/usr/local/ bin/fax2mail -p -f ${FAXFILENOEXT} --cid-number ${CALLERID(num)} --cid-name ${CALLERID(name)} --dest-name Sir/Madam') now when it hang up I receive my fax through email, and let me tell you (first time using Free Fax from Asterisk) ReceiveFAX catch well faxes, just a couple tries but got them all, let's see with more faxes what will happen. Why do you consider this a temporary fix? The far end machine will normally hang up at the end of the FAX, so the hangup option in the dialplan is exactly where you should expect to be. I don't know the specifics of how an Asterisk application should exit however WRT ReceiveFAX() using SPANDSP Technology I would expect the call to descend to any functions below ReceiveFAX() whether or not the facsimile was received successfully, the status codes from ReceiveFAX() can be used by whatever is called next, e.g. a script to e-mail the received facsimile or a report advising errors were encountered. I am using a macro to receive faxes, I have placed my System() call back to were the macro returns after execution due to the function not being called after ReceiveFAX() under certain conditions. This however does not guarantee getting an e-mail of what has been received if the sender decides to abort the transmission. I can reproduce this using HylaFAX to send a fax to an extension which Asterisk ReceiveFAX(filename,f) will accept, granted it will fall back to G.711 mode when receiving, when I abort the transmission using WHFC client, it is as though ReceiveFAX() goes of somewhere else or simply decides to forget where it came from as it does not appear to return hence the System() call is never made. I should point out I am using extensions.ael for my dialplan. I personally have considered this behaviour to possibly be a bug. Cheers, Larry. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFAX app from FFA
On Mon, Jun 20, 2011 at 7:44 AM, Larry Moore lmo...@starwon.com.au wrote: snip I personally have considered this behaviour to possibly be a bug. Once a fax is sent, the sending fax machine typically hangs up the call - sending the call to the h extension. It's the same as if you are on an actual call that was connected using the Dial() application, and the other end hangs up - the next step is the 'h' extension, not to continue in the current dialplan. I don't see how this is a bug, unless you think the entire call-flow paradigm that currently exists in asterisk is a bug. Now, if you're not getting certain variables to pass into the 'h' extension, that you feel should indeed be passed into the 'h' extension, that may be considered a bug...but you would need to show us CLI output and existing dialplan for followup. -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com http://www.selbytech.com -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFAX app from FFA
From: Warren Selby wcse...@selbytech.com Sent: Monday, June 20, 2011 3:00 PM To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Problem with ReceiveFAX app from FFA On Mon, Jun 20, 2011 at 7:44 AM, Larry Moore lmo...@starwon.com.au wrote: snip I personally have considered this behaviour to possibly be a bug. Once a fax is sent, the sending fax machine typically hangs up the call - sending the call to the h extension. It's the same as if you are on an actual call that was connected using the Dial() application, and the other end hangs up - the next step is the 'h' extension, not to continue in the current dialplan. I don't see how this is a bug, unless you think the entire call-flow paradigm that currently exists in asterisk is a bug. Now, if you're not getting certain variables to pass into the 'h' extension, that you feel should indeed be passed into the 'h' extension, that may be considered a bug...but you would need to show us CLI output and existing dialplan for followup. -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com Waren I concur we use the h extension to log inbound faxes to a database and then we process them outside the asterisk platform. Our biggest issue with ReceiveFAX is about a 20% t.38 negotiation fail ratio. We then force fall back to t.30 for the next call from that number. We would like to see better success with t.38. Today our primary server has had 910 faxes of which 707 negotiated t.38, 44 have failed darn robo dialers, The rest failed the first attempt and came in T.30 on the second call. Thanks Bryant -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Problem with ReceiveFAX app from FFA
On Mon, Jun 20, 2011 at 2:43 PM, Bryant Zimmerman brya...@zktech.comwrote: I concur we use the h extension to log inbound faxes to a database and then we process them outside the asterisk platform. Our biggest issue with ReceiveFAX is about a 20% t.38 negotiation fail ratio. We then force fall back to t.30 for the next call from that number. We would like to see better success with t.38. Today our primary server has had 910 faxes of which 707 negotiated t.38, 44 have failed darn robo dialers, The rest failed the first attempt and came in T.30 on the second call I'm not sure how much of this is the fault of FFA versus the fault of shoddy t.38 implementations out in the wild. I've had a ton of headaches trying to get t.38 solutions implemented with various ITSP's and FFA. I've heard that the free SpanDSP version has better negotiation rates, however, I have not personally tested them. In the end, for mission critical fax applications (yes, these still exist, especially in the financial sector), I tend to go with a dedicated line and DID used in conjunction with an FXO device or T1 device, an IAXModem connection over a local, low-latency LAN, and setup a dialplan pass-through to a hylafax server. -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com http://www.selbytech.com -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Problem with ReceiveFAX app from FFA
Hi all, I am running to the following problem, when using the below dialplan to receive fax, everything works perfect till this line exten = receive,n,ReceiveFAX(${FAXFILE}): and then the following line cannot be executed, it's like asterisk can't go back to dialplan and continue, the good news is when i check what is received in my fax folder i find that the file is a valid one (not corrupted or empty), also when I use another way to execute fax2mail, it's working perfect and sent right to my email (test was done with the same file received by ReceiveFAX), so I belive the problem is just when transiting from the line that call ReceiveFAX and the line that call fax2mail (but both work not in order or separately), the debugging of PRI channel is below dialplan (maybe i will need to turn on debugging in receiveFAX app as well), please advise! I am using asterisk 1.6.2.11, FAX For Asterisk Components: Applications: 1.6.2.0_1.2.1 Digium FAX Driver: 1.6.2.0_1.2.1 (optimized for barcelona_64) [fax-rx] exten = receive,1,NoOp( FAX RECEIVE ) exten = receive,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ]) exten = receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)}) exten = receive,n,Set(FAXFILE=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T_${CALLERID(num)})}.tif) exten = receive,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T_${CALLERID(num)})}) exten = receive,n,Set(GLOBAL(LASTFAXCALLERNUM)=${CALLERID(num)}) exten = receive,n,Set(GLOBAL(LASTFAXCALLERNAME)=${CALLERID(name)}) exten = receive,n,NoOp( SETTING FAXOPT ) exten = receive,n,Set(FAXOPT(ecm)=yes) exten = receive,n,Set(FAXOPT(headerinfo)=MY FAXBACK RX) exten = receive,n,Set(FAXOPT(localstationid)=15184893772) exten = receive,n,Set(FAXOPT(maxrate)=14400) exten = receive,n,Set(FAXOPT(minrate)=2400) exten = receive,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)}) exten = receive,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)}) exten = receive,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)}) exten = receive,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)}) exten = receive,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)}) exten = receive,n,NoOp( RECEIVING FAX : ${FAXFILE} ) exten = receive,n,ReceiveFAX(${FAXFILE}) exten = receive,n,System('/usr/local/bin/fax2mail -p -f ${FAXFILENOEXT} --cid-number ${CALLERID(num)} --cid-name ${CALLERID(name)} --dest-name Sir/Madam') *debug:* pbx3*CLI -- Executing [receive@fax-rx:20] ReceiveFAX(DAHDI/1-1, /var/spool/asterisk/fax/2011-06-18_12:52:44_8009806858.tif) in new stack q931.c:5088 q931_connect: Call 14288 enters state 8 (Connect Request). Hold state: Idle pbx3*CLI pbx3*CLI DL-DATA request pbx3*CLI Protocol Discriminator: Q.931 (8) len=14 pbx3*CLI TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator) pbx3*CLI Message Type: CONNECT (7) TEI=0 Transmitting N(S)=1, window is open V(A)=0 K=7 pbx3*CLI pbx3*CLI Protocol Discriminator: Q.931 (8) len=14 pbx3*CLI TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator) Message Type: CONNECT (7) pbx3*CLI [18 03 a9 83 81] Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0 pbx3*CLI ChanSel: As indicated in following octets Ext: 1 Coding: 0 Number Specified Channel Type: 3 pbx3*CLI Ext: 1 Channel: 1 Type: CPE] [1e 02 81 82] pbx3*CLI Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1) pbx3*CLI Ext: 1 Progress Description: Called equipment is non-ISDN. (2) ] pbx3*CLI -- Channel 'DAHDI/1-1' receiving FAX '/var/spool/asterisk/fax/2011-06-18_12:52:44_8009806858.tif' pbx3*CLI -- Channel 'DAHDI/1-1' FAX session '7' started pbx3*CLI Protocol Discriminator: Q.931 (8) len=5 TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator) Message Type: CONNECT ACKNOWLEDGE (15) pbx3*CLI Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI 0/0 q931.c:7785 post_handle_q931_message: Call 14288 enters state 10 (Active). Hold state: Idle pbx3*CLI -- FAX handle 0: [ 104.899463 ], entering CLOSING state -- FAX handle 0: [ 104.899528 ], entering CLOSING state pbx3*CLI Protocol Discriminator: Q.931 (8) len=9 TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator) Message Type: DISCONNECT (69) [08 02 82 90] pbx3*CLI Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2) Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ] Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI 0/0 -- Processing IE 8 (cs0, Cause) pbx3*CLI -- Found active call: 0x2aaac80812d0 cref:14288 q931.c:7994 post_handle_q931_message: Call 14288 enters state 12 (Disconnect Indication). Hold state: Idle pbx3*CLI -- Channel 0/1, span 1 got hangup request,
Re: [asterisk-users] Problem with ReceiveFAX app from FFA
Hi Guys, I solved temporarely my issue by kind of tricking Asterisk, I used the following line instead of the old: exten = h,n,System('/usr/local/ bin/fax2mail -p -f ${FAXFILENOEXT} --cid-number ${CALLERID(num)} --cid-name ${CALLERID(name)} --dest-name Sir/Madam') now when it hang up I receive my fax through email, and let me tell you (first time using Free Fax from Asterisk) ReceiveFAX catch well faxes, just a couple tries but got them all, let's see with more faxes what will happen. On Sun, Jun 19, 2011 at 12:24 PM, khalid touati khalidtou...@gmail.comwrote: Hi all, I am running to the following problem, when using the below dialplan to receive fax, everything works perfect till this line exten = receive,n,ReceiveFAX(${FAXFILE}): and then the following line cannot be executed, it's like asterisk can't go back to dialplan and continue, the good news is when i check what is received in my fax folder i find that the file is a valid one (not corrupted or empty), also when I use another way to execute fax2mail, it's working perfect and sent right to my email (test was done with the same file received by ReceiveFAX), so I belive the problem is just when transiting from the line that call ReceiveFAX and the line that call fax2mail (but both work not in order or separately), the debugging of PRI channel is below dialplan (maybe i will need to turn on debugging in receiveFAX app as well), please advise! I am using asterisk 1.6.2.11, FAX For Asterisk Components: Applications: 1.6.2.0_1.2.1 Digium FAX Driver: 1.6.2.0_1.2.1 (optimized for barcelona_64) [fax-rx] exten = receive,1,NoOp( FAX RECEIVE ) exten = receive,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ]) exten = receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)}) exten = receive,n,Set(FAXFILE=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T_${CALLERID(num)})}.tif) exten = receive,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T_${CALLERID(num)})}) exten = receive,n,Set(GLOBAL(LASTFAXCALLERNUM)=${CALLERID(num)}) exten = receive,n,Set(GLOBAL(LASTFAXCALLERNAME)=${CALLERID(name)}) exten = receive,n,NoOp( SETTING FAXOPT ) exten = receive,n,Set(FAXOPT(ecm)=yes) exten = receive,n,Set(FAXOPT(headerinfo)=MY FAXBACK RX) exten = receive,n,Set(FAXOPT(localstationid)=15184893772) exten = receive,n,Set(FAXOPT(maxrate)=14400) exten = receive,n,Set(FAXOPT(minrate)=2400) exten = receive,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)}) exten = receive,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)}) exten = receive,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)}) exten = receive,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)}) exten = receive,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)}) exten = receive,n,NoOp( RECEIVING FAX : ${FAXFILE} ) exten = receive,n,ReceiveFAX(${FAXFILE}) exten = receive,n,System('/usr/local/bin/fax2mail -p -f ${FAXFILENOEXT} --cid-number ${CALLERID(num)} --cid-name ${CALLERID(name)} --dest-name Sir/Madam') *debug:* pbx3*CLI -- Executing [receive@fax-rx:20] ReceiveFAX(DAHDI/1-1, /var/spool/asterisk/fax/2011-06-18_12:52:44_8009806858.tif) in new stack q931.c:5088 q931_connect: Call 14288 enters state 8 (Connect Request). Hold state: Idle pbx3*CLI pbx3*CLI DL-DATA request pbx3*CLI Protocol Discriminator: Q.931 (8) len=14 pbx3*CLI TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator) pbx3*CLI Message Type: CONNECT (7) TEI=0 Transmitting N(S)=1, window is open V(A)=0 K=7 pbx3*CLI pbx3*CLI Protocol Discriminator: Q.931 (8) len=14 pbx3*CLI TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent to originator) Message Type: CONNECT (7) pbx3*CLI [18 03 a9 83 81] Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0 pbx3*CLI ChanSel: As indicated in following octets Ext: 1 Coding: 0 Number Specified Channel Type: 3 pbx3*CLI Ext: 1 Channel: 1 Type: CPE] [1e 02 81 82] pbx3*CLI Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1) pbx3*CLI Ext: 1 Progress Description: Called equipment is non-ISDN. (2) ] pbx3*CLI -- Channel 'DAHDI/1-1' receiving FAX '/var/spool/asterisk/fax/2011-06-18_12:52:44_8009806858.tif' pbx3*CLI -- Channel 'DAHDI/1-1' FAX session '7' started pbx3*CLI Protocol Discriminator: Q.931 (8) len=5 TEI=0 Call Ref: len= 2 (reference 14288/0x37D0) (Sent from originator) Message Type: CONNECT ACKNOWLEDGE (15) pbx3*CLI Received message for call 0x2aaac80812d0 on link 0x2aaac8035bb8 TEI/SAPI 0/0 q931.c:7785 post_handle_q931_message: Call 14288 enters state 10 (Active). Hold state: Idle pbx3*CLI -- FAX handle 0: [ 104.899463 ], entering CLOSING state -- FAX handle 0: [ 104.899528 ], entering CLOSING state pbx3*CLI Protocol Discriminator: Q.931 (8)
Re: [asterisk-users] Problem with ReceiveFAX app from FFA
On 06/20/2011 03:38 AM, khalid touati wrote: Hi Guys, I solved temporarely my issue by kind of tricking Asterisk, I used the following line instead of the old: exten = h,n,System('/usr/local/ bin/fax2mail -p -f ${FAXFILENOEXT} --cid-number ${CALLERID(num)} --cid-name ${CALLERID(name)} --dest-name Sir/Madam') now when it hang up I receive my fax through email, and let me tell you (first time using Free Fax from Asterisk) ReceiveFAX catch well faxes, just a couple tries but got them all, let's see with more faxes what will happen. Why do you consider this a temporary fix? The far end machine will normally hang up at the end of the FAX, so the hangup option in the dialplan is exactly where you should expect to be. If you need a couple of tries for some of your FAXes, it doesn't sound like FFA is working very well for you. Check the timing of your telephony channel. If you get more than 1% failures when sending FAXes to and from your own equipment you should be looking into the cause. Steve -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users