<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Just for the records:<br>
      <br>
      With current Freeswitch I could eleminate the Fax header line
      completely by patching <br>
      <br>
      /usr/src/freeswitch/src/mod/applications/mod_spandsp/mod_spandsp.c<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; spandsp_globals.ident = "SpanDSP Fax Ident";<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; spandsp_globals.header = "SpanDSP Fax Header";<br>
      <br>
      to<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; spandsp_globals.ident = "";<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; spandsp_globals.header = "";<br>
      <br>
      Then you can set fax_ident='', fax_header='' in your dialstring
      and get an empty header<br>
      <br>
      Diff for this:<br>
      <br>
      diff mod_spandsp.c mod_spandsp.c.org<br>
      518,519c518,519<br>
      &lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; spandsp_globals.ident = "";<br>
      &lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; spandsp_globals.header = "";<br>
      ---<br>
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; spandsp_globals.ident = "SpanDSP Fax Ident";<br>
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; spandsp_globals.header = "SpanDSP Fax Header";<br>
      <br>
      <br>
      Best regards<br>
      Peter<br>
      <br>
      <br>
      On 05/28/14 22:29, Bruce Lefko wrote:<br>
    </div>
    <blockquote
cite="mid:CAJNDQt67cmqH8=B-iSPh-cRvZP9PLziG+OpWVHXt2YarrwLkcA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Michael.
        <div><br>
        </div>
        <div>I tried the ' &nbsp;', but same thing: the parameter does not
          show up as parsed and the harcoded default is what is used.</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra">
        <br>
        <br>
        <div class="gmail_quote">On Wed, May 28, 2014 at 2:58 PM, Bruce
          Lefko <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:blefko5361@gmail.com" target="_blank">blefko5361@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Hi Steve.
              <div><br>
              </div>
              <div>I checked into the legality of removing the header
                line, and it turns out this is only a problem for
                advertisements, which we are not doing.</div>
              <div><br>
              </div>
              <div>As far as getting the header removed, I tried doing
                the following:</div>
              <div><br>
              </div>
              <div>originate
                {ignore_early_media=true,absolute_codec_string='PCMU,PCMA',fax_enable_t38=true,fax_verbose=true,fax_use_ecm=true,fax_enable_t38_request=true,origination_caller_id_number='A
                CALLER ID',origination_caller_id_name='A CALLER ID
                NAME',call_timeout=120,fax_ident='a fax
                ident',fax_header=}sofia/gateway/outbound/+15555555555
                &amp;txFax('/tmp/sample.tiff')<br>
              </div>
              <div><br>
              </div>
              <div>Even if I remove the default headers in
                spandsp.conf.xml and fax.conf.xml I still get "SpanDSP
                Fax Header". &nbsp;I noticed that this is hardcoded in
                "src/mod/applications/mod_spandsp/mod_spandsp.c" line
                527.</div>
              <div><br>
              </div>
              <div>Am I not passing the null string properly somehow via
                originate? &nbsp;I noticed in my logs that there are many
                lines for "switch_event.c:1661 Parsing variable" for my
                other parameters, but not for my fax_header parameter.</div>
              <div><br>
              </div>
              <div>Thanks!</div>
              <div><br>
              </div>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <br>
                  <div class="gmail_quote">On Thu, May 8, 2014 at 3:16
                    PM, Bruce Lefko <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:blefko5361@gmail.com"
                        target="_blank">blefko5361@gmail.com</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">I'd like to completely eliminate
                        the header line sent at the top of each fax page
                        using spandsp. &nbsp;i've set fax-header to a null
                        string, but that doesn't seem to be removing it,
                        and it defaults back to 'Spandsp fax header'.
                        &nbsp;This seems to be the default in the source code
                        in 1.2.
                        <div>
                          <br>
                        </div>
                        <div>What do I have to do to eliminate the
                          header line? &nbsp;Do I have to make changes to
                          freeswitch source?</div>
                        <div><br>
                        </div>
                        <div>Thanks!</div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </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>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.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://wiki.freeswitch.org">http://wiki.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>
    <br>
    <pre class="moz-signature" cols="72">-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
<a class="moz-txt-link-freetext" href="mailto:lists">mailto:lists</a> (att) telefaks.de
Internet: <a class="moz-txt-link-abbreviated" href="http://www.telefaks.de">www.telefaks.de</a>

</pre>
  </body>
</html>