[asterisk-dev] New Spandsp FAX Backend

sean darcy seandarcy2 at gmail.com
Sun Mar 21 08:15:10 CDT 2010


On Sat, Mar 20, 2010 at 10:15 PM, sean darcy <seandarcy2 at gmail.com> wrote:
> On Sat, Mar 20, 2010 at 8:27 PM, sean darcy <seandarcy2 at gmail.com> wrote:
>> On Sat, Mar 20, 2010 at 6:40 PM, Kevin P. Fleming <kpfleming at digium.com> wrote:
>>> sean darcy wrote:
>>>
>>>> Can you patch 1.6.2.6 to try this fax backend? If so, how? Or do you
>>>> need to use svn trunk?
>>>
>>> I would think that res_fax and res_fax_spandsp would compile and work in
>>> 1.6.2 with very little effort, possibly no changes required at all.
>>>
>>> --
>>> Kevin P. Fleming
>>> Digium, Inc. | Director of Software Technologies
>>> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
>>> skype: kpfleming | jabber: kfleming at digium.com
>>> Check us out at www.digium.com & www.asterisk.org
>>>
>>> --
>>> _____________________________________________________________________
>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>>
>>> asterisk-dev mailing list
>>> To UNSUBSCRIBE or update options visit:
>>>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>>>
>>
>> If I have res_fax.so from Fax for Asterisk, then all I need is res_fax_spandsp?
>>
>> But for x86-64, I just get
>> http://svn.asterisk.org/svn/asterisk/trunk/res/res_fax_spandsp.c,
>> res_fax.c and res_fax.exports and drop them in res/ for 1.6.2.6?
>>
>> This sounds waaay too easy, but it built. For both 1.6.2.6 and
>> 1.6.1.18. You just need to make sure you deselect app_fax in
>> menuselect.
>>
>> Now to see if it works.
>>
>> Thanks
>>
>> sean
>>
>
> Actually it didn't build. Everything else built, but not res_fax* .
> Looked at the top Makefile and res/Makefile. Nothing obvious.
>
> sean
>

Ok. fixed menuselect.makeopts, now  it tries to build. On Fedora 12, gcc-4.4.3:

gcc -o res_fax.o -c res_fax.c -MD -MT res_fax.o -MF .res_fax.o.d -MP
-pthread -I/home/asterisk/rpmbuild/BUILD/asterisk-1.6.2.6/include -O3
-march=native -mtune=native -ftree-vectorize -floop-interchange
-floop-strip-mine -floop-block -mfpmath=sse  -I/usr/include/libxml2
-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations    -fPIC -DAST_MODULE=\"res_fax\"
res_fax.c: In function 'generic_fax_exec':
res_fax.c:644: error: variable 'expected_framesubclass' has
initializer but incomplete type
res_fax.c:644: error: unknown field 'integer' specified in initializer
res_fax.c:644: warning: excess elements in union initializer
res_fax.c:644: warning: (near initialization for 'expected_framesubclass')
res_fax.c:644: error: storage size of 'expected_framesubclass' isn't known
res_fax.c:692: error: request for member 'integer' in something not a
structure or union
res_fax.c:820: error: request for member 'integer' in something not a
structure or union
res_fax.c:973: error: request for member 'integer' in something not a
structure or union
res_fax.c:1141: error: request for member 'integer' in something not a
structure or union
res_fax.c:644: warning: unused variable 'expected_framesubclass'
res_fax.c: In function 'load_module':
res_fax.c:1881: warning: passing argument 2 of
'ast_register_application2' from incompatible pointer type
/home/asterisk/rpmbuild/BUILD/asterisk-1.6.2.6/include/asterisk/module.h:427:
note: expected 'int (*)(struct ast_channel *, void *)' but argument is
of type 'int (*)(struct ast_channel *, const char *)'
res_fax.c:1886: warning: passing argument 2 of
'ast_register_application2' from incompatible pointer type
/home/asterisk/rpmbuild/BUILD/asterisk-1.6.2.6/include/asterisk/module.h:427:
note: expected 'int (*)(struct ast_channel *, void *)' but argument is
of type 'int (*)(struct ast_channel *, const char *)'
make[1]: *** [res_fax.o] Error 1

sean



More information about the asterisk-dev mailing list