[sip-comm-dev] Buffer threshold


#1

Hello my name is Ahmed ,

I have a simple question ,i'm using jmf , I want to prevent my processor to
send 0ms packets so i used a BufferControl control over my processor here is
the code

BufferControl pc = (BufferControl)
processor.getControl("javax.media.control.BufferControl");
pc.setBufferLength(60);
    pc.setEnabledThreshold(true);
    pc.setMinimumThreshold(60);
System.out.println("threshold:"+pc.getMinimumThreshold());
System.out.println(pc.getEnabledThreshold());
System.out.println(pc.getBufferLength());

but the threshold is always 0 , how can i set the threshold correctly ?
and is there any other way to make my packets 60ms and prevent any packet to
get out before this period ?

Kind Regards

···

--
Ahmed Wafeek