|
List Info
Thread: Re: still have sip calling or receiving call on Linux?
|
|
| Re: still have sip calling or receiving
call on Linux? |

|
2007-08-16 09:59:00 |
|
Finally, At least, I'm not alone do you use linux too...
I follow the suggestion to display sourceProcessor state before and after the wait for state, and got this result :
[java] 10:50:21.381 FINE:
impl.media.CallSessionImpl.registerCustomCodecFormats().1361 registering format ilbc/rtp with RTP manager [java] 10:50:21.383 FINE: impl.media.CallSessionImpl.registerCustomCodecFormats().1361 registering format ALAW/rtp with RTP manager
[java] 10:50:21.383 FINE: impl.media.CallSessionImpl.registerCustomCodecFormats().1361 registering format speex/rtp with RTP manager [java] 10:50:21.515 INFO: impl.media.MediaControl.initProcessor().472 State before = 100
[java] Cannot open audio device for input: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported. [java] Failed to configure:
com.sun.media.ProcessEngine 7bacb [java] IO exception: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
[java] Error: Unable to configure com.sun.media.ProcessEngine 7bacb
[java] 10:50:21.587 INFO: impl.media.MediaControl.initProcessor().475 State after = 100 [java] 10:50:21.588 INFO: impl.media.MediaControl.initProcessor().502 State before setContentDescriptor = 100 [java]
javax.media.NotConfiguredError: setContentDescriptor cannot be called before configured
Following is the debug code =
logger.info("State before = " + sourceProcessor.getState());
processorUtility.waitForState(sourceProcessor , Processor.Configured); logger.info("State after = " + sourceProcessor.getState());
well, its looked like "waitForState" is failed to configure the capture devices. I boot the same machine with windows, and it doesn't hit this problem.
in my case, this only happened on linux.
On 8/16/07, Romain KUNTZ < kuntz clarinet.u-strasbg.fr">kuntz clarinet.u-strasbg.fr
> wrote:Hi Johny,
On 2007/08/14, at 22:49, Johny Kadarisman wrote: > I'm almost 100% sure, this is the cause by 'dual core' anomaly. I
> just tried again in other machine, it doesn't have the same > problem. Only this time, this box don't have sound card setup > properly. > > I'm curios if anybody got it work on 'dual core'?
FYI I have the same exception as you on the media bundle on my Core2 Duo 6600.
romain
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe sip-communicator.dev.java.net">
dev-unsubscribe sip-communicator.dev.java.net For additional commands, e-mail: dev-help sip-communicator.dev.java.net">dev-help sip-communicator.dev.java.net
|
| Re: still have sip calling or receiving
call on Linux? |

|
2007-08-16 16:33:22 |
|
Well, your log file shows the culprit: [java] Cannot open audio device for input: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
The Linux has problem with the sound device format and closes the processor in the realizing process. Try to use other audio format that are more acceptable to Linux. I would add a log line to the following code to show how it happens. public void controllerUpdate(ControllerEvent ce) { // If there was an error during configure or // realize, the processor will be closed if (ce instanceof ControllerClosedEvent) { log.debug("We are setting fail flag as a result of event: " + ce.toString()); // <==== something like that
setFailed(true); // All controller events, send a notification // to the waiting thread in waitForState method. } if (ce instanceof ControllerEvent) { synchronized (getStateLock()) { getStateLock().notifyAll(); } } } HIH
Mik Johny Kadarisman <jkr888 gmail.com> wrote: Finally, At least, I'm not alone do you use linux too...
I follow the suggestion to display sourceProcessor state before and after the wait for state, and got this result :
[java] 10:50:21.381 FINE: impl.media.CallSessionImpl.registerCustomCodecFormats().1361 registering format ilbc/rtp with RTP manager [java] 10:50:21.383 FINE: impl.media.CallSessionImpl.registerCustomCodecFormats().1361 registering format ALAW/rtp with RTP manager [java] 10:50:21.383 FINE: impl.media.CallSessionImpl.registerCustomCodecFormats().1361 registering format speex/rtp with RTP
manager [java] 10:50:21.515 INFO: impl.media.MediaControl.initProcessor().472 State before = 100 [java] Cannot open audio device for input: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported. [java] Failed to configure: com.sun.media.ProcessEngine 7bacb [java] IO exception: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
[java] Error: Unable to configure com.sun.media.ProcessEngine 7bacb [java] 10:50:21.587 INFO: impl.media.MediaControl.initProcessor().475 State after = 100 [java] 10:50:21.588 INFO: impl.media.MediaControl.initProcessor().502 State before setContentDescriptor = 100 [java]
javax.media.NotConfiguredError: setContentDescriptor cannot be called before configured
Following is the debug code =
logger.info("State before = " + sourceProcessor.getState()); processorUtility.waitForState(sourceProcessor , Processor.Configured); logger.info("State after = " + sourceProcessor.getState());
well, its looked like "waitForState" is failed to configure the capture devices. I boot the same machine with windows, and it doesn't hit this problem.
in my case, this only happened on
linux.
On 8/16/07, Romain KUNTZ < kuntz clarinet.u-strasbg.fr">kuntz clarinet.u-strasbg.fr > wrote: Hi Johny,
On 2007/08/14, at 22:49, Johny Kadarisman wrote: > I'm almost 100% sure, this is the cause by 'dual core' anomaly. I > just tried again in other machine, it doesn't have the same > problem. Only this time, this box don't have sound card setup > properly. > > I'm curios if anybody got it work on 'dual core'?
FYI I have the same exception as you on the media bundle on my Core2 Duo 6600.
romain
--------------------------------------------------------------------- To unsubscribe, e-mail: sip-communicator.dev.java.net">dev-unsubscribe sip-communicator.dev.java.net For additional commands, e-mail: dev-help sip-communicator.dev.java.net">dev-help sip-communicator.dev.java.net
|
[1-2]
|
|