Ticket #1575 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

Incoming FAX don't work on freePBX 2.2rc1

Reported by: suhas Assigned to: RobThomas
Priority: minor Milestone:
Component: Core Version: 2.2rc1
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description (Last modified by vgster)

I am trying to receive fax on one of my extension but cud not get thru it. Need some help on it.

Trixbox 1.2.3
freePBX 2.2 rc1
TE110P with E1 Line

Zatapa.conf

faxdetect=both
context=from-pstn ; from-zaptel don't work with DID's for me

Extensions.conf
[from-pstn]
exten => fax,1,Goto(ext-fax,in_fax,1)
include => ext-fax
include => from-pstn-custom ; create this context in extensions_custom.conf to include customizations
include => ext-did-direct ; MODIFICATOIN (PL) put before ext-did to take precedence
include => ext-did
include => from-did-direct ; MODIFICATOIN (PL) for findmefollow if enabled, should be bofore ext-local

[ext-fax]
exten => s,1,Answer
exten => s,2,Goto(in_fax,1)
exten => in_fax,1,StopPlayTones 
exten => in_fax,2,GotoIf($["${FAX_RX}" = "system"]?3:analog_fax,1)
exten => in_fax,3,Macro(faxreceive)
exten => in_fax,4,Hangup
exten => analog_fax,1,GotoIf($["${FAX_RX}" = "disabled"]?4:2) ;if fax is disabled, just hang up
exten => analog_fax,2,Set(DIAL=${DB(DEVICE/${FAX_RX}/dial)});
exten => analog_fax,3,Dial(${DIAL},20,d)
exten => analog_fax,4,Hangup
;exten => out_fax,1,wait(7)
exten => out_fax,1,txfax(${TXFAX_NAME}|caller)
exten => out_fax,2,Hangup
exten => h,1,system(/var/lib/asterisk/bin/fax-process.pl --to ${EMAILADDR} --from ${FAX_RX_FROM} --subject "Fax from ${URIENCODE(${CALLERID(number)})} ${URIENCODE(${CALLERID(name)})}" --attachment fax_${URIENCODE(${CALLERID(number)})}.pdf --type application/pdf --file ${FAXFILE});
exten => h,2,Hangup()

extensions_additional.conf
[ext-did-direct]
include => ext-did-direct-custom
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => 6610,1,Set(FROM_DID=6610)
exten => 6610,n,Set(FAX_RX=system)
exten => 6610,n,Set(FAX_RX_EMAIL=user1@mydomain.com)
exten => 6610,n,Goto(from-did-direct,6610,1) ; if I change it to Goto(ext-fax|in_fax|1)
exten => 6611,1,Set(FROM_DID=6611)
exten => 6611,n,Set(FAX_RX=system)
exten => 6611,n,Set(FAX_RX_EMAIL=user2@mydomain.com)
exten => 6611,n,Answer
exten => 6611,n,Wait(5)
exten => 6611,n,Goto(from-did-direct,6611,1)
exten => 6701,1,Set(FROM_DID=6701)
exten => 6701,n,Set(FAX_RX=system)
exten => 6701,n,Set(FAX_RX_EMAIL=user3@mydomain.com)
exten => 6701,n,Goto(from-did-direct,6701,1)
exten => 6810,1,Set(FROM_DID=6810)
exten => 6810,n,Set(FAX_RX=system)
exten => 6810,n,Set(FAX_RX_EMAIL=user4@mydomain.com)
exten => 6810,n,Goto(from-did-direct,6810,1)

Change History

(follow-up: ↓ 2 ) 12/21/06 00:39:34 changed by vgster

  • description changed.

Are the fax tones heard when the machine tries to make contact and are you running app_rxfax or nvbackgrounddetect? Is the fax destined for a fax machine of the system?

(in reply to: ↑ 1 ) 12/21/06 00:44:35 changed by suhas

Replying to vgster:

Are the fax tones heard when the machine tries to make contact and are you running app_rxfax or nvbackgrounddetect? Is the fax destined for a fax machine of the system?

No. It gives out and engage tone to the caller fax machine. The fax is destined for a fax machine of system. I tried both "zap" and NVfax but did not work

12/21/06 01:53:55 changed by vgster

What gives out an engaaged tone? Have you watched the call progress in the console? Selecting Zap and NVFAX in the gui is pointless if you don't have the relevant modules loaded into your Asterisk. Do you have the required asterisk modules?

12/21/06 02:16:04 changed by suhas

asterisk*CLI> show applications

NVBackgroundDetect: Background a file with talk and fax detect (IAX and SIP too) NVFaxDetect: Detects fax sounds on all channel types (IAX and SIP too)

RxFAX: Receive a FAX to a file TxFAX: Send a FAX file

I can see all these applications in my server.. Which is the one required to detect the fax tone?

Following is the log when i try to send fax on XXXX6611

Accepting call from 'XXXXXXXXXX' to '6611' on channel 0/19, span 1

-- Executing Set("Zap/19-1", "FROM_DID=6611") in new stack -- Executing Set("Zap/19-1", "FAX_RX=system") in new stack -- Executing Set("Zap/19-1", "FAX_RX_EMAIL=user2@mydomain.com") in new stack -- Executing Answer("Zap/19-1", "") in new stack -- Executing Wait("Zap/19-1", "5") in new stack -- Executing Goto("Zap/19-1", "from-did-direct|6611|1") in new stack -- Goto (from-did-direct,6611,1) -- Executing Macro("Zap/19-1", "exten-vm|novm|6611") in new stack -- Executing Macro("Zap/19-1", "user-callerid") in new stack -- Executing GotoIf?("Zap/19-1", "0?report") in new stack -- Executing GotoIf?("Zap/19-1", "0?start") in new stack -- Executing Set("Zap/19-1", "REALCALLERIDNUM=XXXXXXXXXX") in new stack -- Executing NoOp?("Zap/19-1", "REALCALLERIDNUM is XXXXXXXXXX") in new stack -- Executing Set("Zap/19-1", "AMPUSER=") in new stack -- Executing Set("Zap/19-1", "AMPUSERCIDNAME=") in new stack -- Executing GotoIf?("Zap/19-1", "1?report") in new stack -- Goto (macro-user-callerid,s,10) -- Executing NoOp?("Zap/19-1", "TTL: ARG1: novm") in new stack -- Executing GotoIf?("Zap/19-1", "0?continue") in new stack -- Executing Set("Zap/19-1", "_TTL=64") in new stack -- Executing GotoIf?("Zap/19-1", "1?continue") in new stack -- Goto (macro-user-callerid,s,20) -- Executing NoOp?("Zap/19-1", "Using CallerID "" <XXXXXXXXXX>") in new stack -- Executing NoOp?("Zap/19-1", "CAME FROM: ") in new stack -- Executing Set("Zap/19-1", "RRNODEST=") in new stack -- Executing Set("Zap/19-1", "_NODEST=") in new stack -- Executing Set("Zap/19-1", "FROMCONTEXT=exten-vm") in new stack -- Executing Set("Zap/19-1", "VMBOX=novm") in new stack -- Executing Set("Zap/19-1", "EXTTOCALL=6611") in new stack -- Executing Set("Zap/19-1", "CFUEXT=") in new stack -- Executing Set("Zap/19-1", "RT=") in new stack -- Executing Macro("Zap/19-1", "record-enable|6611|IN") in new stack -- Executing GotoIf?("Zap/19-1", "0 > 0?2:4") in new stack -- Goto (macro-record-enable,s,4) -- Executing DeadAGI("Zap/19-1", "recordingcheck|20061221-155420|1166696655.863") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck

recordingcheck|20061221-155420|1166696655.863: Inbound recording not enabled

-- AGI Script recordingcheck completed, returning 0 -- Executing NoOp?("Zap/19-1", "No recording needed") in new stack -- Executing GotoIf?("Zap/19-1", "0?dolocaldial|1") in new stack

-- Executing Macro("Zap/19-1", "dialtr|6611") in new stack -- Executing DeadAGI("Zap/19-1", "dialparties.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi

dialparties.agi: Starting New Dialparties.agi dialparties.agi: priority is 1 dialparties.agi: Caller ID name is 'unknown' number is 'XXXXXXXXXX' dialparties.agi: Methodology of ring is 'none'

> dialparties.agi: USE_CONFIRMATION: 'FALSE' > dialparties.agi: RINGGROUP_INDEX:

-- dialparties.agi: Added extension 6611 to extension map -- dialparties.agi: Extension 6611 cf is disabled -- dialparties.agi: Extension 6611 do not disturb is disabled

> dialparties.agi: extnum: 6611 > dialparties.agi: exthascw: 0 > dialparties.agi: exthascfb: 0 > dialparties.agi: extcfb: > dialparties.agi: exthascfu: 0 > dialparties.agi: extcfu:

== Parsing '/etc/asterisk/manager.conf': Found == Parsing '/etc/asterisk/manager_custom.conf': Found == Manager 'admin' logged on from 127.0.0.1 == Manager 'admin' logged off from 127.0.0.1

> dialparties.agi: ExtensionState?: 4

dialparties.agi: Extension 6611 has ExtensionState?: 4

-- dialparties.agi: Checking CW and CFB status for extension 6611 -- dialparties.agi: dbset CALLTRACE/6611 to XXXXXXXXXX -- AGI Script dialparties.agi completed, returning 0

-- Executing Dial("Zap/19-1", "SIP/6611tr") in new stack

== Everyone is busy/congested at this time (1:0/0/1)

-- Executing GosubIf?("Zap/19-1", "0?docfu|1") in new stack -- Executing NoOp?("Zap/19-1", "Voicemail is novm") in new stack -- Executing GotoIf?("Zap/19-1", "1?s-CHANUNAVAIL|1") in new stack -- Goto (macro-exten-vm,s-CHANUNAVAIL,1) -- Executing PlayTones?("Zap/19-1", "congestion") in new stack -- Executing Congestion("Zap/19-1", "10") in new stack -- Channel 0/19, span 1 got hangup request

== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 2) exited non-zero on 'Zap/19-1' in macro 'exten-vm' == Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 2) exited non-zero on 'Zap/19-1'

-- Hungup 'Zap/19-1'

12/21/06 12:14:01 changed by IanR

We have attempted to use TrixBox/FreePBX since *@H times to provide fax detection and to simply pass a fax to a fax m/c on an extension. It has only ever worked using the not "from-zaptel" context.

We note that the famous:

[ext-did-custom] exten => fax,1,Goto(ext-fax,in_fax,1)

is sprayed all around FreePBX RC1 and have added it as usual to to the custom bits.

BUT, still if we use from-zaptel it does not work, as soon as we go to the global AnyDID/AnyCID, fax detection works fine.

We noted that this bug had been closed recently - but we are not convinced. We think it is still a bug in from zaptel and it is a major issue since fax handling is a pre-requisite for a PBX.

12/22/06 22:31:51 changed by p_lindheimer

  • priority changed from major to minor.
  • resolution set to fixed.
  • status changed from new to closed.
  • component changed from - choose - to Core.

there was no fax extension in the from zaptel context (this is a dup of that bug). That was added and should be in 2.2rc2. If it is still an issue, re-open with the proper traces for further examination.

To address your comment though: "and it is a major issue since fax handling is a pre-requisite for a PBX" - freepbx has no problem handling faxes and does more than most pbx's out there. If you are so keen on your faxes, then get a did for your fax machine, use that did to send faxes and have it go to an fxs card and a real fax. I believe you will find that is how most pbx's handle faxes...

12/22/06 22:36:55 changed by suhas

What about the context from-pstn, It is not wroking in from-pstn tooo. Can you please look after it.

12/22/06 22:40:42 changed by p_lindheimer

post the specific scenario please, if it comes into from-pstn, it should shuffle over to ext-did where the fax handling is done.

12/22/06 22:45:09 changed by suhas

  • status changed from closed to reopened.
  • resolution deleted.

PLease refer my first post in this thread and you should get answers to your questions.

12/23/06 15:20:12 changed by RobThomas

I've realised what the problem is - we're not doing an Answer() in from-zaptel. I do my testing on ISDN, where you don't NEED to do an answer first for fax detection.

12/25/06 04:31:48 changed by vgster

Is this now fixed in rc3?

12/26/06 19:29:19 changed by RobThomas

No, it's not. I'll lab up a test here.

01/01/07 21:09:11 changed by RobThomas

  • status changed from reopened to closed.
  • resolution set to fixed.

Actually, yes, it _IS_ fixed.. It is doing an Answer() in from-zaptel, so this should work fine. This doesn't take into account the picky-ness of fax-detection, and I also noticed that your delay is only 5 seconds. Try setting it to 7 seconds.

--Rob

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads