My dialplan
…
exten => s,n,ReceiveFAX({FAXDEST}/{FAXFILE},f)
exten => s,n,GotoIf([ {FAXSTATUS} = FAILED ]?hangup:continue)
exten => s,n(hangup),Verbose(Removing tmp file)
exten => s,n,System(rm -f {FAXDEST}/{FAXFILE})
exten => s,n,Hangup
exten => s,n(continue),Verbose(FaxFile moving… {FAXDEST}/{FAXFILE} -> ${FAX_DEST}/)
…
The dialplan works, if FAXSTATUS is FAILED or SUCCESS, but about 1% of faxes are received and FAXFILE is being generated without an error and can be converted to pdf but dialplan does not continue pass s,n,ReceiveFAX()
I added
exten => h,1,System(test -e {FAXDEST}/{FAXFILE})
exten => h,n,GotoIf(["{SYSTEMSTATUS}" = “SUCCESS”]?continue:hangup)
…
bellow exten => s…
but without ability to replicate the event I am unable to test if in fact dial plan will execute h extension.
I guess my question is; if dialplan is unable to continue with s extension will it skip reaming s and execute h,1 for the same call?
It would be desired to process the received faxes even if exten s are no longer being executed.
Following approach does not work:
…
exten => s,n,ReceiveFAX({FAXDEST}/{FAXFILE},f)
exten => h,1,System(test -e {FAXDEST}/{FAXFILE})
exten => h,n,GotoIf(["{SYSTEMSTATUS}" = “SUCCESS”]?continue)
…
I should also bring it up that this dialplan is in Micro as part of
…
same => n,Answer()
same => n,Ringing
same => n,Macro(inboundfax)
same => n,NoOp(Done)
same => n,Hangup()
Should I move the dialplan out of Micro?