Exten => in_fax,1,GotoIf

Dear Helper,

What’s the use of the bold line below in the context,
I mean, what would happen if I delete it? what would my system miss?

part of file: /var/asterisk/extensions.conf
[ext-fax]
exten => s,1,Answer
exten => s,2,Goto(in_fax,1)
exten => in_fax,1,GotoIf($[${FAX_RX} = system]?2:analog_fax,1)
exten => in_fax,2,Macro(faxreceive)

Regards,
Saeed144

*CLI> show application GotoIf

[Synopsis]
Conditional goto

[Description]
GotoIf(condition?[labeliftrue]:[labeliffalse])

$[${FAX_RX} = system]

Search for ${FAX_RX} in the conf files what do you find?

Comment the line out reload Asterisk and test it; see what it breaks.

[ext-fax]
exten => s,1,Answer
exten => s,2,Goto(in_fax,1)
;exten => in_fax,1,GotoIf($[${FAX_RX} = system]?2:analog_fax,1)
;exten => in_fax,2,Macro(faxreceive)
exten => in_fax,1,Macro(faxreceive)

Hi,

Thanks for reading n replying,

I think it checks wheather the fax is analog or digital,

but i’m not sure, cuz I send fax to my asterisk system via a Data Fax Modem through PSTN lines,
My Asterisk receives it through TDM400p Card,

Another theory is that by that GotoIf, it decides wheather it should forward it to an external fax machine or handle the fax itself,

Please let me know which is which,

Regards,
Saeed144

Post the configs so we can take a look

Dear bwilks,

Thanks for the reply,
Since the time that I have activated the fax receiver through AMP, by setting it to System, (in general settings), it works almost fine,

That line of context get passed through and the system works fine,

So, other than running applications for managing fax, (apps like tiff2ps, ps2pdf, libtiff, …) one needs to define a proper setting through AMP/SETUP/GeneralSettings,

That did the trick for me,
Now i’m having the famous “receiving half page fax” problem which I will make a new post for it,

Thanks for your reply,
Saeed144