<div dir="ltr">Current code allows you to set _undef_ in config file:<div><br></div><div><div><span class="" style="white-space:pre">         </span>} else if (!strcmp(name, "ident")) {</div><div> if (!strcmp(value, "_undef_")) {</div><div> spandsp_globals.ident = "";</div><div> } else {</div><div> spandsp_globals.ident = switch_core_strdup(spandsp_globals.config_pool, value);</div><div> }</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 26, 2015 at 9:11 AM, Peter Steinbach <span dir="ltr"><<a href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</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">
<div>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>
spandsp_globals.ident = "SpanDSP Fax Ident";<br>
spandsp_globals.header = "SpanDSP Fax Header";<br>
<br>
to<br>
spandsp_globals.ident = "";<br>
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 <a href="http://mod_spandsp.c.org" target="_blank">mod_spandsp.c.org</a><br>
518,519c518,519<br>
< spandsp_globals.ident = "";<br>
< spandsp_globals.header = "";<br>
---<br>
> spandsp_globals.ident = "SpanDSP Fax Ident";<br>
> spandsp_globals.header = "SpanDSP Fax Header";<br>
<br>
<br>
Best regards<br>
Peter<div><div class="h5"><br>
<br>
<br>
On 05/28/14 22:29, Bruce Lefko wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi Michael.
<div><br>
</div>
<div>I tried the ' ', 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"><<a href="mailto:blefko5361@gmail.com" target="_blank">blefko5361@gmail.com</a>></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
&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". 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? 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>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, May 8, 2014 at 3:16
PM, Bruce Lefko <span dir="ltr"><<a href="mailto:blefko5361@gmail.com" target="_blank">blefko5361@gmail.com</a>></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. 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'.
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? 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></fieldset>
<br>
</div></div><span class=""><pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
<pre cols="72">--
With kind regards
Peter Steinbach
Telefaks Services GmbH
<a href="mailto:lists" target="_blank">mailto:lists</a> (att) <a href="http://telefaks.de" target="_blank">telefaks.de</a>
Internet: <a href="http://www.telefaks.de" target="_blank">www.telefaks.de</a>
</pre>
</font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Ítalo Rossi<br></div></div>
</div>