List Info

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




Re: still have sip calling or receiving call on Linux?
user name
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.ProcessEngine7bacb
     [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.ProcessEngine7bacb
     [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 < kuntzclarinet.u-strasbg.fr">kuntzclarinet.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-unsubscribesip-communicator.dev.java.net"> dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net">dev-helpsip-communicator.dev.java.net


Re: still have sip calling or receiving call on Linux?
user name
2007-08-16 16:33:22
 
Well, your log file shows the culprit:
 &nbsp; &nbsp; [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.
 
 &nbsp;  public void controllerUpdate(ControllerEvent ce)
   ; {
 &nbsp; &nbsp;   ; // If there was an error during configure or
 &nbsp;   ; &nbsp; // realize, the processor will be closed
&nbsp; &nbsp; &nbsp;   if (ce instanceof ControllerClosedEvent) {
log.debug("We are setting fail flag as a result of event: " + ce.toString()); // <==== something like that
 ; &nbsp; &nbsp; &nbsp; &nbsp;   setFailed(true);
&nbsp; &nbsp; &nbsp; &nbsp;   ;  // All controller events, send a notification
 &nbsp; &nbsp;   ; &nbsp; &nbsp; // to the waiting thread in waitForState method.
&nbsp; &nbsp;   ;  }
 &nbsp; &nbsp; &nbsp;  if (ce instanceof ControllerEvent) {
 &nbsp; &nbsp;   ; &nbsp; &nbsp; synchronized (getStateLock()) {
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; getStateLock().notifyAll();
&nbsp; &nbsp; &nbsp; &nbsp;   ;  }
 &nbsp; &nbsp;   ; }
 &nbsp;  }
HIH
Mik

Johny Kadarisman <jkr888gmail.com&gt; 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 :

 &nbsp;   [java] 10:50:21.381 FINE: impl.media.CallSessionImpl.registerCustomCodecFormats().1361 registering format ilbc/rtp with RTP manager
&nbsp; &nbsp;  [java] 10:50:21.383 FINE: impl.media.CallSessionImpl.registerCustomCodecFormats().1361 registering format ALAW/rtp with RTP manager
 &nbsp; &nbsp; [java] 10:50:21.383 FINE: impl.media.CallSessionImpl.registerCustomCodecFormats().1361 registering format speex/rtp with RTP manager
&nbsp; &nbsp;  [java] 10:50:21.515 INFO: impl.media.MediaControl.initProcessor().472 State before = 100
 &nbsp; &nbsp; [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.
 &nbsp; &nbsp; [java] Failed to configure: com.sun.media.ProcessEngine7bacb
&nbsp; &nbsp;  [java]&nbsp;  IO exception: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.

 &nbsp; &nbsp; [java] Error: Unable to configure com.sun.media.ProcessEngine7bacb
 &nbsp; &nbsp; [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 =

 &nbsp;   ; &nbsp; &nbsp; &nbsp; logger.info("State before = " + sourceProcessor.getState());
&nbsp; &nbsp; &nbsp;   ; &nbsp;  processorUtility.waitForState(sourceProcessor
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ;  , Processor.Configured);
 &nbsp; &nbsp; &nbsp;   ; &nbsp; 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 < kuntzclarinet.u-strasbg.fr">kuntzclarinet.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-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net">dev-helpsip-communicator.dev.java.net



[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )