Whenever I send a fax from my extension (411), it succeeds but still re-sends to the maximum number of retries. Below is the asterisk log data from both attempts; they’re identical as far as I can tell other than the data that is unique per call anyway. I would debug the code but, well, you know…
This is with the per-extension number set; global was 0. I can test with global enabled and local disabled if necessary. Originally, I had the retry count set to 3. When I got 4 copies from 1 fax, I changed it to 1 and got 2 copies. Above is the data from after that change was made.
Attempt 1:
-- Executing [s@send-fax:1] NoOp("Local/**destination**@from-internal-00000174;1", "Sending fax from 411 to **destination**") in new stack
-- Executing [s@send-fax:2] System("Local/**destination**@from-internal-00000174;1", "/var/lib/asterisk/bin/faxpro_helper.php --faxid="1416411218621" --stationid="**myfaxnumber**" --status="In Progress" ") in new stack
-- Executing [h@macro-dialout-trunk:1] Macro("Local/**destination**@from-internal-00000174;2", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Local/**destination**@from-internal-00000174;2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("Local/**destination**@from-internal-00000174;2", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("Local/**destination**@from-internal-00000174;2", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/**destination**@from-internal-00000174;2' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'Local/**destination**@from-internal-00000174;2'
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'Local/**destination**@from-internal-00000174;2' in macro 'dialout-trunk'
== Spawn extension (restrictedroute-1, **destination**, 6) exited non-zero on 'Local/**destination**@from-internal-00000174;2'
-- Executing [s@send-fax:3] SendFAX("SIP/SIPBOUND-0000902c", "/var/spool/asterisk/tmp/fax-1416411218855.tif,zf") in new stack
-- Channel 'SIP/SIPBOUND-0000902c' sending FAX:
-- /var/spool/asterisk/tmp/fax-1416411218855.tif
-- Channel 'SIP/SIPBOUND-0000902c' FAX session '5' started
-- Channel 'SIP/SIPBOUND-0000902c' FAX session '5' is complete, result: 'SUCCESS' (FAX_SUCCESS), error: 'NO_ERROR', pages: 2, resolution: '204x196', transfer rate: '14400', remoteSID: '**destination**'
-- Auto fallthrough, channel 'SIP/SIPBOUND-0000902c' status is 'UNKNOWN'
-- Executing [h@send-fax:1] System("SIP/SIPBOUND-0000902c", "/var/lib/asterisk/bin/faxpro_helper.php --faxid="1416411218621" --stationid="**myfaxnumber**" --status="FAX_SUCCESS" --action="sent" ") in new stack
Attempt 2:
-- Executing [s@send-fax:1] NoOp("Local/**destination**@from-internal-00000175;1", "Sending fax from 411 to **destination**") in new stack
-- Executing [s@send-fax:2] System("Local/**destination**@from-internal-00000175;1", "/var/lib/asterisk/bin/faxpro_helper.php --faxid="1416411218621" --stationid="**myfaxnumber**" --status="In Progress" ") in new stack
-- Executing [h@macro-dialout-trunk:1] Macro("Local/**destination**@from-internal-00000175;2", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Local/**destination**@from-internal-00000175;2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("Local/**destination**@from-internal-00000175;2", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("Local/**destination**@from-internal-00000175;2", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/**destination**@from-internal-00000175;2' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'Local/**destination**@from-internal-00000175;2'
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'Local/**destination**@from-internal-00000175;2' in macro 'dialout-trunk'
== Spawn extension (restrictedroute-1, **destination**, 6) exited non-zero on 'Local/**destination**@from-internal-00000175;2'
-- Executing [s@send-fax:3] SendFAX("SIP/SIPBOUND-00009032", "/var/spool/asterisk/tmp/fax-1416411218855.tif,zf") in new stack
-- Channel 'SIP/SIPBOUND-00009032' sending FAX:
-- /var/spool/asterisk/tmp/fax-1416411218855.tif
-- Channel 'SIP/SIPBOUND-00009032' FAX session '6' started
-- FAX handle 0: [ 037.737158 ], entering CLOSING state
-- Channel 'SIP/SIPBOUND-00009032' FAX session '6' is complete, result: 'SUCCESS' (FAX_SUCCESS), error: 'NO_ERROR', pages: 2, resolution: '204x196', transfer rate: '14400', remoteSID: '**destination**'
-- Auto fallthrough, channel 'SIP/SIPBOUND-00009032' status is 'UNKNOWN'
-- Executing [h@send-fax:1] System("SIP/SIPBOUND-00009032", "/var/lib/asterisk/bin/faxpro_helper.php --faxid="1416411218621" --stationid="**myfaxnumber**" --status="FAX_SUCCESS" --action="sent" ") in new stack