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

Similar Messages

  • Configure the dynamic vlan using packet tracer

    How can i configure the dynamic vlan using packet tracer?
    Posted by WebUser Amienudin Alam Syah Husein from Cisco Support Community App

    I guess this forum platform has been misconfigured, questions coming from the mysterious Web User on various R&S topics keep ending up here.
    Let's flood their forum with some tricky CC related questions, in return!
    Sent from Cisco Technical Support iPad App

  • How to get the SSRC in RTP session

    Hi
    i am using RTPManager to send voice between two machine , how to get the SSRC of the receiver end , and how to get SSRC of the receiving end.
    with regards
    Rekha kailas

    To get SSRC of received stream: receiveStream.getSSRC();
    To get SSRC of send stream: sendStream.getSSRC();

  • Injecting DTMF event in the midst of RTP media streaming?

    Hi all, I am attempting to implement a mechanism that allows me to inject DTMF RTP events in an RTP media stream. This is useful in telephony applications where the users are prompted to enter digits while being served by automated voice services such as answerinng services or tele-bankings etc. So basically my approach is to extend Sun's RTP packetizer and intercept outgoing packets when necessary and replace them with the appropriate DTMF RTP (RFC 2833) packets. Sounds simple enough. So I derived my custom packetizer from com.sun.media.codec.audio.ulaw.Packetizer, and over-ridden method process(). Normally my packetizer's method process() simply delegates the functionality to its parent class's process() method. When a DTMF digit is required I'd take the outputbuffer generated by the parent's process() and modify its header and payload to turn it into a DTMF RTP packet. The problem is that the class RTPHeader is so limited, there is no way to set the payload type, sequence number, ... And the documentation is precious few and far in between. If someone has solved this issue, or if you have a reference to some documentation that describes the inner working of JMF's codec chaining, I would appreciate some pointers. What I need to know is:
    - What JMF does with the Buffer objects between stages (from one codec to the next)?
    - The data portion of Buffer is an Object of arbitray class, what on earth does JMF do with that?
    - How does JMF take a Buffer object and turn it into a UDP packet?
    - How do I go about creating an RTP header and fill it with the information (payload type, timestamp, sequence number, ...) that I want?
    Thanks in advance,

    I don't know what the heck RTPHeader represents but it sure doesn't seem to conform to RFC1889. And also, it seems the UDP RTP packets are formed somewhere after the packetizer and before the RTP connector, someone oughta jot all this down in a book. So anyway, using my own RTPConnector implementation I have some control over the outgoing/incoming RTP packets, to access and manipulate the real RTP header (not RTPHeader), I devised a new class that takes the RTP packet buffer and provides an API to examine and manipulate some RTP info directly on the buffer without doing any unecessary data copy (you guys can extend it to do more as per your requirement):
    package com.mycompany.media;
    import javax.media.rtp.RTPConnector;
    import java.net.DatagramSocket;
    import java.net.InetAddress;
    import java.io.IOException;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.SourceTransferHandler;
    import java.net.DatagramPacket;
    import javax.media.protocol.PushSourceStream;
    import javax.media.rtp.OutputDataStream;
    import java.net.SocketException;
    import mitel.utilities.MiQueue;
    import java.nio.ByteBuffer;
    import java.util.LinkedList;
    class MiRtpHeader
         byte[] data;
         int myoffset;
         public MiRtpHeader(byte[] buf, int offset, int len) throws ArrayIndexOutOfBoundsException
              if(len < 12)
                   throw new ArrayIndexOutOfBoundsException("Buffer not large enough to contain a basic RTP header");
              data = buf;
              myoffset = offset;
         public boolean getExtension()
              return (0 != (data[myoffset] & 0x10));
         public void setExtension(boolean state)
              if(state)
                   data[myoffset] = (byte)(data[myoffset] | 0x10);
              else
                   data[myoffset] = (byte)(data[myoffset] & 0xef);
         public boolean getMarker()
              return (0 != (data[myoffset + 1] & 0x80));
         public void setMarker(boolean state)
              if(state)
                   data[myoffset + 1] = (byte)(data[myoffset + 1] | 0x80);
              else
                   data[myoffset + 1] = (byte)(data[myoffset + 1] & 0x7f);
         public int getTs()
              ByteBuffer tsBuf = ByteBuffer.wrap(data, myoffset + 4, 4);
              return tsBuf.getInt();
         public void setTs(int ts)
              ByteBuffer tsBuf = ByteBuffer.wrap(data, myoffset + 4, 4);
              tsBuf.putInt(ts);
         public int getPayloadType()
              ByteBuffer ptBuf = ByteBuffer.wrap(data, myoffset + 1, 1);
              return ptBuf.get();
    }

  • 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...

  • RVS4000 mangles RTP Packets

    I've come across a strange issue with a Cisco RVS4000 router, firmware      V2.0.2.7
    First of all, ALG is turned off in the router!  The RTP port range 10001-10999 is forwarded to the PBX internal IP.
    A PBX sitting behind NAT with ports forwarded establishes a given  incoming call with a SIP trunk provider.  Packet sniffs have shown the  PBX and Trunk agree on given IP's and port numbers in Session  Description Protocol for the conversation.  The PBX behaves as you would  expect, sending the audio from the agreed ports: PBX  PrivateIP/Port(10202) --> Trunk PublicIP/Port(53544).
    The strangeness sets in when the packets come out of the WAN side of  the router.  The call setup is identical however, the first 10 RTP  packets are changed to appear to come from a different port: PBX  PublicIP/Port(51062) --> Trunk PublicIP/Port(53544).
    The remaining RTP packets after the first 10 come from the correct  port: PBX PublicIP/Port(10202) --> Trunk PublicIP/Port(53544).
    The SIP trunk provider sends audio in the reverse direction: Trunk PublicIP/Port(53544) --> PBX  PublicIP/Port(51062)
    However, the incoming audio works and arrives at the PBX on port 10202 - therefore the router is obviously applying NAT to those packets.
    The result is that the SIP trunk provider ignore all RTP packets  after the first 10 (and thus one-way audio from the trunk to the PBX) because their system accepted the first 10 from the  "wrong" port and therefore ignores the remaining packets coming from the  "right" port.
    To make things even stranger, the router behaves properly on  subsequent calls.  The issue usually only appears after a long period  without incoming calls (> 30 min.)
    Business telephones in Calgary
    www.atcomsystems.ca

    I wish to put the time of my computer...or have you any other idea to generate timestamp?

  • How to send RTP packet through SIP Dialog

    Hello there !
    I work on a Java softphone which use JMF and Jain-SIP. I know JMF is "old" but I think it would be simple to capture and transmit RTP audio. So, my SIP dialog is working, I can send text messages but now, I would like to send RTP with this SIP session. I know I have to send SDP messages for codec convenience but then, what is the MediaLocator for RTP packet ? Only SIP User Agent IP or something else ?
    I also accept all ressources that can help me achieve my work :)

    I have no idea how SIP works, but, RTP packets go to an IP:PORT... theoretically, in the SIP phonecall setup, I'd imagine you'd have to be given the address to send RTP packets to the remote phone. Or perhaps the port is already well-defined by the SIP standard.
    Either way, you should have a way of knowing / finding out which PORT to send to for your SIP call, either from the call setup or the SIP standard itself.

  • Cretae a RTP packet without using JMF

    I have to create a RTP packet of existing audio/video file using all the parameters of RTP Packet
    I dont have to use JMF.
    Please suggest me the soluion and if possible provide me the codes.
    Thanks alot.

    I have to create a RTP packet of existing audio/video file using all the parameters of RTP Packet
    I dont have to use JMF.
    Please suggest me the soluion and if possible provide me the codes.
    Thanks alot.

  • RTP Packet Data

    Hi again,
    As anyone who's been following my posts can tell, I've been working on an RTP application. I've got a Server-Client program set up (mainly it's just the AVTransmit and AVReceive stuff on this website) and I'm looking for a bit of code that will tell the clien that RTP packets are arriving
    eg
    while ( RTPArriving () == true ) System.out.println ( "RTP Arriving" );
    Does any such code exist?
    Thanks ;-)

    This is copied directly from AVReceive2.java, which
    you claim to base your app on...
    if (evt instanceof RemotePayloadChangeEvent) { ... }
    else if (evt instanceof NewReceiveStreamEvent) { ...
    else if (evt instanceof StreamMappedEvent) { ... }
    else if (evt instanceof ByeEvent) { ... }Might this be what you where searching, but not
    lookin, for? Did you look at all?Yes, I looked through the code. The code you printed above tells you that, yes a Stream event of some sort or a "bye" event has occured. It doesn't tell you how many RTP packets are arrving. As far as I'm aware it just tells you that a Stream is open.
    Is it actually possible to inspect or count the number of RTP packets arriving at all?

  • 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...

  • Traffic generator where we can configure the packets

    Hi
    Can you please let me know any traffic genertor which generates TCP UDP and IP packets and also where we can configure the Packet before generating the packets..For example I want to cnfigure the content of the packet..Other requirements are I want to give Source IP address and Source port Number along with Destination IP address and Destination port number..
    Regards,
    Sandhya

    Hi Sandhya,
    as a starter you might try the tool 'iperf' (freely available for a number of OSs).
    http://dast.nlanr.net/Projects/Iperf/
    hth
    Stefan

  • 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?

  • Having the ip address of rtp packet

    Hello
    How could 'I have thee ip address of a receive rtp packet?!

    I think the best thing is accept new connections on a standard Socket (or ServerSocket) object and extract the remote address.
    At the same time, You should apply a certain type of authentication to Your new user...

  • How to prioritize RTP Packets for VOIP Audio on RV180

    Hi There,
    I'm a relative newbie to more advanced networking but have managed to get our small office IP PBX running over a SIP Trunk. The only real problem we are having is choppy outgoing audio when there is other heavy outgoing traffic on the network.
    My understanding is that I need to set some QoS parameters, which I have played with but it didn't seem to help much. I mostly dealt with allocating bandwidth. I now think I need to somehow prioritize the outgoing RTP packets from our PBX (which runs on a PC on our LAN) to help avoid the choppy audio. My research shows this can maybe be done with something called DSCP 46 and my router does support that -- I'm just a little confused on how to exactly set the configuration.
    Our router is a Cisco rv180w. I'm thinking it should be pretty straightforward, but any guidance would be appreciated (and feel free to let me know if I'm barking up the entirely wrong tree, too!)
    Thanks so much.

    OK, thank you. So specifically -- if I want to prioritize all of the RTP traffic flowing out through the router, can I do it ALL with just COS and not set any QoS, profile binding etc?
    So far I have enabled the COS Queue, left the default settings (where COS Priorities 6 and 7 are set to highest), then on the COS to DSCP page I have entered the value 46 into the Priority 6 and 7 boxes. All the rest I left at 0.
    Unfortunately this didn't seem to solve the issue. The way I have been testing is to call our PBX from an outside line, then put myself on hold so I can hear the hold music (effectively an audio stream from the PBX server). Then I listen carefully while I run a bandwidth test from speedtest.net.
    During the download test the audio (music on hold) is pretty smooth. But during the upload test (lots of data flowing outbound) the audio gets very choppy. The COS settings I've tried don't seem to improve or even change that
    I assume I'm doing something wrong and/or need to involve QoS somehow?
    - Keith

  • Wireshark capture rtp packets on Cisco CUBE.

    Hello all,
    We have this call flow and we are having intermittent DTMF issue
    CUCM 10.5--->CUBE(10.1.1.10--->AVAYA(10.1.1.11)--->PSTN
    I am trying to capture RTP packets between CUBE and AVAYA, How can we capture RTP packets between(10.1.1.10 and 10.1.1.11)??
    I followed below steps and I can see the traffic only from AVAYA to CUBE and that too only SIP and TCP not RTP.
    Router(config)# access-list 140 permit ip host 32.55.55.32 any
    Router(config)# access-list 140 permit ip any host 32.55.55.32
    This ACL will capture all traffic to and from this IP address.
    Next we need to enable the Cisco packet monitoring service:
    Router# monitor capture buffer holdpackets
    Now we can filter the monitored traffic by filtering it through our access-list:
    Router# monitor capture buffer holdpackets filter access-list 140
    Now we need to name our particular packet capture. I have called mine "testcap"
    Router# monitor capture point ip cef testcap all both
    Router# monitor capture point associate testcap holdpackets
    Now we can start our capture!
    Router# monitor capture point start testcap
    Once you think you have acquired enough packets, to stop the capture, type:
    Router# monitor capture point stop testcap
    Now you can export your data to your tftp server by typing in the following command. You can then open the .pcap file in Wireshark for viewing
    Router# monitor capture buffer holdpackets export tftp://10.0.0.55/testcap.pcap
    Once uploaded you can clear your capture buffer by typing the following:
    Router# no monitor capture buffer holdpackets
    Any help is much appreciated
    Thanks!

    But when i configure the destination as USB0 my pendrive, it fails.
    Could be a bug but I wouldn't recommend configuring the destination as your USB drive because no one has the same luxury as you to have the USB sit there all the time.
    Store to the flash and transfer to USB is probably the best solution.

Maybe you are looking for