[asterisk-users] Asterisk 1.4.0-beta3 spandsp rxfax woes (or me being hard of thinking)

Matt Gibson diwelf at gmail.com
Sun Dec 10 13:14:10 MST 2006


Just an update to this..

- my machine was virgin install as well, also tried spandsp located in
/usr/local/lib or /usr/lib
- hard linked the asterisk binary to -lspandsp

still gives the same error :(

As for the "free" line in app_rxfax.so, I commented out:

  ast_frfree(inf);

Once this was commented out, everything seems to work!

Thanks for all the help everyone. My howto will be updated soon.

Thanks,
Diwelf

On 08/12/06, Chris Glover <chris at glovercc.plus.com> wrote:
> In this case, the machine was a spandsp virgin, it had never been
> installed before.
>
> I made sure I ran ldconfig before and after building, and still no joy.
>
> I have managed to get iaxmodem and hylafax to work quite well though :-)
>
> Chris
>
> On Fri, 2006-12-08 at 12:43 +0000, Steve Davies wrote:
> > The only time I have seen this problem myself is when Asterisk (and
> > therefore rxfax) was built when the wrong spandsp header/library files
> > were present on the system.
> >
> > The required order of events is:
> >
> > 1) Build spandsp
> > 2) Install both spandsp binary libraries and includes, ensuring no old
> > versions are present.
> > 3) Rebuild asterisk from scratch
> > 4) Profit... :)
> >
> > If that doesn't work, then there may be a more fundamental problem.
> > Someone did comment a while back that the new code seemed to be
> > freeing an already free chunk of memory - Perhaps Asterisk has changed
> > behaviour and is freeing something that the app used to be required to
> > clean up itself - AFAIK, the workaround was to comment out the "free"
> > that caused the crash in app_rxfax.c.
> >
> > Cheers,
> > Steve
> >
> > On 12/8/06, Matt Gibson <diwelf at gmail.com> wrote:
> > > Update on this -
> > >
> > > I tried with the newest spandsp on the snapshots site still to no
> > > avail. I also ensured no other copies of spandsp exist, and adding
> > > SPANDSP_LIBS=-lspandsp to makeopts, but still getting the segfault
> > > when rxfax is called.
> > >
> > >
> > >
> > > On 07/12/06, Matt Gibson <diwelf at gmail.com> wrote:
> > > > Same thing occuring here, on gentoo as well :(
> > > >
> > > >
> > > > On 07/12/06, Chris Glover <chris at glovercc.plus.com> wrote:
> > > > > Hi,
> > > > >
> > > > > I have installed the latest version of asterisk(1.4.0-beta3), and built
> > > > > app_rxfax/txfax. I'm using spandsp from here,
> > > > >
> > > > > http://www.soft-switch.org/downloads/snapshots/spandsp/spandsp-20061207.tar.gz
> > > > >
> > > > > Everything builds ok. I had to manually apply the patch from the site so
> > > > > configure would spot spandsp libraries. However, when I try dialing my
> > > > > virtual fax extension (either from a phone or fax machine) Asterisk
> > > > > bombs out with the following message...
> > > > >
> > > > > Executing [402 at default:1] RxFAX("SIP/101-081d63d0", "/tmp/test.tif") in
> > > > > new stack
> > > > > asterisk: symbol lookup error: /usr/lib/asterisk/modules/app_rxfax.so:
> > > > > undefined symbol: span_set_message_handler
> > > > >
> > > > > This was me dialing from a normal sip extension, hoping to hear fax
> > > > > tones. I did try the latest ebuild Gentoo have (1.2.13), this gave me
> > > > > perfect fax tones, but completely refused to include chan_zap, so I
> > > > > can't win :-)
> > > > >
> > > > > Please somebody tell me where I'm going wrong, been trying to get this
> > > > > to work for hours. I've got rid of all the old libraries, recompiled...
> > > > > my next step is to sacrifice a goat!
> > > > >
> > > > > Any help greatly appreciated.
> > > > >
> > > > > Chris
> > > > >
> > > > > --
> > > > > Chris
> > > > > ----------------------------------
> > > > > E Mail: chris at glovercc.plus.com
> > > > > SIP: 84411389 at voiptalk.org
> > > > > IAXTEL: 17003366726
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > --Bandwidth and Colocation provided by Easynews.com --
> > > > >
> > > > > asterisk-users mailing list
> > > > > To UNSUBSCRIBE or update options visit:
> > > > >    http://lists.digium.com/mailman/listinfo/asterisk-users
> > > > >
> > > >
> > > _______________________________________________
> > > --Bandwidth and Colocation provided by Easynews.com --
> > >
> > > asterisk-users mailing list
> > > To UNSUBSCRIBE or update options visit:
> > >    http://lists.digium.com/mailman/listinfo/asterisk-users
> > >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> --
> Chris
> ----------------------------------
> E Mail: chris at glovercc.plus.com
> SIP: 84411389 at voiptalk.org
> IAXTEL: 17003366726
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>


More information about the asterisk-users mailing list