Receiving Faxes

Hi All,

I’m trying to receive faxes and send by email.

FreePBX 2.10.1.9
Asterisk 10.11.0

Do I need to install the ‘Free Fax from Digium’ module to enable faxing? I can currently dial 666 and receive a fax tone, so it seems there is already a fax module installed.

I’ve setup a virtual extension <299>, and enabled fax along with an email address.

However, when I dial this extension, either directly from a handset or through an inbound route, I get a congestion tone.

In the example below, I am dialing from extension 200 to the fax extension 299.

== Using SIP RTP CoS mark 5 -- Executing [[email protected]:1] Set("SIP/200-0000010f", "__RINGTIMER=15") in new stack -- Executing [[email protected]:2] Macro("SIP/200-0000010f", "exten-vm,novm,299,0,0,0") in new stack -- Executing [[email protected]:1] Macro("SIP/200-0000010f", "user-callerid,") in new stack -- Executing [[email protected]:1] Set("SIP/200-0000010f", "AMPUSER=200") in new stack -- Executing [[email protected]o-user-callerid:2] GotoIf("SIP/200-0000010f", "0?report") in new stack
-- Executing [[email protected]:3] ExecIf("SIP/200-0000010f", "1?Set(REALCALLERIDNUM=200)") in new stack
-- Executing [[email protected]:4] Set("SIP/200-0000010f", "AMPUSER=200") in new stack
-- Executing [[email protected]:5] Set("SIP/200-0000010f", "AMPUSERCIDNAME=Reception") in new stack
-- Executing [[email protected]:6] GotoIf("SIP/200-0000010f", "0?report") in new stack
-- Executing [[email protected]:7] Set("SIP/200-0000010f", "AMPUSERCID=200") in new stack
-- Executing [[email protected]:8] Set("SIP/200-0000010f", "CALLERID(all)="Reception" <200>") in new stack
-- Executing [[email protected]:9] GotoIf("SIP/200-0000010f", "0?limit") in new stack
-- Executing [[email protected]:10] ExecIf("SIP/200-0000010f", "0?Set(GROUP(concurrency_limit)=200)") in new stack
-- Executing [[email protected]:11] ExecIf("SIP/200-0000010f", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [[email protected]:12] GosubIf("SIP/200-0000010f", "7?sub-ccss,s,1(macro-exten-vm,299)") in new stack
-- Executing [[email protected]:1] ExecIf("SIP/200-0000010f", "0?Return()") in new stack
-- Executing [[email protected]:2] Set("SIP/200-0000010f", "CCSS_SETUP=TRUE") in new stack
-- Executing [[email protected]:3] GosubIf("SIP/200-0000010f", "0?monitor_config,1(macro-exten-vm,299):monitor_default,1(macro-exten-vm,299)") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/200-0000010f", "1?is_exten") in new stack
-- Goto (sub-ccss,monitor_default,4)
-- Executing [[email protected]:4] Set("SIP/200-0000010f", "CALLCOMPLETION(cc_monitor_policy)=generic") in new stack
-- Executing [[email protected]:5] Set("SIP/200-0000010f", "CALLCOMPLETION(cc_max_monitors)=5") in new stack
-- Executing [[email protected]:6] Return("SIP/200-0000010f", "TRUE") in new stack
-- Executing [[email protected]:4] GosubIf("SIP/200-0000010f", "7?agent_config,1():agent_default,1()") in new stack
-- Executing [[email protected]:1] Set("SIP/200-0000010f", "CALLCOMPLETION(cc_agent_policy)=generic") in new stack
-- Executing [[email protected]:2] Set("SIP/200-0000010f", "CALLCOMPLETION(cc_offer_timer)=30") in new stack
-- Executing [[email protected]:3] Set("SIP/200-0000010f", "CALLCOMPLETION(ccbs_available_timer)=") in new stack
-- Executing [[email protected]:4] Set("SIP/200-0000010f", "CALLCOMPLETION(ccnr_available_timer)=") in new stack
-- Executing [[email protected]:5] Set("SIP/200-0000010f", "CALLCOMPLETION(cc_callback_macro)=ccss-default") in new stack
-- Executing [[email protected]:6] ExecIf("SIP/200-0000010f", "1?Set(CALLCOMPLETION(cc_recall_timer)=)") in new stack
-- Executing [[email protected]:7] ExecIf("SIP/200-0000010f", "1?Set(CALLCOMPLETION(cc_max_agents)=)") in new stack
-- Executing [[email protected]:8] ExecIf("SIP/200-0000010f", "0?Set(CALLCOMPLETION(cc_agent_dialstring)=Local/[email protected])") in new stack
-- Executing [[email protected]:9] Set("SIP/200-0000010f", "CALLCOMPLETION(cc_callback_macro)=ccss-default") in new stack
-- Executing [[email protected]:10] Return("SIP/200-0000010f", "") in new stack
-- Executing [[email protected]:5] Set("SIP/200-0000010f", "DB(AMPUSER/200/ccss/last_number)=299") in new stack
-- Executing [[email protected]:6] Return("SIP/200-0000010f", "") in new stack
-- Executing [[email protected]:13] GotoIf("SIP/200-0000010f", "0?continue") in new stack
-- Executing [[email protected]:14] Set("SIP/200-0000010f", "__TTL=64") in new stack
-- Executing [[email protected]:15] GotoIf("SIP/200-0000010f", "1?continue") in new stack
-- Goto (macro-user-callerid,s,26)
-- Executing [[email protected]:26] Set("SIP/200-0000010f", "CALLERID(number)=200") in new stack
-- Executing [[email protected]:27] Set("SIP/200-0000010f", "CALLERID(name)=Reception") in new stack
-- Executing [[email protected]:28] Set("SIP/200-0000010f", "CHANNEL(language)=en") in new stack
-- Executing [[email protected]:2] Set("SIP/200-0000010f", "RingGroupMethod=none") in new stack
-- Executing [[email protected]:3] Set("SIP/200-0000010f", "__EXTTOCALL=299") in new stack
-- Executing [[email protected]:4] Set("SIP/200-0000010f", "__PICKUPMARK=299") in new stack
-- Executing [[email protected]:5] Set("SIP/200-0000010f", "RT=") in new stack
-- Executing [[email protected]:6] Gosub("SIP/200-0000010f", "sub-record-check,s,1(exten,299,)") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/200-0000010f", "1?check") in new stack
-- Goto (sub-record-check,s,6)
-- Executing [[email protected]:6] Set("SIP/200-0000010f", "__MON_FMT=wav") in new stack
-- Executing [[email protected]:7] GotoIf("SIP/200-0000010f", "1?next") in new stack
-- Goto (sub-record-check,s,10)
-- Executing [[email protected]:10] ExecIf("SIP/200-0000010f", "0?Return()") in new stack
-- Executing [[email protected]:11] GotoIf("SIP/200-0000010f", "0?exten,1") in new stack
-- Executing [[email protected]:12] Set("SIP/200-0000010f", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [[email protected]:13] ExecIf("SIP/200-0000010f", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [[email protected]:14] Set("SIP/200-0000010f", "NOW=1363841958") in new stack
-- Executing [[email protected]:15] Set("SIP/200-0000010f", "__DAY=21") in new stack
-- Executing [[email protected]:16] Set("SIP/200-0000010f", "__MONTH=03") in new stack
-- Executing [[email protected]:17] Set("SIP/200-0000010f", "__YEAR=2013") in new stack
-- Executing [[email protected]:18] Set("SIP/200-0000010f", "__TIMESTR=20130321-145918") in new stack
-- Executing [[email protected]:19] Set("SIP/200-0000010f", "__FROMEXTEN=200") in new stack
-- Executing [[email protected]:20] Set("SIP/200-0000010f", "__CALLFILENAME=exten-299-200-20130321-145918-1363841957.281") in new stack
-- Executing [[email protected]:21] Goto("SIP/200-0000010f", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [[email protected]:1] GotoIf("SIP/200-0000010f", "0?callee") in new stack
-- Executing [[email protected]:2] Set("SIP/200-0000010f", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/200-0000010f", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [[email protected]:10] Set("SIP/200-0000010f", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [[email protected]:11] GosubIf("SIP/200-0000010f", "0?record,1(exten,299,200)") in new stack
-- Executing [[email protected]:12] Return("SIP/200-0000010f", "") in new stack
-- Executing [[email protected]:7] GotoIf("SIP/200-0000010f", "1?macrodial") in new stack
-- Goto (macro-exten-vm,s,13)
-- Executing [[email protected]:13] GosubIf("SIP/200-0000010f", "0?clrheader,1()") in new stack
-- Executing [[email protected]:14] Macro("SIP/200-0000010f", "dial-one,,tr,299") in new stack
-- Executing [[email protected]:1] Set("SIP/200-0000010f", "DEXTEN=299") in new stack
-- Executing [[email protected]:2] Set("SIP/200-0000010f", "DIALSTATUS_CW=") in new stack
-- Executing [[email protected]:3] GosubIf("SIP/200-0000010f", "0?screen,1()") in new stack
-- Executing [[email protected]:4] GosubIf("SIP/200-0000010f", "0?cf,1()") in new stack
-- Executing [[email protected]:5] GotoIf("SIP/200-0000010f", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [[email protected]:8] GotoIf("SIP/200-0000010f", "0?nodial") in new stack
-- Executing [[email protected]:9] GotoIf("SIP/200-0000010f", "0?continue") in new stack
-- Executing [[email protected]:10] Set("SIP/200-0000010f", "EXTHASCW=ENABLED") in new stack
-- Executing [[email protected]:11] GotoIf("SIP/200-0000010f", "0?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,23)
-- Executing [[email protected]:23] GotoIf("SIP/200-0000010f", "1?next3:continue") in new stack
-- Goto (macro-dial-one,s,24)
-- Executing [[email protected]:24] ExecIf("SIP/200-0000010f", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
-- Executing [[email protected]:25] GotoIf("SIP/200-0000010f", "0?nodial") in new stack
-- Executing [[email protected]:26] GosubIf("SIP/200-0000010f", "1?dstring,1():dlocal,1()") in new stack
-- Executing [[email protected]:1] Set("SIP/200-0000010f", "DSTRING=") in new stack
-- Executing [[email protected]:2] Set("SIP/200-0000010f", "DEVICES=") in new stack
-- Executing [[email protected]:3] ExecIf("SIP/200-0000010f", "1?Return()") in new stack
-- Executing [[email protected]:27] GotoIf("SIP/200-0000010f", "1?nodial") in new stack
-- Goto (macro-dial-one,s,46)
-- Executing [[email protected]:46] ExecIf("SIP/200-0000010f", "1?Set(DIALSTATUS=NOANSWER)") in new stack
-- Executing [[email protected]:47] NoOp("SIP/200-0000010f", "Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER") in new stack
-- Executing [[email protected]:48] MacroExit("SIP/200-0000010f", "") in new stack
-- Executing [[email protected]:15] Set("SIP/200-0000010f", "SV_DIALSTATUS=NOANSWER") in new stack
-- Executing [[email protected]:16] GosubIf("SIP/200-0000010f", "0?docfu,1()") in new stack
-- Executing [[email protected]:17] GosubIf("SIP/200-0000010f", "0?docfb,1()") in new stack
-- Executing [[email protected]:18] Set("SIP/200-0000010f", "DIALSTATUS=NOANSWER") in new stack
-- Executing [[email protected]:19] ExecIf("SIP/200-0000010f", "0?MacroExit()") in new stack
-- Executing [[email protected]:20] GotoIf("SIP/200-0000010f", "1?s-NOANSWER,1") in new stack
-- Goto (macro-exten-vm,s-NOANSWER,1)
-- Executing [[email protected]:1] GotoIf("SIP/200-0000010f", "0?exit,1") in new stack
-- Executing [[email protected]:2] PlayTones("SIP/200-0000010f", "congestion") in new stack
-- Executing [[email protected]:3] Congestion("SIP/200-0000010f", "10") in new stack

Please help me I’ in the same boat…

You guys need to read the wiki. Inbound route needs to bet set to Fax Recipient.

Mine is set up sip to fax in an inbound route and when im waiting for the fax on the cli it starts accepting then all of a sudden disconnected from asterisk server. I tried Dahdi and sip and NV fax is grayed out. I am missing something. I have checked all Forums with no avail.

thanks
rrichiez

What OS is it on? How was the system installed?

Our distro installs everything needed.

Centos 6.5, asterisk 11.6.0, FreePBX 2.11.0.14. thanks for your help

I have tried receiving on sip and analog line using dahdi and sip

-- Executing [[email protected]:4] Set("DAHDI/3-1", "[email protected]") in new stack
-- Executing [[email protected]:5] Goto("DAHDI/3-1", "s,receivefax") in new stack
-- Goto (ext-fax,s,3)
-- Executing [[email protected]:3] StopPlayTones("DAHDI/3-1", "") in new stack
-- Executing [[email protected]:4] ReceiveFAX("DAHDI/3-1", "/var/spool/asterisk/fax/1390229828.0.tif,f") in new stack
-- Channel 'DAHDI/3-1' receiving FAX '/var/spool/asterisk/fax/1390229828.0.tif'

PBX*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups

Thanks let me know what else you need.

Did your asterisk die after fax:4 ( your session ends ) ?

If so your setup is broken quite badly, how did you set it up ?

I don’t think so it just kicks me out of the cli…

and I didn’t set it up. i just installed the distro… and that’s it.

Thanks

If it “kicks you out” then it almost certainly died, killing all other extant connections , you should check that, if it did, there is no chance of any fax ever being received.

What version of what distro on what hardware platform using what trunks and with what everything else (No mind readers here :wink:

Centos 6.5, asterisk 11.6.0, FreePBX 2.11.0.14. I tried one analog trunk and one sip trunk. also I dont think it dies it just kicks me out. Im able to make and recieve calls.

thanks

Don’t think, diagnose. safe_asterisk will restart asterisk, as I said all EXTANT connections will be terminated, did you check that?

( ok, think a little bit, and maybe read a little bit what I wrote already, did you use a distro?, what hardware? . . .)

There is a log file, /var/log/asterisk/full which will probably show your box restarting asterisk about when you got “kicked out”

ALPHA-6.12.65-2
Release Date-01-15-14
FreePBX 12, Centos 6.5
Asterisk 11
HW 4 gig Ram, 500 Gig HD intel 330 motherboard etc.

this is the log
[2014-01-20 17:01:06] VERBOSE[27266][C-00000000] func_timeout.c: – Digit timeout set to 3.000
[2014-01-20 17:01:06] VERBOSE[27266][C-00000000] pbx.c: – Executing [[email protected]:11] ExecIf(“DAHDI/4-1”, “1?Background(custom/work)”) in new stack
[2014-01-20 17:01:06] VERBOSE[27266][C-00000000] file.c: – <DAHDI/4-1> Playing ‘custom/work.slin’ (language ‘en’)
[2014-01-20 17:01:26] VERBOSE[27266][C-00000000] pbx.c: – Executing [[email protected]:12] WaitExten(“DAHDI/4-1”, “10,”) in new stack
[2014-01-20 17:01:31] VERBOSE[27266][C-00000000] pbx.c: == Spawn extension (ivr-1, s, 12) exited non-zero on ‘DAHDI/4-1’
[2014-01-20 17:01:31] VERBOSE[27266][C-00000000] pbx.c: – Executing [[email protected]:1] Hangup(“DAHDI/4-1”, “”) in new stack
[2014-01-20 17:01:31] VERBOSE[27266][C-00000000] pbx.c: == Spawn extension (ivr-1, h, 1) exited non-zero on ‘DAHDI/4-1’
[2014-01-20 17:01:31] VERBOSE[27266][C-00000000] sig_analog.c: – Hanging up on ‘DAHDI/4-1’
[2014-01-20 17:01:31] VERBOSE[27266][C-00000000] chan_dahdi.c: – Hungup ‘DAHDI/4-1’

That call didn’t go to your fax extension, hence didn’t kill your asterisk, please pay attention to your own posts.

Why are using an alpha distro? Do you have ANY understanding of your own responsibilities when you do that?

I was showing thats what I had at the time didnt realize I had to wait a little longer
here it goes
RBOSE[27203][C-00000018] pbx.c: – Executing [[email protected]:3] StopPlayTones(“DAHDI/3-1”, “”) in new stack
[2014-01-20 17:00:43] VERBOSE[27203][C-00000018] pbx.c: – Executing [[email protected]:4] ReceiveFAX(“DAHDI/3-1”, “/var/spool/asterisk/fax/1390255239.36.tif,f”) in new stack
[2014-01-20 17:00:43] VERBOSE[27203][C-00000018] res_fax.c: – Channel ‘DAHDI/3-1’ receiving FAX ‘/var/spool/asterisk/fax/1390255239.36.tif’
[2014-01-20 17:00:45] VERBOSE[27204][C-00000019] sig_analog.c: – Starting simple switch on ‘DAHDI/4-1’
[2014-01-20 17:00:50] Asterisk 11.6.0 built by root @ jenkins-el6-64.schmoozecom.net on a x86_64 running Linux on 2013-12-03 16:28:19 UTC
[2014-01-20 17:00:50] VERBOSE[27216] config.c: == Parsing ‘/etc/asterisk/asterisk.conf’: Found
[2014-01-20 17:00:50] VERBOSE[27216] manager.c: == Manager registered action DBGet
[2014-01-20 17:00:50] VERBOSE[27216] manager.c: == Manager registered action DBPut
[2014-01-20 17:00:50] VERBOSE[27216] manager.c: == Manager registered action DBDel
[2014-01-20 17:00:50] VERBOSE[27216] manager.c: == Manager registered action DBDelTree
[2014-01-20 17:00:50] VERBOSE[27216] pbx.c: == Registered custom function ‘MESSAGE’
[2014-01-20 17:00:50] VERBOSE[27216] pbx.c: == Registered custom function ‘MESSAGE_DATA’
[2014-01-20 17:00:50] VERBOSE[27216] pbx.c: == Registered application ‘MessageSend’
[2014-01-20 17:00:50] VERBOSE[27216] manager.c: == Manager registered action MessageSend
[2014-01-20 17:00:50] VERBOSE[27216] manager.c: == Manager registered action DataGet
[2014-01-20 17:00:50] VERBOSE[27216] loader.c: Asterisk Dynamic Loader Starting:
[2014-01-20 17:00:50] VERBOSE[27216] config.c: == Parsing ‘/etc/asterisk/modules.conf’: Found
[2014-01-20 17:00:50] NOTICE[27216] loader.c: 3 modules will be loaded.
[2014-01-20 17:00:50] VERBOSE[27216] channel.c: == Registered channel type ‘Local’ (Local Proxy Channel Driver)
[2014-01-20 17:00:50] VERBOSE[27216] manager.c: == Manager registered action LocalOptimizeAway

thanks

Please start over with a supported version, this does not include alpha distros of course.

rrichez- You should have started off my saying you are running alpha. This is why the developers are so leery of posting early releases.

You have a history of wasting time and not doing your part. You have been around for years and you still can’t look at a log file.

Personal opinion (and this is why I am known as an asshole) is you should find a new hobby.