I have implemented TXFAX and RXFAX on Asterisk 1.4.1 successfully. I can now
send and receive faxes. I would like to improve how the outgoing faxes are
handled. Right now, I am checking an email address, downloading the message,
creating a call file that calls TXFAX application and transmit the fax.
As you can imagine, there is no confirmation, etc. According to TXFAX docs:
" TxFAX(filename[|option]): Send a given file name as a FAX. Returns -1
Uses LOCALSTATIONID to identify itself to the remote end
Sets REMOTESTATIONID to the sender CSID
Returns -1 when the user hangs up, or if the file does not exist.
Returns 0 otherwise. "
How would one be able to capture the return code of an application? Can you do
it like
exten => s,1,Set(STATUS=${(txfax(file|caller))})
Or what would be the proper way of getting a transmission receipt?
Remzi