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