<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">&lt;mike@jerris.com&gt;</a><br>
      To: FreeSWITCH Users Help
      <a class="moz-txt-link-rfc2396E" href="mailto:freeswitch-users@lists.freeswitch.org">&lt;freeswitch-users@lists.freeswitch.org&gt;</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 &lt;<a
              moz-do-not-send="true" href="mailto:bipin@xbipin.com">bipin@xbipin.com</a>&gt;
            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>
            &amp;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> &lt;<a
              moz-do-not-send="true" href="http://www.talkycom.com/"
              rel="noreferrer" target="_blank">http://www.talkycom.com/</a>&gt;<br>
            <a moz-do-not-send="true" href="http://www.xbipin.com"
              rel="noreferrer" target="_blank">www.xbipin.com</a> &lt;<a
              moz-do-not-send="true" href="http://www.xbipin.com/"
              rel="noreferrer" target="_blank">http://www.xbipin.com/</a>&gt;<br>
------------------------------------------------------------------------<br>
            <br>
            -------- Original Message  --------<br>
            Subject: Re: [Freeswitch-users] Fax result when using mail
            to fax<br>
            From: Peter Steinbach &lt;<a moz-do-not-send="true"
              href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>&gt;<br>
            To: FreeSWITCH Users Help &lt;<a moz-do-not-send="true"
              href="mailto:freeswitch-users@lists.freeswitch.org"
              target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
            Date: 5/16/2017, 11:38:18 AM<br>
            <br>
            &gt; Hello Bipin,<br>
            &gt;<br>
            &gt; the fax result is only available, long after the
            dialplan has beeen<br>
            &gt; evaluated.<br>
            &gt;<br>
            &gt; So you will somehow have to use some event driven
            things.<br>
            &gt; execute_on_fax_success would have been the next thing
            to propose, but id<br>
            &gt; did not work in your case.<br>
            &gt;<br>
            &gt; In Linux you can use inotify. We have also used this
            method for getting<br>
            &gt; certain infos from the Freeswitch logfile and then to
            fire actions (in<br>
            &gt; our case firewall rules). Maybe this is an approach for
            you?<br>
            &gt;<br>
            &gt; Best regards<br>
            &gt; Peter<br>
            &gt;<br>
            &gt; On 05/16/17 07:25, Bipin Patel wrote:<br>
            &gt;&gt; hi,<br>
            &gt;&gt;<br>
            &gt;&gt; well considering im running this FS on the
            raspberry pi for a small<br>
            &gt;&gt; office, ESL would be like a lot just for the
            purpose, if the console can<br>
            &gt;&gt; display the fax result then why isnt it possible to
            get the same in<br>
            &gt;&gt; dialplan or somewhere else where i can fire a
            script or something and<br>
            &gt;&gt; let the sender know what happened to their fax.<br>
            &gt;&gt;<br>
            &gt;&gt; i tried using execute_on_fax_success and
            execute_on_fax_failure but they<br>
            &gt;&gt; dont seem to work while sending a fax, i think its
            for receiving only<br>
            &gt;&gt;<br>
            &gt;&gt;<br>
            &gt;&gt;<br>
            &gt;&gt; Regards,<br>
            &gt;&gt; Bipin<br>
            &gt;&gt;<br>
            &gt;&gt;<br>
            &gt;&gt;<br>
            &gt;&gt;
            ------------------------------------------------------------------------<br>
            &gt;&gt;<br>
            &gt;&gt; -------- Original Message  --------<br>
            &gt;&gt; Subject: Re: [Freeswitch-users] Fax result when
            using mail to fax<br>
            &gt;&gt; From: Peter Steinbach &lt;<a moz-do-not-send="true"
              href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>&gt;<br>
            &gt;&gt; To: FreeSWITCH Users Help &lt;<a
              moz-do-not-send="true"
              href="mailto:freeswitch-users@lists.freeswitch.org"
              target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
            &gt;&gt; Date: 5/16/2017, 12:24:44 AM<br>
            &gt;&gt;<br>
            &gt;&gt;&gt; Hello Bipin,<br>
            &gt;&gt;&gt;<br>
            &gt;&gt;&gt; there are some events fired via ESL, if you
            subscribe to them. We<br>
            &gt;&gt;&gt; evaluate txfaxresult event and hangup event.<br>
            &gt;&gt;&gt;<br>
            &gt;&gt;&gt; The only thing which is critcal here, is that
            the contents of the 2<br>
            &gt;&gt;&gt; events have to be joined, in order to have all
            informations. And in my<br>
            &gt;&gt;&gt; experience txfaxresult and hangup event do not
            always come in the same<br>
            &gt;&gt;&gt; order, dependend on which side of the channels
            hangs up first.<br>
            &gt;&gt;&gt;<br>
            &gt;&gt;&gt; Best regards<br>
            &gt;&gt;&gt; Peter<br>
            &gt;&gt;&gt;<br>
            &gt;&gt;&gt; On 05/15/17 22:06, Bipin Patel wrote:<br>
            &gt;&gt;&gt;&gt; Hi,<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt; I have a python script that checks a
            mailbox for faxes to be sent, when it<br>
            &gt;&gt;&gt;&gt; finds a new mail it downloads the PDF and
            converts to Tiff and sends via<br>
            &gt;&gt;&gt;&gt; the originate command, now the problem is I
            can't seem to find a way to get<br>
            &gt;&gt;&gt;&gt; the fax report, nor in cdr it says what
            happened and the originate just<br>
            &gt;&gt;&gt;&gt; says ok followed by uuid of the bridge. I'm
            sending the fax over a fxo<br>
            &gt;&gt;&gt;&gt; gateway device. Due to it going over fxo, I
            have no clue if the remote fax<br>
            &gt;&gt;&gt;&gt; machine answered call and the only place
            the fax report comes is in the<br>
            &gt;&gt;&gt;&gt; console. Is there a variable or anything
            else that can be resent to the<br>
            &gt;&gt;&gt;&gt; python script telling what the result was.
            I tried the execute on fax<br>
            &gt;&gt;&gt;&gt; successful and fail variable but they don't
            seem to work.<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt; My python script generates the originate
            command going to loopback which<br>
            &gt;&gt;&gt;&gt; goes to dial plan where the actual bridge
            to fxo gateway happens.<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt; How are others dealing with fax report I
            would love to hear.<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt; Regards,<br>
            &gt;&gt;&gt;&gt; Bipin<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt;
_________________________________________________________________________<br>
            &gt;&gt;&gt;&gt; Professional FreeSWITCH Consulting
            Services:<br>
            &gt;&gt;&gt;&gt; <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
            &gt;&gt;&gt;&gt; <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" rel="noreferrer"
              target="_blank">http://www.freeswitchsolutions.com</a><br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt; Official FreeSWITCH Sites<br>
            &gt;&gt;&gt;&gt; <a moz-do-not-send="true"
              href="http://www.freeswitch.org" rel="noreferrer"
              target="_blank">http://www.freeswitch.org</a><br>
            &gt;&gt;&gt;&gt; <a moz-do-not-send="true"
              href="http://confluence.freeswitch.org" rel="noreferrer"
              target="_blank">http://confluence.freeswitch.org</a><br>
            &gt;&gt;&gt;&gt; <a moz-do-not-send="true"
              href="http://www.cluecon.com" rel="noreferrer"
              target="_blank">http://www.cluecon.com</a><br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;&gt; FreeSWITCH-users mailing list<br>
            &gt;&gt;&gt;&gt; <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org"
              target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
            &gt;&gt;&gt;&gt; <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>
            &gt;&gt;&gt;&gt; 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>
            &gt;&gt;&gt;&gt; <a moz-do-not-send="true"
              href="http://www.freeswitch.org" rel="noreferrer"
              target="_blank">http://www.freeswitch.org</a><br>
            &gt;&gt;&gt;&gt;<br>
            &gt;&gt;&gt;<br>
            &gt;&gt;<br>
            &gt;&gt;
_________________________________________________________________________<br>
            &gt;&gt; Professional FreeSWITCH Consulting Services:<br>
            &gt;&gt; <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
            &gt;&gt; <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" rel="noreferrer"
              target="_blank">http://www.freeswitchsolutions.com</a><br>
            &gt;&gt;<br>
            &gt;&gt; Official FreeSWITCH Sites<br>
            &gt;&gt; <a moz-do-not-send="true"
              href="http://www.freeswitch.org" rel="noreferrer"
              target="_blank">http://www.freeswitch.org</a><br>
            &gt;&gt; <a moz-do-not-send="true"
              href="http://confluence.freeswitch.org" rel="noreferrer"
              target="_blank">http://confluence.freeswitch.org</a><br>
            &gt;&gt; <a moz-do-not-send="true"
              href="http://www.cluecon.com" rel="noreferrer"
              target="_blank">http://www.cluecon.com</a><br>
            &gt;&gt;<br>
            &gt;&gt; FreeSWITCH-users mailing list<br>
            &gt;&gt; <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org"
              target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
            &gt;&gt; <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>
            &gt;&gt; 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>
            &gt;&gt; <a moz-do-not-send="true"
              href="http://www.freeswitch.org" rel="noreferrer"
              target="_blank">http://www.freeswitch.org</a><br>
            &gt;&gt;<br>
            &gt;<br>
            &gt;<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>