You are not logged in.

#1 2006-05-12 04:45:19

bzklrm
Member
From: Australia
Registered: 2005-04-18
Posts: 36

iax clients segfaulting

Hi,

I am trying to setup an iax client on my box, but I keep getting a segfault. With kiax (from AUR), I get the following:

Fri May 12 14:29:09 2006 Using IAXClient ver. CVS-2006/04/09-16:30
PortAudio error at Unable to open streams: Illegal error number.
Fri May 12 14:29:10 2006 IaxWrapper::iaxc_initialize() result = 0
Fri May 12 14:29:11 2006 IaxWrapper::start_iax_client() starting processing thread..
Fri May 12 14:29:11 2006 IaxWrapper::iaxc_start_processing_thread() result = 0
Fri May 12 14:29:11 2006 IaxWrapper::registerMultipleAccounts() registering accounts..
segmentation fault  kiax

With iaxcomm (self compiled), I get a similar error (the portaudio line and the segmentation fault). The only difference is that it asks me to enter my account details before...
I have been unsuccessfully googling, and so I resorted to ask on this forum if anyone would have an idea...

bzklrm

Offline

#2 2006-05-12 12:41:27

torindan2
Member
Registered: 2004-07-15
Posts: 74

Re: iax clients segfaulting

Check if somebody else is using the sound card when you are trying to launch kiax

lsof | egrep "/dev/(dsp)|(snd)"

If that is the problem you probably need to add following lines in lib/iaxclient_lib.c :

 EXPORT int iaxc_audio_devices_get(struct iaxc_audio_device **devs, int *nDevs, int *input, int *output, int *ring) {
       *devs = audio.devices;
       *nDevs = audio.nDevices;
+      if(audio.selected_devices == NULL)
+          return -1;
       audio.selected_devices(&audio,input,output,ring);
       return 0;
 }

This happens when portaudio(OSS) can't get acces to sound device, you need esd or something simmilar.

Offline

#3 2006-05-13 05:48:45

bzklrm
Member
From: Australia
Registered: 2005-04-18
Posts: 36

Re: iax clients segfaulting

Thank you for your response.
I tried with and without esd running, with the same results. Without esd, the command

 lsof | egrep "/dev/(dsp)|(snd)"

doesn't return any file.

Offline

Board footer

Powered by FluxBB