I know I can Set a custom variable to ${EXTEN} and retrieve it within “fax” and pass it to ReceiveFax because I would like to construct the TIFF file name with that data.
However, how can I be sure the dialplan will actually set that variable if there’s fax autodetection?
Will it not go to “fax” too early?
Is the “called number” available in “fax”?
The FAXEXTEN dialplan variable is set to the original called number. The channel will only jump to the fax extension after a period of time when the CNG tone has been detected.
It’s not enough to guarantee detection if there is any chance of the first cycle being clipped, as the silence period between tones is, itself, 3 seconds.