Setting priority to the RTP packets

Hi,
I am developing a system which will use multicasting to trnamist RTP packets. To ensure the better transmission, I want to set priority to my transmitting RTP packets. My system has been developed based on AVTransmit3 and AVReceive3 provided by sun where RTPManager has been used.
However is it possible to add special information to the RTP packets so that router underlying router will allow my packet to be transmitted first?
A repply is badly needed...................

Well......according to the RFC2474 and RFC2475, diffserv header can map with the precedence field of the IP header, In IP header TOS field can be mapped with DSCP field of the Diffserv Header. Now jcparques, though IP header can be diffserv capable but is their no router availble in reality which is diifserv capable?Or if I use any simulator like NS2 or other simulator which can work with java, can't I implement diffserv in rtp packet?

Similar Messages

  • How to use jmf convert the rtp packet (captured by jpcap) in to wav file?

    I use the jpcap capture the rtp packets(payload: ITU-T G.711 PCMU ,from voip)
    and now I want to use JMF read those data and convert in to wav file
    How to do this? please help me

    pedrorp wrote:
    Hi Captfoss!
    I fixed it but now I have another problem. My application send me this message:
    Cannot initialize audio renderer with format: LINEAR, Unknown Sample Rate, 16-bit, Mono, LittleEndian, Signed
    Unable to handle format: ALAW/rtp, Unknown Sample Rate, 8-bit, Mono, FrameSize=8 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@1b45ddc
    Error: Unable to prefetch com.sun.media.PlaybackEngine@1b45ddc
    This time the fail is prefetching. I have no idea why this problem is. Could you help me?The system cant play an audio file / stream if it doesn't know the sample rate...somewhere along the way, in your code, the sample rate got lost. Sample rates are highly important, because they tell the system how fast to play the file.
    You need to go look through your code and find where the sample rate information is getting lost...

  • Snow and setting priority for voip voice packets?

    I have an engine Voice Box 2 connected to my dual ethernet base station, for voip phone calls using a 1500kbps broadband connection. It all works fine, except sometimes the voice quality of phone calls isn't good - drop-outs occur. Engin support tells me there is a way to configure an airport BS to give priority to voice packet data over other internet data data, and this will improve the voice quality.
    Is this possible with a snow BS, and if so how do I do it?

    OK, Duane and anyone else. My question has been answered via telephone from Apple Australia, on Thursday 22 Feb 2007 at local time 9.01 pm. The answer is: There is no way that any version of an Airport BS can be set to prioritize voip voice packets over other internet packets of data.
    Apple Supporters in other countries may disagree (not a surprise). I've been a Mac user since the first 1984 64K Mac, and I've not been too impressed with Apple phone service during the last 20+ years, so if another Apple tech elsewhere comes up with a different answer I would not be at all surprised.
    So, first premise is my voip provider gave me incorrect info. Second one is maybe someone else gave them the incorrect info. One guess and no prizes as to whom this may have been.
    Bigger surprise is that Apple seems oblivious to how popular voip phone is going to be in the immediate future, and that Mac users are likely to receive inferior quality voice quality and have no way to improve this by tweaking their Airports.

  • Re: Please reply error in Transmitting the rtp packet

    Did you try openning a MJPEG video file?
    " static int MJPEG_TYPE = 26; //RTP payload type for MJPEG video"

    SilvioReis, please check the date of the last post before joining in a discussion. There's no need to try to answer year old questions...

  • RTP Transmission always lose the last packet

    Hi,
    I transmit a audio file through rtp by using the JMFStudio(V 2.1.1e), then capture the rtp packets on the sending port, but the last rtp packet is missing every time.
    Several developers of my team tried on their own machine and got the same result.
    Did anyone try this before or if anybody can tell me how to solve it?
    Thanks a lot!

    Several thoughts...
    If the last "packet" isn't big enough, IE, a full payload worth of data, the underlaying transport mechanism may keep it trapped in the buffer forever. If it sends packets based on a BufferFull event of some sort, then the last packet won't ever be sent because it'll get trapped in the buffer. This is a big problem with TCP sockets, and in that instance, the buffer is flushed automaticlly when a close operation is called on the socket.
    I have no idea how you're managing the sending of RTP packets, but that's a possible reason.
    Another possible reason would be how you're handling the EndOfMedia event. If you were to, say, stop the entire process down before the final RTP packet got sent out, then you'd also not be getting the last packet sent out. Everything in JMF pretty much spawns a new execution thread, so it's possible the main thread is shutting those other threads down before they're done doing work with calls to whatever.Stop() and whatever.Close()...
    Those are just 2 ideas off the top of my head to explain why a last packet may not be sent out...

  • DVI/RTP packet decode

    Hi,
    I need to stream audio and/or video to a PDA device. There is a trick here which is:
    The PDA must receive the stream from a multicast address. For this I have implemented a Bridge application which joins the multicast group on behalf of the PDA and receives the Multicast RTP packets (which are sent from JMStudio) and Unicasts them to the PDA.(HP iPAQ) I had no problem implementing this. The streaming is done using JMStudio player which encodes the streaming audio data into a number of encodings (DVI/RTP in my case). I choose DVI/RTP and stream a .wav audio file.
    Now I have to accept the packets and play the stream on the PDA.
    The j2me application receives all the RTP packets successfully and I can extract usefull information from the packets such as: Timestamp, sequence number, payload type. The payload type is 5 which means it is a DVI4 encoding.
    I use the following method to decode the samples:
    public int decode(Object state, byte[] input, int inp, int len, short[] output, int outp) {
    int sign;
    int delta;
    int vpdiff;
    //int valprev = audio.Convert.byte2short(input, inp);
    //int index = input[inp + 2];
    int valprev=0,index=0;
    int inputbuffer = 0;
    int bufferstep = 0;
    valprev = input[0] <<8;
    valprev |= input[1] &0xff;
    index = input[2] &0xff;
    if ( index < 0 ) index = 0;
    else if ( index > 88 ) index = 88;
    int step = stepsizeTable[index];
    inp += 4;
    len = (len - 4) * 2;
    int count = len;
    while(count-- > 0) {
    if ( 0 == bufferstep ) {
    inputbuffer = input[inp++];
    delta = (inputbuffer >> 4) & 0xf;
    bufferstep = 1;
    } else {
    delta = inputbuffer & 0xf;
    bufferstep = 0;
    index += indexTable[delta];
    if ( index < 0 ) index = 0;
    else if ( index > 88 ) index = 88;
    sign = delta & 8;
    delta = delta & 7;
    vpdiff = step >> 1;
    if ( (delta & 4) == 4 ) vpdiff += (step << 2);
    if ( (delta & 2) == 2 ) vpdiff += (step << 1);
    if ( (delta & 1) == 1 ) vpdiff += step;
    vpdiff >>= 2;
    if ( 0 != sign )
    valprev -= vpdiff;
    else
    valprev += vpdiff;
    if ( valprev > 32767 )
    valprev = 32767;
    else if ( valprev < -32768 )
    valprev = -32768;
    step = stepsizeTable[index];
    output[outp++] = (short) valprev;
    ((AdpcmState)state).valprev = valprev;
    ((AdpcmState)state).index = index;
    return len;
    which stores the result into a short[] array.
    I then convert this short[] array into a byte[] array with the following way:
    s is the short[] array
    adp is the byte array
    for(int g=0,k=0;g<s.length;g++,k=k+2){
    audio.Convert.short2byte(s[g],adp,k);
    public static void short2byte(short ival, byte b[], int offset) {
    int i;
    int bits = 16;
    for(i = 0; i >< 2; i++) {
    bits -= 8;
    b[offset + i] = (byte) ((ival >> bits) & 0xff);
    The final result is loaded to the player as follows:
    ByteArrayInputStream input1 = new ByteArrayInputStream(adp);
    player = Manager.createPlayer(input1, "audio/x-wav");//create new player
    player.addPlayerListener(this);
    player.prefetch();
    player.realize();
    player.start();
    The player begins to play but I only get horrible sounds instead of the original wave file
    The player now initializes ok without any problem but I can only hear a meesed up sound rather than the original. So now I strongly believe that the problem is in the decoding of the samples of the DVI/RTP codec.

    thesti wrote:
    how JMF deal with RTP packet loss? since my application doesn't handle anything due to RTP packet loss, i believe that JMF has a mechanism to deal with it.It "deals" with it by having a blank spot in the rendering where that packet would have gone...

  • Packet sniffer only picks up UDP and no RTP packets when using JMF???

    Hi,
    I am developing a voice mail application to interface with asterisk. Here is the problem.
    I am using ethereal packet sniffer to sniff the packets. When I connect two regular SIP phones and sniff , I can sniff the RTP packets.
    But when I use JMF AVtransmit2.java and AVReceive2.java I sniff only UDP packets and no RTP packets.
    I am very confused. What is going on? If JMF sends over RTP (that uses UDP underneath), then why cannot packet sniffers detect it.

    Hi,
    I am developing a voice mail application to interface with asterisk. Here is the problem.
    I am using ethereal packet sniffer to sniff the packets. When I connect two regular SIP phones and sniff , I can sniff the RTP packets.
    But when I use JMF AVtransmit2.java and AVReceive2.java I sniff only UDP packets and no RTP packets.
    I am very confused. What is going on? If JMF sends over RTP (that uses UDP underneath), then why cannot packet sniffers detect it.

  • Setting Priority Dynamically in Decision Step

    Hi Experts,
    My requirement is to set priority of the user decision based on a container element value.
    Depending on the container element values, some times the workitem should be created with priority 5 (medium) and some times it should get created with priority 4 (High).
    Please let me know how can we pass priority dynamically to the user decision step.
    Thanks in Advance,
    Siva Sankar.

    I think you can use FM
    SWW_WI_PRIORITY_CHANGE
    Thanks
    Arghadip

  • UCCX 8.5.1 Scripting Assistance - Set Priority

    Hello,
    I am trying to configure the priority in my script similar to how they did this in the below discussion. 
    https://supportforums.cisco.com/discussion/11892936/uccx-851-basic-scripting-assistance-set-priority
    When I put the "set priority" in the script it errors out and callers hear the message that the system is experiencing problems.  The script runs fine without the "set priority".  Any assistance would be greatly appreciated.

    Chris,
    I attempted to validate the script and did get an error with the "Set Enterprise Call Info" step.  What's odd is that without the priority step the script still does not validate, but actually works fine.  As soon as I add the priority step to it though it breaks.
    I removed the "Set Enterprise Call Info" step and the priority works as expected now.  Thank you for your assistance.
    Jared

  • How to capture rtp packet??

    Hi,
    can someone plz tell me how to capture rtp packets. And also can u tell me how to remove the rtp header. I want to add another header to the rtp packet. I will be glad if u can also send me some code samples too.
    Thank you in advance.
    bye
    R.Ravi Kiran

    To Capture the RTP Packet all you need to do is listen for a UDP packet on the destination address and you will be able to receive the data. The Data field is by default 256 bytes long (just to let you know).
    So you will send the RTP Packet to Localhost port 4444
    To capture the packet you need to be listening for a UDP packet on that Address
    it would look something like this:
    byte[] buf = new byte[256];
    DatagramSocket socket = new DatagramSocket(4444);
    DatagramPacket packet = new DatagramPacket(buf, buf.length);
    socket.receive(packet);
    then you just have to do what you want with the buf array
    I'm not to sure about the RTP Header I'm working on that as well.. so if I find anything I will let you know.

  • Raw RTP packets

    I have extracted raw RTP packets with Ethereal and want the media to be put together and saved to file. Can I user JMF to put a raw RTP session together?
    If "Yes", how?
    /Tec

    I know that, but I will always have raw RTP packets that I need to have "decoded" and put to file. I cant use JMF to fetch the RTP packets.

  • Setting priority for WL Triggers

    Hi,
    We are developing a huge application using WL 5.1 and JDK 1.2.2. We have 5-6
    Weblogic Scheduled Triggers that are running at different time.
    The rest of the application almost comes to halt or slows down when the
    triggers are scheduled. Is there a way to set priority for the those
    Triggers? Like can i say in weblogic that run triggers in low priority? If
    so, how?
    Thanks for the help in advance.
    regards,
    Prabhakar Babu

    At the current time, no.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "Prabhakar Babu" <[email protected]> wrote in message
    news:39b7f8a8$[email protected]..
    Hi,
    We are developing a huge application using WL 5.1 and JDK 1.2.2. We have5-6
    Weblogic Scheduled Triggers that are running at different time.
    The rest of the application almost comes to halt or slows down when the
    triggers are scheduled. Is there a way to set priority for the those
    Triggers? Like can i say in weblogic that run triggers in low priority? If
    so, how?
    Thanks for the help in advance.
    regards,
    Prabhakar Babu

  • Setting dimension of RTP packet with 'rtp' jmf

    How is it possibile to set the dimension of RTP packet with JMF in the transmitting audio stream with RTP????

    thesti wrote:
    how JMF deal with RTP packet loss? since my application doesn't handle anything due to RTP packet loss, i believe that JMF has a mechanism to deal with it.It "deals" with it by having a blank spot in the rendering where that packet would have gone...

  • Configuring the SSRC of RTP packets.

    Hello.
    Can I configure a Voice Gateway to set the SSRC, of all RTP packets commong from it, to a constant value, that I will define ?
    Thanks.

    check the below link for setting up the parameters in SSRC
    http://www.cisco.com/en/US/products/hw/gatecont/ps3869/products_configuration_guide_chapter09186a0080201239.html

  • How to set Priority of JMS message in the Receiver adapter

    Hi,
    How can I set the priority of message going to MQ in the receiver JMS adapter. I tried to set a value in the <b>JMS message Priroty</b> field. But it is not working.
    In the receiving  queue manager the default priority of the queue which receives data is set to 0.
    Can anyone suggest how to get this done.
    Thanks in Advance
    Abinash

    Hi Ravi,
    If I am not wrong You are referring to article <b>Queues for Prioritized Message</b>. But this is about how to Prioritize message inside XI.
    What I am intresetd in is to set a message priority (for example "2")for the message going to MQ. That is when the message reached the detination queue the priority of this message should be 2 in the queue.
    Thanks
    Abinash

Maybe you are looking for