<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">hi,<br>
<br>
well i was also not sure what was happening but after doing some
packet traces im seeing 2 invites being generated and both run
parallel so one fails later on and one transmits the fax
successfully, shall i paste a debug log?<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] Fax result when using mail to fax<br>
From: Michael Jerris <a class="moz-txt-link-rfc2396E" href="mailto:mike@jerris.com"><mike@jerris.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: 5/16/2017, 5:41:30 PM<br>
</div>
<blockquote
cite="mid:CAEwTsAiHZCXOTBCYueD0proUtnsqH=L3BWAjyzu8LGLX32CkBw@mail.gmail.com"
type="cite">
<div>a single originate will only create a single call. What you
describe here isn't happening as you describe it. A log of the
calls may tell you more.</div>
<div><br>
<div class="gmail_quote">
<div>On Tue, May 16, 2017 at 5:36 AM Bipin Patel <<a
moz-do-not-send="true" href="mailto:bipin@xbipin.com">bipin@xbipin.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<br>
i think i have one other plan, let me try that and ill get
back with the<br>
result.<br>
<br>
i have on more issue, when i send a fax using the originate
command, it<br>
results in 2 invites being sent to the gateway, one sends
the fax and i<br>
get report for that but the other fails so i also get a
failed report<br>
for that, any idea what could be causing this, my originate
command is<br>
as below<br>
<br>
originate<br>
[ignore_early_media=true,fax_verbose=true,fax_enable_t38_request=true,fax_enable_t38=true,absolute_codec_string=PCMU]sofia/gateway/ma/123466789<br>
&txfax(\'" + att_path + ".tiff\')"<br>
<br>
<br>
<br>
Regards,<br>
Bipin<br>
<br>
<br>
Talky Communications<br>
VoIP/SMS/DID Services<br>
+971-55-9270058<br>
<a moz-do-not-send="true" href="http://www.talkycom.com"
rel="noreferrer" target="_blank">www.talkycom.com</a> <<a
moz-do-not-send="true" href="http://www.talkycom.com/"
rel="noreferrer" target="_blank">http://www.talkycom.com/</a>><br>
<a moz-do-not-send="true" href="http://www.xbipin.com"
rel="noreferrer" target="_blank">www.xbipin.com</a> <<a
moz-do-not-send="true" href="http://www.xbipin.com/"
rel="noreferrer" target="_blank">http://www.xbipin.com/</a>><br>
------------------------------------------------------------------------<br>
<br>
-------- Original Message --------<br>
Subject: Re: [Freeswitch-users] Fax result when using mail
to fax<br>
From: Peter Steinbach <<a moz-do-not-send="true"
href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>><br>
To: FreeSWITCH Users Help <<a moz-do-not-send="true"
href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
Date: 5/16/2017, 11:38:18 AM<br>
<br>
> Hello Bipin,<br>
><br>
> the fax result is only available, long after the
dialplan has beeen<br>
> evaluated.<br>
><br>
> So you will somehow have to use some event driven
things.<br>
> execute_on_fax_success would have been the next thing
to propose, but id<br>
> did not work in your case.<br>
><br>
> In Linux you can use inotify. We have also used this
method for getting<br>
> certain infos from the Freeswitch logfile and then to
fire actions (in<br>
> our case firewall rules). Maybe this is an approach for
you?<br>
><br>
> Best regards<br>
> Peter<br>
><br>
> On 05/16/17 07:25, Bipin Patel wrote:<br>
>> hi,<br>
>><br>
>> well considering im running this FS on the
raspberry pi for a small<br>
>> office, ESL would be like a lot just for the
purpose, if the console can<br>
>> display the fax result then why isnt it possible to
get the same in<br>
>> dialplan or somewhere else where i can fire a
script or something and<br>
>> let the sender know what happened to their fax.<br>
>><br>
>> i tried using execute_on_fax_success and
execute_on_fax_failure but they<br>
>> dont seem to work while sending a fax, i think its
for receiving only<br>
>><br>
>><br>
>><br>
>> Regards,<br>
>> Bipin<br>
>><br>
>><br>
>><br>
>>
------------------------------------------------------------------------<br>
>><br>
>> -------- Original Message --------<br>
>> Subject: Re: [Freeswitch-users] Fax result when
using mail to fax<br>
>> From: Peter Steinbach <<a moz-do-not-send="true"
href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>><br>
>> To: FreeSWITCH Users Help <<a
moz-do-not-send="true"
href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
>> Date: 5/16/2017, 12:24:44 AM<br>
>><br>
>>> Hello Bipin,<br>
>>><br>
>>> there are some events fired via ESL, if you
subscribe to them. We<br>
>>> evaluate txfaxresult event and hangup event.<br>
>>><br>
>>> The only thing which is critcal here, is that
the contents of the 2<br>
>>> events have to be joined, in order to have all
informations. And in my<br>
>>> experience txfaxresult and hangup event do not
always come in the same<br>
>>> order, dependend on which side of the channels
hangs up first.<br>
>>><br>
>>> Best regards<br>
>>> Peter<br>
>>><br>
>>> On 05/15/17 22:06, Bipin Patel wrote:<br>
>>>> Hi,<br>
>>>><br>
>>>> I have a python script that checks a
mailbox for faxes to be sent, when it<br>
>>>> finds a new mail it downloads the PDF and
converts to Tiff and sends via<br>
>>>> the originate command, now the problem is I
can't seem to find a way to get<br>
>>>> the fax report, nor in cdr it says what
happened and the originate just<br>
>>>> says ok followed by uuid of the bridge. I'm
sending the fax over a fxo<br>
>>>> gateway device. Due to it going over fxo, I
have no clue if the remote fax<br>
>>>> machine answered call and the only place
the fax report comes is in the<br>
>>>> console. Is there a variable or anything
else that can be resent to the<br>
>>>> python script telling what the result was.
I tried the execute on fax<br>
>>>> successful and fail variable but they don't
seem to work.<br>
>>>><br>
>>>> My python script generates the originate
command going to loopback which<br>
>>>> goes to dial plan where the actual bridge
to fxo gateway happens.<br>
>>>><br>
>>>> How are others dealing with fax report I
would love to hear.<br>
>>>><br>
>>>> Regards,<br>
>>>> Bipin<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>>
_________________________________________________________________________<br>
>>>> Professional FreeSWITCH Consulting
Services:<br>
>>>> <a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>>> <a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" rel="noreferrer"
target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>><br>
>>>> Official FreeSWITCH Sites<br>
>>>> <a moz-do-not-send="true"
href="http://www.freeswitch.org" rel="noreferrer"
target="_blank">http://www.freeswitch.org</a><br>
>>>> <a moz-do-not-send="true"
href="http://confluence.freeswitch.org" rel="noreferrer"
target="_blank">http://confluence.freeswitch.org</a><br>
>>>> <a moz-do-not-send="true"
href="http://www.cluecon.com" rel="noreferrer"
target="_blank">http://www.cluecon.com</a><br>
>>>><br>
>>>> FreeSWITCH-users mailing list<br>
>>>> <a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>> <a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>> UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>> <a moz-do-not-send="true"
href="http://www.freeswitch.org" rel="noreferrer"
target="_blank">http://www.freeswitch.org</a><br>
>>>><br>
>>><br>
>><br>
>>
_________________________________________________________________________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>> <a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" rel="noreferrer"
target="_blank">http://www.freeswitchsolutions.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a moz-do-not-send="true"
href="http://www.freeswitch.org" rel="noreferrer"
target="_blank">http://www.freeswitch.org</a><br>
>> <a moz-do-not-send="true"
href="http://confluence.freeswitch.org" rel="noreferrer"
target="_blank">http://confluence.freeswitch.org</a><br>
>> <a moz-do-not-send="true"
href="http://www.cluecon.com" rel="noreferrer"
target="_blank">http://www.cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a moz-do-not-send="true"
href="http://www.freeswitch.org" rel="noreferrer"
target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" rel="noreferrer"
target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://confluence.freeswitch.org" rel="noreferrer"
target="_blank">http://confluence.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.cluecon.com"
rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
rel="noreferrer" target="_blank">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>