<div dir="ltr">One possibility is to implement retries and timeout in the mail transport. When your python script detects a busy signal, have it exit with EX_TEMPFAIL, which will cause the mail process to retry after a while.<div><br></div><div>-- </div><div>Steve<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 6, 2016 at 7:41 AM, Bipin Patel <span dir="ltr"><<a href="mailto:bipin@xbipin.com" target="_blank">bipin@xbipin.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Arial">hi,<br>
<br>
i have created a custom script in python which extracts PDF
files and phone number from email and then converts them to
tiffs and all this works well, now i made the script send the
originate command to FS which connects to a a PSTN gateway
device and this device dials out the number and when answered it
bridges to the originate command channel. The problem i face is
how do we make the txfax application in the originate command
wait till it gets a fax tone from the called party then try to
send its fax? second issue is suppose if the PSTN line was busy
and the device rejected the call from FS, how do we configure
camping so FS tries a few times before failing finally?<br>
<br>
i tried adding the camping variables to the originate command
but they dont seems to work at all, my main aim is to make the
originate command initiate the call from FS to PSTN number using
that gateway device and if the outgoing line is busy or the
remote line is busy then try a few more times at regular
intervals and also attempt to send fax only when there is a fax
tone detected from the remote end<span class="HOEnZb"><font color="#888888"><br>
<br>
</font></span></font></font><span class="HOEnZb"><font color="#888888">
<div>-- <br>
Regards,<br>
Bipin<br></div></font></span></div></blockquote></div></div></div></div>