<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Arial">well i tried a lot but it seems
execute on fax detect doesn't work from dialplan when u
originate a loopback call from cli, the only way i made it work
so far is i generate the originate command and run the txfax app
from it and then only its able to send fax through gateway
device when the originate channel is bridged to the gateway.
call camping also works now using dialplan<br>
<br>
the second part requires i email the fax report once it sends or
fail but im still doubtful if execute on fail or success would
work, is there any other way i can get the report?<br>
<br>
<br>
</font></font>
<div class="moz-signature">
<style>
body {
font-family: Verdana, sans-serif;
font-size: 0.8em;
color:#484848;
}
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin:0in; margin-bottom:.0001pt; }
p.footr { font-family: "Trebuchet MS", Verdana, sans-serif; margin:0in; margin-bottom:.0001pt; }
h1 { font-size: 1.2em; }
h2, h3 { font-size: 1.1em; }
a, a:link, a:visited { color: #2A5685;}
a:hover, a:active { color: #c61a1a; }
a.wiki-anchor { display: none; }
hr {
width: 100%;
height: 1px;
background: #ccc;
border: 0;
}
</style>Regards,<br>
Bipin<br>
<br>
<br>
<hr>
</div>
<div class="moz-cite-prefix">-------- Original Message --------<br>
Subject: Re: [Freeswitch-users] originate command to send fax only
after tone detected<br>
From: Bipin Patel <a class="moz-txt-link-rfc2396E" href="mailto:bipin@xbipin.com"><bipin@xbipin.com></a><br>
To: FreeSWITCH Users Help
<a class="moz-txt-link-rfc2396E" href="mailto:freeswitch-users@lists.freeswitch.org"><freeswitch-users@lists.freeswitch.org></a><br>
Date: 9/6/2016, 11:52:43 PM<br>
</div>
<blockquote
cite="mid:157010f4b10.2787.b07ebdf329620b8089087c7205b03f01@xbipin.com"
type="cite">
<div style="color: black;">
<div style="color: black;">
<p style="margin: 0 0 1em 0; color: black;">Well the python
script checks
gmail and there is no local mail server and I'm trying to
keep it as simple
as possible, would it be possible to use originate command
to dial an
extension in the dial plan where I could try and make call
camping work. I
just recently started using the originate command so have
not much of an
idea on how I can make it dial an extension in the dial plan
where it can
also feed the fax number to dial along probably using
variables.<br>
Is it possible to originate to an extension called send_fax
with condition
to match dialed number as fax in the default dial plan?</p>
</div>
<div style="color: black;">
<p style="color: black; font-size: 10pt; font-family: Arial,
sans-serif; margin: 10pt 0;">On
September 6, 2016 9:32:34 PM Steven Schoch
<a class="moz-txt-link-rfc2396E" href="mailto:schoch+freeswitch.org@xwin32.com"><schoch+freeswitch.org@xwin32.com></a> wrote:</p>
<blockquote type="cite" class="gmail_quote" style="margin: 0 0
0 0.75ex; border-left: 1px solid #808080; padding-left:
0.75ex;">
<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
moz-do-not-send="true"
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>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services: <br>
<a moz-do-not-send="true" class="aqm-autolink aqm-autowrap"
href="mailto:consulting%40freeswitch.org">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true" class="aqm-autolink aqm-autowrap"
href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" class="aqm-autolink aqm-autowrap"
href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true" class="aqm-autolink aqm-autowrap"
href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br>
<a moz-do-not-send="true" class="aqm-autolink aqm-autowrap"
href="http://www.cluecon.com">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true" class="aqm-autolink aqm-autowrap"
href="mailto:FreeSWITCH-users%40lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true" class="aqm-autolink aqm-autowrap"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true" class="aqm-autolink
aqm-autowrap"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" class="aqm-autolink aqm-autowrap"
href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</body>
</html>