I am trying to do a sendfax right after receivefax, but it seems not working right. The reason is that it seems some carrier (or peer) will fax better then the other. Thus when I try to fax, I would like to:
have Asterisk receive the fax and save it as tif (obviously) using ReceiveFAX
have Asterisk send the fax out by using SendFAX
if the result code is “FAIL” then try another carrier (or peer)
Sendfax will send to the incoming line, but only if the outgoing call fails. (Dial calls on the outgoing line and doesn’t return whilst that call is up.) In any case, the caller will probably drop the line once the receive is complete, so there will be no channel left to run the dialplan.
The result of using any operation that requires a media or signalling path in the h extension is undefined.
I am so glad to see you, always appreciate your prompt reply!
What do you mean by “do an originate”? So doing what I am trying to do will not work in a “single” call?
Also there is a mistake in my code, on the Dial command I need to use “U” option so that on answer, it will just to a macro that execute the “sendFAX” command, or else the way I have it, sendFAX command will never get execute.
But please clarify your “do an originate”. Also, how can asterisk “originate” a call? I guess only by AMI? But I don’t want to do that though…