No problem. glad to contribute. Been trying for a few days now to get Fax detection working but have hit a roadblock I can not seem to figure out.
I had an existing PIAF purple install that I updated and its now these versions. Not sure if others exist
PBX in a Flash Version = 1.7.5.6
FreePBX Version = 2.9.0.12
Running Asterisk Version = 1.8.4.1
Asterisk Source Version = 1.8.4.1
Dahdi Source Version = 2.4.1.2+2.4.1
Libpri Source Version = 1.4.11.5
I also have been using Visual Dial Plan if that effects anything.
I can receive and send faxes just fine but the detect fax stuff is causing problems. I receive a fax from my flowroute sip trunk and I see it detected as a fax but then an error occures in a Goto and it wont send it
to the FAX extension.
Code:
2013-06-13 10:26:56 DEBUG32029 res_rtp_asterisk.c: Starting RTCP transmission on RTP instance '0x2aaaac7e6358'
2013-06-13 10:26:56 DEBUG32029 dsp.c: 1100 Hz done detected
2013-06-13 10:26:56 DEBUG32029 chan_sip.c: Fax CNG detected on SIP/flowroute-00000028
2013-06-13 10:26:56 VERBOSE32029 chan_sip.c: == Redirecting 'SIP/flowroute-00000028' to fax extension due to CNG detection
2013-06-13 10:26:56 DEBUG32029 channel.c: Soft-Hanging up channel 'SIP/flowroute-00000028'
2013-06-13 10:26:56 DEBUG32029 channel.c: Scheduling timer at (0 requested / 0 actual) timer ticks per second
2013-06-13 10:26:56 DEBUG32029 channel.c: Stopped silence generator on 'SIP/flowroute-00000028'
2013-06-13 10:26:56 DEBUG32029 channel.c: Set channel SIP/flowroute-00000028 to write format ulaw
2013-06-13 10:26:56 DEBUG32029 pbx.c: Spawn extension (from-trunk,fax,1) exited non-zero on 'SIP/flowroute-00000028'
2013-06-13 10:26:56 VERBOSE32029 pbx.c: == Spawn extension (from-trunk, fax, 1) exited non-zero on 'SIP/flowroute-00000028'
2013-06-13 10:26:56 DEBUG32029 pbx.c: Function result is ''
2013-06-13 10:26:56 DEBUG32029 pbx.c: Function result is ''
2013-06-13 10:26:56 DEBUG32029 pbx.c: Function result is ''
2013-06-13 10:26:56 DEBUG32029 pbx.c: Launching 'Goto'
2013-06-13 10:26:56 VERBOSE32029 pbx.c: — Executing fax@from-trunk:1 Goto("SIP/flowroute-00000028", ",,") in new stack
2013-06-13 10:26:56 NOTICE32029 pbx.c: Cannot find extension context ''
2013-06-13 10:26:56 WARNING32029 pbx.c: Priority '' must be a number > 0, or valid label
2013-06-13 10:26:56 DEBUG32029 pbx.c: Spawn extension (from-trunk,fax,1) exited non-zero on 'SIP/flowroute-00000028'
2013-06-13 10:26:56 VERBOSE32029 pbx.c: == Spawn extension (from-trunk, fax, 1) exited non-zero on 'SIP/flowroute-00000028'
2013-06-13 10:26:56 DEBUG32029 channel.c: Soft-Hanging up channel 'SIP/flowroute-00000028'
2013-06-13 10:26:56 DEBUG32029 pbx.c: Launching 'Macro'
2013-06-13 10:26:56 VERBOSE32029 pbx.c: — Executing h@from-trunk:1 Macro("SIP/flowroute-00000028", "hangupcall,") in new stack
2013-06-13 10:26:56 DEBUG32029 pbx.c: Expression result is '1'
2013-06-13 10:26:56 DEBUG32029 pbx.c: Launching 'GotoIf'
After a bit of work I was able to find the Goto in the configs ( must be an easier way to get the line number of the error in the logs? )
I was able to narrow it down to this config line ( note i added the Log event to track this down )
Code:
[ext-did-0001]
include => ext-did-0001-custom
exten => fax,1,Log(NOTICE,wtf1)
exten => fax,n,Goto(${CUT(FAX_DEST,^,1)},${CUT(FAX_DEST,^,2)},${CUT(FAX_DEST,^,3)})
So it seems that FAX_DEST is not a valid variable so I must have missed something someplace.
Any thoughts? I just dont want to go messing with stuff as I know from experience how easy it is to destroy everything and force me to start from scratch.
Re
Sean Mathews
CTO @ Nu Tech Software Solutions, Inc.