[Freeswitch-users] eliminating fax header line

Ítalo Rossi italorossib at gmail.com
Thu Mar 26 16:37:31 MSK 2015


Current code allows you to set _undef_ in config file:

} else if (!strcmp(name, "ident")) {
                    if (!strcmp(value, "_undef_")) {
                        spandsp_globals.ident = "";
                    } else {
                        spandsp_globals.ident =
switch_core_strdup(spandsp_globals.config_pool, value);
                    }


On Thu, Mar 26, 2015 at 9:11 AM, Peter Steinbach <lists at telefaks.de> wrote:

>  Just for the records:
>
> With current Freeswitch I could eleminate the Fax header line completely
> by patching
>
> /usr/src/freeswitch/src/mod/applications/mod_spandsp/mod_spandsp.c
>         spandsp_globals.ident = "SpanDSP Fax Ident";
>         spandsp_globals.header = "SpanDSP Fax Header";
>
> to
>         spandsp_globals.ident = "";
>         spandsp_globals.header = "";
>
> Then you can set fax_ident='', fax_header='' in your dialstring and get an
> empty header
>
> Diff for this:
>
> diff mod_spandsp.c mod_spandsp.c.org
> 518,519c518,519
> <       spandsp_globals.ident = "";
> <       spandsp_globals.header = "";
> ---
> >       spandsp_globals.ident = "SpanDSP Fax Ident";
> >       spandsp_globals.header = "SpanDSP Fax Header";
>
>
> Best regards
> Peter
>
>
>
> On 05/28/14 22:29, Bruce Lefko wrote:
>
> Hi Michael.
>
>  I tried the '  ', but same thing: the parameter does not show up as
> parsed and the harcoded default is what is used.
>
>
>
> On Wed, May 28, 2014 at 2:58 PM, Bruce Lefko <blefko5361 at gmail.com> wrote:
>
>> Hi Steve.
>>
>>  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.
>>
>>  As far as getting the header removed, I tried doing the following:
>>
>>  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')
>>
>>  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.
>>
>>  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.
>>
>>  Thanks!
>>
>>
>>
>> On Thu, May 8, 2014 at 3:16 PM, Bruce Lefko <blefko5361 at gmail.com> wrote:
>>
>>> 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.
>>>
>>>  What do I have to do to eliminate the header line?  Do I have to make
>>> changes to freeswitch source?
>>>
>>>  Thanks!
>>>
>>
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
>
> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
>
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
>
> --
> With kind regards
> Peter Steinbach
>
> Telefaks Services GmbHmailto:lists <lists> (att) telefaks.de
> Internet: www.telefaks.de
>
>
> _________________________________________________________________________
> 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
>



-- 
Ítalo Rossi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150326/570f25b3/attachment-0001.html 


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