[sip-comm-dev] ulaw samples per packet


#1

I am running the nightly build from Nov. 5.

It looks like the communicator is sending 30ms of ulaw data per packet
rather than the standard 20ms per packet. Is there a reason for this?

It looks like the packet size is hard coded:

/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.

···

*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.media.codec.audio.ulaw;

import java.io.*;
import javax.media.*;

/**
* Overrides the ULaw Packetizer with a different packet size
* @author Thomas Hofer
*/
public class Packetizer
    extends com.sun.media.codec.audio.ulaw.Packetizer
{
    public Packetizer()
    {
        super();
        packetSize = 240;
        setPacketSize(packetSize);

        // Workaround to use our ulaw packetizer
        PlugInManager.removePlugIn("com.sun.media.codec.audio.ulaw.Packetizer",
            PlugInManager.CODEC);
        try
        {
            PlugInManager.commit();
        }
        catch (IOException e)
        {
        }
        PLUGIN_NAME = "ULaw Packetizer";
    }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hi,

actually this change was done while ago, you can take a look at the
thread which lead to the change:
https://sip-communicator.dev.java.net/servlets/ReadMsg?list=dev&msgNo=2305
It was a report that the original Packetizer doesn't work for some
provider, and it was changed to this packetSize = 240;
The default value before that was packetSize = 480;
As I see now it is possible to change it dynamically, there is
PacketSizeAdapter in the original Packetizer and it can be changed
through it.

Cheers
damencho

···

On Wed, Nov 18, 2009 at 4:06 PM, Joe Provino <Joe.Provino@sun.com> wrote:

I am running the nightly build from Nov. 5.

It looks like the communicator is sending 30ms of ulaw data per packet
rather than the standard 20ms per packet. Is there a reason for this?

It looks like the packet size is hard coded:

/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.media.codec.audio.ulaw;

import java.io.*;
import javax.media.*;

/**
* Overrides the ULaw Packetizer with a different packet size
* @author Thomas Hofer
*/
public class Packetizer
extends com.sun.media.codec.audio.ulaw.Packetizer
{
public Packetizer()
{
super();
packetSize = 240;
setPacketSize(packetSize);

  // Workaround to use our ulaw packetizer

PlugInManager.removePlugIn("com.sun.media.codec.audio.ulaw.Packetizer",
PlugInManager.CODEC);
try
{
PlugInManager.commit();
}
catch (IOException e)
{
}
PLUGIN_NAME = "ULaw Packetizer";
}
}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Damian, thanks for the explanation.

Can you tell me in more detail how to dynamically change the packet size?

joe

···

Hi,

actually this change was done while ago, you can take a look at the
thread which lead to the change:
https://sip-communicator.dev.java.net/servlets/ReadMsg?list=dev&msgNo=2305
It was a report that the original Packetizer doesn't work for some
provider, and it was changed to this packetSize = 240;
The default value before that was packetSize = 480;
As I see now it is possible to change it dynamically, there is
PacketSizeAdapter in the original Packetizer and it can be changed
through it.

Cheers
damencho

On Wed, Nov 18, 2009 at 4:06 PM, Joe Provino <Joe.Provino@sun.com> wrote:

I am running the nightly build from Nov. 5.

It looks like the communicator is sending 30ms of ulaw data per packet
rather than the standard 20ms per packet. Is there a reason for this?

It looks like the packet size is hard coded:

/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.media.codec.audio.ulaw;

import java.io.*;
import javax.media.*;

/**
* Overrides the ULaw Packetizer with a different packet size
* @author Thomas Hofer
*/
public class Packetizer
  extends com.sun.media.codec.audio.ulaw.Packetizer
{
  public Packetizer()
  {
      super();
      packetSize = 240;
      setPacketSize(packetSize);

      // Workaround to use our ulaw packetizer

PlugInManager.removePlugIn("com.sun.media.codec.audio.ulaw.Packetizer",
          PlugInManager.CODEC);
      try
      {
          PlugInManager.commit();
      }
      catch (IOException e)
      {
      }
      PLUGIN_NAME = "ULaw Packetizer";
  }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi,
With "dynamically" I mean to not use our packetizer, it does nothing
than setting the packetSize, but the parent Packetizer has the option
to use its PacketSizeAdapter to set its packet size. An configuration
option can be made so this value is configurable through the
configuration service.
But this packet size must be set every time we use this codec, but I
cannot see a suitable place for this right now, must go more deep into
the problem.
So maybe its easier just to change our packetizer :), or make it get
the packet size from some configuration.

Cheers
damencho

···

On Wed, Nov 18, 2009 at 5:57 PM, Joe Provino - Sun BOS Software <Joe.Provino@sun.com> wrote:

Damian, thanks for the explanation.

Can you tell me in more detail how to dynamically change the packet size?

joe

Hi,

actually this change was done while ago, you can take a look at the
thread which lead to the change:
https://sip-communicator.dev.java.net/servlets/ReadMsg?list=dev&msgNo=2305
It was a report that the original Packetizer doesn't work for some
provider, and it was changed to this packetSize = 240;
The default value before that was packetSize = 480;
As I see now it is possible to change it dynamically, there is
PacketSizeAdapter in the original Packetizer and it can be changed
through it.

Cheers
damencho

On Wed, Nov 18, 2009 at 4:06 PM, Joe Provino <Joe.Provino@sun.com> wrote:

I am running the nightly build from Nov. 5.

It looks like the communicator is sending 30ms of ulaw data per packet
rather than the standard 20ms per packet. Is there a reason for this?

It looks like the packet size is hard coded:

/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging
client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.media.codec.audio.ulaw;

import java.io.*;
import javax.media.*;

/**
* Overrides the ULaw Packetizer with a different packet size
* @author Thomas Hofer
*/
public class Packetizer
extends com.sun.media.codec.audio.ulaw.Packetizer
{
public Packetizer()
{
super();
packetSize = 240;
setPacketSize(packetSize);

 // Workaround to use our ulaw packetizer

PlugInManager.removePlugIn("com.sun.media.codec.audio.ulaw.Packetizer",
PlugInManager.CODEC);
try
{
PlugInManager.commit();
}
catch (IOException e)
{
}
PLUGIN_NAME = "ULaw Packetizer";
}
}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

Hello,
Please remove me from your mailing list.

Best Regards,
M. Speicher

···

-----Ursprüngliche Nachricht-----
Von: Joe.Provino@Sun.COM [mailto:Joe.Provino@Sun.COM]
Gesendet: Mittwoch, 18. November 2009 16:58
An: dev@sip-communicator.dev.java.net
Betreff: Re: [sip-comm-dev] ulaw samples per packet

Damian, thanks for the explanation.

Can you tell me in more detail how to dynamically change the packet size?

joe

Hi,

actually this change was done while ago, you can take a look at the
thread which lead to the change:
https://sip-communicator.dev.java.net/servlets/ReadMsg?list=dev&msgNo=2305
It was a report that the original Packetizer doesn't work for some
provider, and it was changed to this packetSize = 240;
The default value before that was packetSize = 480;
As I see now it is possible to change it dynamically, there is
PacketSizeAdapter in the original Packetizer and it can be changed
through it.

Cheers
damencho

On Wed, Nov 18, 2009 at 4:06 PM, Joe Provino <Joe.Provino@sun.com> wrote:

I am running the nightly build from Nov. 5.

It looks like the communicator is sending 30ms of ulaw data per packet
rather than the standard 20ms per packet. Is there a reason for this?

It looks like the packet size is hard coded:

/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging

client.

*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.media.codec.audio.ulaw;

import java.io.*;
import javax.media.*;

/**
* Overrides the ULaw Packetizer with a different packet size
* @author Thomas Hofer
*/
public class Packetizer
  extends com.sun.media.codec.audio.ulaw.Packetizer
{
  public Packetizer()
  {
      super();
      packetSize = 240;
      setPacketSize(packetSize);

      // Workaround to use our ulaw packetizer

PlugInManager.removePlugIn("com.sun.media.codec.audio.ulaw.Packetizer",
          PlugInManager.CODEC);
      try
      {
          PlugInManager.commit();
      }
      catch (IOException e)
      {
      }
      PLUGIN_NAME = "ULaw Packetizer";
  }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#6

Damian, okay, thanks.

joe

···

Hi,
With "dynamically" I mean to not use our packetizer, it does nothing
than setting the packetSize, but the parent Packetizer has the option
to use its PacketSizeAdapter to set its packet size. An configuration
option can be made so this value is configurable through the
configuration service.
But this packet size must be set every time we use this codec, but I
cannot see a suitable place for this right now, must go more deep into
the problem.
So maybe its easier just to change our packetizer :), or make it get
the packet size from some configuration.

Cheers
damencho

On Wed, Nov 18, 2009 at 5:57 PM, Joe Provino - Sun BOS Software > <Joe.Provino@sun.com> wrote:

Damian, thanks for the explanation.

Can you tell me in more detail how to dynamically change the packet size?

joe

Hi,

actually this change was done while ago, you can take a look at the
thread which lead to the change:
https://sip-communicator.dev.java.net/servlets/ReadMsg?list=dev&msgNo=2305
It was a report that the original Packetizer doesn't work for some
provider, and it was changed to this packetSize = 240;
The default value before that was packetSize = 480;
As I see now it is possible to change it dynamically, there is
PacketSizeAdapter in the original Packetizer and it can be changed
through it.

Cheers
damencho

On Wed, Nov 18, 2009 at 4:06 PM, Joe Provino <Joe.Provino@sun.com> wrote:

I am running the nightly build from Nov. 5.

It looks like the communicator is sending 30ms of ulaw data per packet
rather than the standard 20ms per packet. Is there a reason for this?

It looks like the packet size is hard coded:

/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging
client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.media.codec.audio.ulaw;

import java.io.*;
import javax.media.*;

/**
* Overrides the ULaw Packetizer with a different packet size
* @author Thomas Hofer
*/
public class Packetizer
extends com.sun.media.codec.audio.ulaw.Packetizer
{
public Packetizer()
{
     super();
     packetSize = 240;
     setPacketSize(packetSize);

     // Workaround to use our ulaw packetizer

PlugInManager.removePlugIn("com.sun.media.codec.audio.ulaw.Packetizer",
         PlugInManager.CODEC);
     try
     {
         PlugInManager.commit();
     }
     catch (IOException e)
     {
     }
     PLUGIN_NAME = "ULaw Packetizer";
}
}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

Hi!

How can I change the h264/rtp payload value for another different?

Thanks.

Pablo.

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#8

Hello,
Please remove me from your mailing list.

Best Regards,
M. Speicher

···

-----Ursprüngliche Nachricht-----
Von: Joe.Provino@Sun.COM [mailto:Joe.Provino@Sun.COM]
Gesendet: Mittwoch, 18. November 2009 19:12
An: dev@sip-communicator.dev.java.net
Betreff: Re: [sip-comm-dev] ulaw samples per packet

Damian, okay, thanks.

joe

Hi,
With "dynamically" I mean to not use our packetizer, it does nothing
than setting the packetSize, but the parent Packetizer has the option
to use its PacketSizeAdapter to set its packet size. An configuration
option can be made so this value is configurable through the
configuration service.
But this packet size must be set every time we use this codec, but I
cannot see a suitable place for this right now, must go more deep into
the problem.
So maybe its easier just to change our packetizer :), or make it get
the packet size from some configuration.

Cheers
damencho

On Wed, Nov 18, 2009 at 5:57 PM, Joe Provino - Sun BOS Software > <Joe.Provino@sun.com> wrote:

Damian, thanks for the explanation.

Can you tell me in more detail how to dynamically change the packet size?

joe

Hi,

actually this change was done while ago, you can take a look at the
thread which lead to the change:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=dev&msgNo=2305

It was a report that the original Packetizer doesn't work for some
provider, and it was changed to this packetSize = 240;
The default value before that was packetSize = 480;
As I see now it is possible to change it dynamically, there is
PacketSizeAdapter in the original Packetizer and it can be changed
through it.

Cheers
damencho

On Wed, Nov 18, 2009 at 4:06 PM, Joe Provino <Joe.Provino@sun.com> wrote:

I am running the nightly build from Nov. 5.

It looks like the communicator is sending 30ms of ulaw data per packet
rather than the standard 20ms per packet. Is there a reason for this?

It looks like the packet size is hard coded:

/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging
client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.media.codec.audio.ulaw;

import java.io.*;
import javax.media.*;

/**
* Overrides the ULaw Packetizer with a different packet size
* @author Thomas Hofer
*/
public class Packetizer
extends com.sun.media.codec.audio.ulaw.Packetizer
{
public Packetizer()
{
     super();
     packetSize = 240;
     setPacketSize(packetSize);

     // Workaround to use our ulaw packetizer

PlugInManager.removePlugIn("com.sun.media.codec.audio.ulaw.Packetizer",
         PlugInManager.CODEC);
     try
     {
         PlugInManager.commit();
     }
     catch (IOException e)
     {
     }
     PLUGIN_NAME = "ULaw Packetizer";
}
}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#9

Hello,
Please remove me from your mailing list.

Best Regards,
M. Speicher

···

-----Ursprüngliche Nachricht-----
Von: damencho@damencho.com [mailto:damencho@damencho.com] Im Auftrag von
Damian Minkov
Gesendet: Mittwoch, 18. November 2009 17:22
An: dev@sip-communicator.dev.java.net
Betreff: Re: [sip-comm-dev] ulaw samples per packet

Hi,
With "dynamically" I mean to not use our packetizer, it does nothing
than setting the packetSize, but the parent Packetizer has the option
to use its PacketSizeAdapter to set its packet size. An configuration
option can be made so this value is configurable through the
configuration service.
But this packet size must be set every time we use this codec, but I
cannot see a suitable place for this right now, must go more deep into
the problem.
So maybe its easier just to change our packetizer :), or make it get
the packet size from some configuration.

Cheers
damencho

On Wed, Nov 18, 2009 at 5:57 PM, Joe Provino - Sun BOS Software <Joe.Provino@sun.com> wrote:

Damian, thanks for the explanation.

Can you tell me in more detail how to dynamically change the packet size?

joe

Hi,

actually this change was done while ago, you can take a look at the
thread which lead to the change:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=dev&msgNo=2305

It was a report that the original Packetizer doesn't work for some
provider, and it was changed to this packetSize = 240;
The default value before that was packetSize = 480;
As I see now it is possible to change it dynamically, there is
PacketSizeAdapter in the original Packetizer and it can be changed
through it.

Cheers
damencho

On Wed, Nov 18, 2009 at 4:06 PM, Joe Provino <Joe.Provino@sun.com> wrote:

I am running the nightly build from Nov. 5.

It looks like the communicator is sending 30ms of ulaw data per packet
rather than the standard 20ms per packet. Is there a reason for this?

It looks like the packet size is hard coded:

/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging
client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.media.codec.audio.ulaw;

import java.io.*;
import javax.media.*;

/**
* Overrides the ULaw Packetizer with a different packet size
* @author Thomas Hofer
*/
public class Packetizer
extends com.sun.media.codec.audio.ulaw.Packetizer
{
public Packetizer()
{
super();
packetSize = 240;
setPacketSize(packetSize);

 // Workaround to use our ulaw packetizer

PlugInManager.removePlugIn("com.sun.media.codec.audio.ulaw.Packetizer",
PlugInManager.CODEC);
try
{
PlugInManager.commit();
}
catch (IOException e)
{
}
PLUGIN_NAME = "ULaw Packetizer";
}
}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#10

Hello,
Please remove me from your mailing list.

Best Regards,
M. Speicher

···

-----Ursprüngliche Nachricht-----
Von: PABLO LOPEZ GARCIA [mailto:palg@tid.es]
Gesendet: Donnerstag, 19. November 2009 13:05
An: dev@sip-communicator.dev.java.net
Betreff: [sip-comm-dev] H264 PAYLOAD

Hi!

How can I change the h264/rtp payload value for another different?

Thanks.

Pablo.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net