Bug#384460: IAX Clients Crashing (portaudio?)

George Danchev danchev at spnet.net
Sun Feb 11 13:26:48 UTC 2007


On Sunday 11 February 2007 14:19, J L Kolpin wrote:
> Apologies if this isn't in the format required I am still trying to
> figure the BTS out. This is not an iaxcomm only bug.. It seems anything
> using iax is broken as this also happened to me with kiax. Something
> with portaudio maybe?...
>
> I am also using testing completely up to date
>
> :~$ kiax
>
> Sun Feb 11 04:49:17 2007 Using IAXClient ver. 0.0+cvs20060520
> PortAudio error at Unable to open streams: Illegal error number.
> Sun Feb 11 04:49:17 2007 IaxWrapper::iaxc_initialize() result = 0
> Segmentation fault

Hello and thanks for reporting this,

I suspect that there is something wrong with iaxc_set_formats() function call 
which is implemented in libiaxclient and declared as:
iaxclient.h:EXPORT void iaxc_set_formats(int preferred, int allowed);

Could you please perform the following test: apt-get source kiax and find the 
following method implementation in src/iaxwrapper.cpp:

bool IaxWrapper::init_iax_client()
{
  int result = iaxc_initialize(AUDIO_INTERNAL,getSettings()->getMaxCalls());
  debug( "IaxWrapper::iaxc_initialize() result = %d\n", result);
  if (result==-1)
  {
    // hopefully not many people will have to read this..
    fatal_error("cannot initialize iaxclient!\n");
    return false;
  }
  iaxc_set_formats(IAXC_FORMAT_GSM,IAXC_FORMAT_GSM|IAXC_FORMAT_SPEEX|
IAXC_FORMAT_ULAW|IAXC_FORMAT_ILBC);
  return true;
}

Since result is said to be 0 (from your log above) it crashes in 
iaxc_set_formats(). So call it this ways instead: 

iaxc_set_formats(IAXC_FORMAT_GSM,IAXC_FORMAT_SPEEX);

Recompile kiax and try again.

-- 
pub 4096R/0E4BD0AB 2003-03-18 <people.fccf.net/danchev/key pgp.mit.edu>
fingerprint 1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB 




More information about the Pkg-voip-maintainers mailing list