[Freeswitch-users] originate command to send fax only after tone detected

Bipin Patel bipin at xbipin.com
Tue Sep 6 23:52:43 MSD 2016


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.
Is it possible to originate to an extension called send_fax with condition 
to match dialed number as fax in the default dial plan?




On September 6, 2016 9:32:34 PM Steven Schoch 
<schoch+freeswitch.org at xwin32.com> wrote:

> 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.
>
> --
> Steve
>
> On Tue, Sep 6, 2016 at 7:41 AM, Bipin Patel <bipin at xbipin.com> wrote:
>
>> hi,
>>
>> 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?
>>
>> 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
>>
>> --
>> Regards,
>> Bipin
>>
>
>
>
> ----------
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160906/237ebd2e/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list