RTP payload type 8 G711 AlAW RTP

Hi everybody,
I look for a decoder to decode ALAW_RTP. For my project I have to save RTP stream (a-law and not mu-law) to a wave file.
I found this in the forum : http://forum.java.sun.com/thread.jspa?forumID=28&threadID=505153
But they don't put a solution for this problem.
Is anybody solve this problem?
How can i create the DePackatazer for ALAW_RTP?
Please help!
Gassman

I find the solution :
It's a mixe between the link upside, com.ibm.media.codec.alaw.JavaDecoder, com.ibm.media.codec.ulaw.JavaDecoder and http://java.sun.com/products/java-media/jmf/2.1.1/solutions/PcmDepacketizer.java
class AlawRtpDecoder.java
import javax.media.Buffer;
import javax.media.Control;
import javax.media.Format;
import javax.media.format.AudioFormat;
import com.sun.media.controls.SilenceSuppressionAdapter;
* Mu-Law to PCM java decoder
* @Author Shay Ben-David [email protected]
public class AlawRtpDecoder extends com.ibm.media.codec.audio.AudioCodec {
     // Variables
     static private final byte[] lutTableL = new byte[256];
     static private final byte[] lutTableH = new byte[256];
     static String PLUGIN_NAME = "ALAW_RTP DePacketizer";
     static String CUSTOM_PCM = "alaw/rtp";
     static int DEFAULT_RATE = 8000;
     static int DEFAULT_SIZE = 16;
     static int DEFAULT_CHNLS = 1;
     // Methods
     public AlawRtpDecoder() {
          supportedInputFormats = new AudioFormat[] { new AudioFormat(CUSTOM_PCM) };
          // We have to assume some defaults for the output
          // format. Otherwise, the data flow graph cannot
          // be initialized.
          supportedOutputFormats = new AudioFormat[] { new AudioFormat(
                    AudioFormat.LINEAR, DEFAULT_RATE, DEFAULT_SIZE, DEFAULT_CHNLS) };
     protected Format[] getMatchingOutputFormats(Format in) {
          AudioFormat af = (AudioFormat) in;
          supportedOutputFormats = new AudioFormat[] { new AudioFormat(
                    AudioFormat.LINEAR, af.getSampleRate(), 16, af.getChannels(),
                    AudioFormat.LITTLE_ENDIAN, // isBigEndian(),
                    AudioFormat.SIGNED // isSigned());
          return supportedOutputFormats;
     /** Initializes the codec. * */
     public void open() {
          initTables();
     public String getName() {
          return PLUGIN_NAME;
     static public boolean matche(Format input, Format supported[]) {
          for (int i = 0; i < supported.length; i++) {
               if (input.matches(supported))
                    return true;
          return false;
     public Format[] getSupportedOutputFormats(Format input) {
          if (input == null || matche(input, supportedInputFormats)) {
               return supportedOutputFormats;
          return new Format[0];
     public Format setInputFormat(Format format) {
          if (!matche(format, supportedInputFormats))
               return null;
          inputFormat = (AudioFormat) format;
          return format;
     public Format setOutputFormat(Format format) {
          if (!matche(format, supportedOutputFormats))
               return null;
          outputFormat = (AudioFormat) format;
          return format;
     public Format[] getSupportedInputFormats() {
          return supportedInputFormats;
     protected Format getInputFormat() {
          return inputFormat;
     protected Format getOutputFormat() {
          return outputFormat;
     public void close() {
     /** decode the buffer * */
     public int process(Buffer inputBuffer, Buffer outputBuffer) {
          if (!checkInputBuffer(inputBuffer)) {
               return BUFFER_PROCESSED_FAILED;
          if (isEOM(inputBuffer)) {
               propagateEOM(outputBuffer);
               return BUFFER_PROCESSED_OK;
          byte[] inData = (byte[]) inputBuffer.getData();
          byte[] outData = validateByteArraySize(outputBuffer, inData.length * 2);
          int inpLength = inputBuffer.getLength();
          int outLength = 2 * inpLength;
          int inOffset = inputBuffer.getOffset();
          int outOffset = outputBuffer.getOffset();
          for (int i = 0; i < inpLength; i++) {
               int temp = inData[inOffset++] & 0xff;
               outData[outOffset++] = lutTableL[temp];
               outData[outOffset++] = lutTableH[temp];
          updateOutput(outputBuffer, outputFormat, outLength, outputBuffer.getOffset());
          return BUFFER_PROCESSED_OK;
     private void initTables (){
     for (int i=0;i<256;i++) {
     int input = i ^ 0x55;
     int mantissa = (input & 0xf ) << 4;
     int segment = (input & 0x70) >> 4;
     int value = mantissa+8;
     if (segment>=1)
     value+=0x100;
     if (segment>1)
     value <<= (segment - 1);
     if ( (input & 0x80)==0 )
     value = -value;
     lutTableL[i]=(byte)value;
     lutTableH[i]=(byte)(value>>8);
     public java.lang.Object[] getControls() {
          if (controls == null) {
               controls = new Control[1];
               controls[0] = new SilenceSuppressionAdapter(this, false, false);
          return (Object[]) controls;
for use this juste add the following codec in your main program
RTPManager manager = RTPManager.newInstance();
AlawRtpDecoder alawRtpDepktizer = null;
          try
alawRtpDepktizer = new AlawRtpDecoder();
               PlugInManager.addPlugIn(alawRtpDepktizer.getClass().getName(),
                         alawRtpDepktizer.getSupportedInputFormats(),
                         alawRtpDepktizer.getSupportedOutputFormats(null),
                         PlugInManager.CODEC);
               Format AlawRtpFormat =(alawRtpDepktizer.getSupportedInputFormats())[0];
               manager.addFormat(AlawRtpFormat, 8);
}null

Similar Messages

  • Support RTP payload type 8 and 13

    I am trying to use JMF to play back recorded RTP streams containing RTP payload type 8 (ALaw) and 13 (CN). It seems these are not supported by default.
    Did anybody add support to JMF to support these payload types succesfully? Help is greatly appreciated.

    Hello
    i have a same problem.so i was asking if you solved it or not.
    Thanks

  • AVReceive2 gives error:  No format has been registered for RTP Payload type

    Hello,
    I am using the AVReceive2 program (http://java.sun.com/products/java-media/jmf/2.1.1/solutions/AVReceive.html#requirements) as posted to hopefully play back RTP in real time. I have it set to receive a known good RTP stream and I receive the following error:
    No format has been registered for RTP Payload type 8
    I have seen posts for a similar error but it seemed to be in the context of an A-law add on which am I not doing. Am I missing a plug-in or modification to the code?
    thanks in advance,
    Erich

    Hi Erich,
    I have the same problem when I using AVReceive2.java .Could yuo describe your solution in order to solve the issue?
    In order to create the RTP stream I used VLC and is impossible to change the encapsulation method and then the payload type .
    What kind of streaming server are yuo used?
    My e-mail address is [email protected]
    If you can , please write me your proceeding in order to solve the problem.
    Thank you

  • Firefox webrtc rtp payload type

    I'm seeing an issue when placing a webrtc call with firefox when the answer SDP has different payload types than the offer. for example, i get an offer from firefox that has the opus codec with payload type 109. if the answer SDP comes in with the opus codec and payload type 110, audio will not be heard. looking in the WebRTC.log file you will see a whole bunch of "IncomingRTPPacket received invalid payloadtype".
    i believe the correct behavior in this case is for firefox to transmit opus with RTP payload type 110 (ie the remote payload type) and expect to receive opus with payload type 109. it looks like firefox will send with 110 and expect to receive with 110.
    the same scenario with chrome does not have a problem. if i change the SDP answer to match the payload type of the offer, audio can be heard in firefox.
    the same issue can be seen with VP8 video or other codecs with dynamic payload types.
    for reference, the relevant excerpt from rfc3264:
    "In the case of RTP, if a particular codec was referenced with a
    specific payload type number in the offer, that same payload type
    number SHOULD be used for that codec in the answer. "
    in this case the answer SDP is violating the SHOULD in the rfc, but this is sometimes unavoidable when interworking SDP between devices (ie some sort of back-to-back signaling agent).

    That RFC is a proposed standard at the moment [http://datatracker.ietf.org/doc/rfc3264/]
    However, this would be a great bug for tech evangelism, I would encourage you to file a bug with some technical examples. Way to keep the web open!

  • Rtp dynamic payload type 123

    Hello,
    We have a problem about RTP dynamic payload type 123. If you know, please explain when cisco gateways are nagotiation between non-cisco media gateways. When we look at rtp packets, Wireshark tag this packets malformed. Is there a way Can we disable between gateways are nagotiation with dynamic payload type 123.
    i found only below info about rtp dynamic payload type 123 that is used for indicating Cisco CAS information.
    RTP Payload Value
    RTP Payload Definition
    123
    Indicates Cisco CAS information.
    regards,
    Omer

    What is your hardware?
    Do you have already see this doc?
    Enable RTP Signaling on AS5350 and AS5400
    In order to prevent errors caused by RTP packets of payload type “123” on Cisco AS5350 and AS5400 series platforms, RTP signal processing is disabled by default. Under some circumstances, packets of this type can cause an invalid memory address error in AS5350 and AS5400 series platforms, potentially crashing the devices.
    On these models, you can enable RTP signal processing using the voice-fastpath voice-rtp-signalling enable hidden configuration command. However, before you enable RTP signal processing, prepare the platform to handle RTP packets of payload type “123” by enabling T-CCS.
    After you prepare the platform, you can use these commands in order to enable or disable RTP signal processing.
    In order to enable RTP signal processing, use this command:
    Router(config)#voice-fastpath voice-rtp-signalling enable
    In order to disable RTP signal processing, use this command:Router(config)#no voice-fastpath voice-rtp-signalling enable

  • Dynamic rtp payload type 123

    Hello,
    We have a problem about dynamic rtp payload type 123. Wireshark is shown rtp packets which dynamic rtp payload type is 123 malformed.
    why do cisco gateways send dynamic rtp payload type 123 packets to non-cisco gateways? Can we disable dynamic rtp payload type 123 nagotiation?
    please help,
    Thanks
    Omer

    Hello again,
    Signaling Protocol is H323. I can not take debug h323 etc  logs because of the device has too many calls. But you can find below rtp debug that i took before.
    I can not share AS full config because privacy stuff.
    voice service voip
    fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
    h323
      emptycapability
      h225 timeout setup 10
    modem passthrough nse codec g711ulaw
    sip
      bind control source-interface Loopback3
      bind media source-interface Loopback3
    no voice-fastpath enable
    dial-peer voice 1 voip
    description INCOMING Traffic
    service incomingcallcontrol
    voice-class aaa 3
    voice-class codec 101
    incoming called-number B00290..........$
    dtmf-relay rtp-nte h245-signal h245-alphanumeric
    fax-relay ecm disable
    fax rate 14400
    ip qos dscp cs3 signaling
    no vad
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs tx s=10.10.10.1(23690), d=172.20.60.2(12994), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    RTP(54397): fs rx s=10.10.11.1(20928), d=10.10.10.1(23946), pt=123, ts=1303D47D, ssrc=20351C0, marker=0
    Regards

  • Can someone help me with "no format has been reg. for RTP Payload type 10"

    I am trying to send audio from Mac to PC. Mac uses quicktime for java and PC uses jmf. I looked at the Jmf supported formats list and on the SDP file for mac i used payload types like :
    m=audio 2656 RTP/AVP 0
    c=IN IP4 239.60.60.60
    . I also tried other formats too but I always get "no format has been registered for rtp payload type 10". on the pc side. Anyone can help me out? thanks!

    Sprint's unlimited wireless service is actually ten bucks more a month than my Verizon service, according to Sprint's Web site.
    And Verizon's customer support is the best in the industry.
    I have never experienced a "throttling" with my Verizon account. And I have never experienced any limited bandwidth usage problem.

  • Ignore new Payload Type in RTPManager

    Hi,
    Im working on a project who receives sound from a cell phone. The cell phone send Audio trough the SIP Server in G711 ALAW, with a Payload of 8.
    Following this tutorial:
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/CustomPayload.html]
    I achieve to register the new type of payload, and decode the audio without any problem.
    The problem comes when the SIP Server sends (from time to time) a new packet, with a Payload 13 (Comfort Noise). I want to just ignore this packet, but the RTPManager send me a message saying that I dont have the Payload 13 registered, and STOP the RTPManager.
    I could register this new type of Payload, but if I dont know just how to ignore it!.
    Any help? Thanks!
    PS: Im thinking about creating my own RTP implementation, do you think it worths?
    Edited by: AntonioMG on May 30, 2010 2:43 AM

    AntonioMG wrote:
    The problem comes when the SIP Server sends (from time to time) a new packet, with a Payload 13 (Comfort Noise). I want to just ignore this packet, but the RTPManager send me a message saying that I dont have the Payload 13 registered, and STOP the RTPManager.Is there a "RemotePayloadChangeEvent" generated by your RTPManager when the payload-8 packet arrives?
    I could register this new type of Payload, but if I dont know just how to ignore it!.You could try just
    rtpManager.addFormat(null, 8);or
    Format myFormat = new Format("none");
    rtpManager.addFormat(myFormat, 8);And just ignore whatever events occur when those packets are recieved...
    PS: Im thinking about creating my own RTP implementation, do you think it worths?No, I wouldn't say it's worth it at all...

  • Payload type of wav files encoded with gms codec

    Hello everybody,
    I have an application which receives and plays alaw formated wav files using JMF(with the help of some additional libraries) . I want to use lower bandwidth for my application. A quick google search indicated that i can do this by using gsm format.
    I have 2 questions:
    1-) what are the differences between .gsm files and .wav files which are encoded with gsm codecs? Which one's quality is better? which one's compression ratio is better?
    2-) which payload type should i use for wav files which are encoded with gsm codecs?
    In [Rtp Payload list|http://www.iana.org/assignments/rtp-parameters] page, there is a gsm entry whose payload is 3. I suppose that is for files with gsm extension. I tried it but it didn't work with my wav sample (as u can guess it was encoded with gsm 6.10 codec)
    Any suggestion is appreciated. If you have a comment about the main problem (which is using lower bandwidth for sending audio data) i would also like to hear it
    Thanks in advance
    btw i also tried this [gsm sample|http://www.nch.com.au/acm/sample.gsm] with payload 3.At first it worked but then strangely it played just static. In Sun's page it says gsm format is supported. I played both ulaw and alaw succesfully so i wonder what i am doing wrong. Do we need to tell the player that it is going to receive data in gsm format? I didnt do such a thing for u-law and a-law formats...
    Edited by: Bugra.Hasbek on Nov 10, 2008 1:18 AM

    Bugra.Hasbek wrote:
    Hello everybody,
    I have an application which receives and plays alaw formated wav files using JMF(with the help of some additional libraries) . I want to use lower bandwidth for my application. A quick google search indicated that i can do this by using gsm format.
    I have 2 questions:
    1-) what are the differences between .gsm files and .wav files which are encoded with gsm codecs? Which one's quality is better? which one's compression ratio is better?I would imagine they are the same...
    2-) which payload type should i use for wav files which are encoded with gsm codecs?I would imagine 3...
    In [Rtp Payload list|http://www.iana.org/assignments/rtp-parameters] page, there is a gsm entry whose payload is 3. I suppose that is for files with gsm extension. I tried it but it didn't work with my wav sample (as u can guess it was encoded with gsm 6.10 codec)
    Any suggestion is appreciated. If you have a comment about the main problem (which is using lower bandwidth for sending audio data) i would also like to hear itMy suggestion would be not to worry about so much stuff. JMF does all of this for you automaticlly.
    On the sender side, make your processor take in whatever kind of supported file you want. Set the processor to output your GSM mono, and then you can just use a Player to play it on the other side. It's really not very different than the examples...
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVTransmit.html]
    When you're programming the tracks, and you're calling "setFormat" on them, just set their format to be gsm.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVReceive.html] should be able to play this out of the box...

  • AVReceive2 Sample - Payload Type 13 (Comfort Noise)

    I'm getting an error from an RTP Stream changing to payload type 13...
    Is there any way around this problem, I want to record the stream...
    Are there any other java programs that can deal with this payload type or other samples...
    I need something lightweight...
    Thanks,
    Ted

    Is there any way around this problem, I want to record the stream...Yeah, go in and implement some code to handle the LocalPayloadChangeEvent when it's received by the SendStreamListener...
    Are there any other java programs that can deal with this payload type or other samples...No sample code I've seen online handles that event, but it shouldn't be difficult to handle. Seems like the best case scenerio would probably be stopping and restarting your Processor/Player, and the worst-case scenario would be unrealizing and rerealizing/starting your Processor/Player...

  • Add dynamic Payload Type to JMF

    Hi all
    I am trying to write a Java application to play streaming video (RTP with dynamic payload of 96) from UCT IPTV server, http://uctimsclient.berlios.de/uctiptv_howto.html
    (My application could receive the streaming RTP but cannot play it)
    I think that I need to register 2 formats to JMF:
    1) MPA, payload type 96
    2) H263_1998, payload type 96
    Below is the information when I run the server.
    ffenc_h263p Caps:
    video/x-raw-yuv, format=(fourcc)I420, width=(int)352, height=(int)240, pixel-aspect-ratio=(fraction)8/9, framerate=(fraction)30000/1001
    Video Caps:
    application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H263-1998, payload=(int)96, ssrc=(guint)2779507444, clock-base=(guint)599556584, seqnum-base=(guint)5482
    Audio Caps:
    application/x-rtp, media=(string)audio, clock-rate=(int)90000, encoding-name=(string)MPA, payload=(int)96, ssrc=(guint)3836987939, clock-base=(guint)2707891566, seqnum-base=(guint)52755
    I don't know much about codecs. Could any one please help me out with this problem.
    Thanks
    gladiator_vn

    Here is one of the coolest things about LV, and one of its major advantages over languages like VB - it has automatic memory management and it compiles whenever you make a change. This allows you to be very free in the way you handle data and change your code. In this case, you should note the small gray dot that appears when you wire the dynamic data into the Array of Waveforms input. This gray dot means that LV coerces the source data type (DDT, in this case) to the target data type (Array of waveforms). If it wouldn't match, you would get a broken wire, the VI couldn't run, and if you hover over the wire or press the broken run button you would get an exact description of the error. Cool, eh?
    This can also be seen in other things. For example, you can change an array's data type or number of dimensions by simply doing it. This will automatically be reflected anywhere the array is called in the program, and if anything won't match, the VI will be broken. If you change the # of dimensions of an array, any array function which that array is wired to will adapt. This allows you to be very safe in the way you write code, because you have LV watching all that annoying stuff for you. You don't have to worry about misspelling a variable here (for the most part).
    One important point about coercion - it does take processor power. This will usually only be evident in large arrays or loops, but it is an important point. Another thing is that coercing numeric types can cause you to lose data - coercing a DBL to a U16, for example, will cause you to lose all the fractional data.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • JMF Payload type 33

    Hey guys, i m trying to play RTP stream video but everytime i play, it give me the following error.
    No format has been registered for RTP Payload type 33
    Does anyone has any idea about this?? I am using VLC media player to stream the output. Please help me how to get rid of this error.
    Maybe a codec or a plugin problem ?

    Hi,
    Payload Type 33 is MP2T, seems like the receiving side don't know what you are sending, which means the receiving side is not supported.
    Anyway, for more information on the payload type, please refer to RFC3551.
    Best Regards
    Ferdinand Ng

  • Payload type

    This is sp pathetic to ask but Oracle docs on AQ are even more pathetic to go through, so please help me on this.
    I'm executing a JMS program to create a Queue table and Queue, how do i specify a CLOB payload type, such as
    SYS.AQ$_JMS_TEXT_MESSAGE stands for the standard TextMessage type supported in JMS, can someone please please help me.

    I pulled up the following example from the 9i doc.
    chapters 12 - 16 have quite a lot of examples on JMS.
    QueueSession q_sess = null;
    AQQueueTable q_table = null;
    AQQueueTableProperty qt_prop = null;
    qt_prop = new AQQueueTableProperty("SYS.AQ$_JMS_BYTES_MESSAGE");
    qt_prop.setMultiConsumer(true);
    qt_prop.setCompatible("8.1");
    q_table = ((AQjmsSession)q_sess).createQueueTable("boluser", "bol_ship_queue_table", qt_prop);
    null

  • How to change DTMF RFC2833 payload type to 101 or 127

    Hi,
    We are using Flash Media Gateway 4.5, and we would like to change the DTMF payload type from 127 to 101 for RFC2833.
    as of now, I couldn't find any configuration settings from the documents. Looks like this is a discontinued product but any help is much appreciated.
    Thanks,
    Uttran I

    Hi Thomas,
    according to your first question: Why does this matter to you? As I already wrote in another thread:
    According to the XML namespace declaration the prefixes are just internal aliases with no external meaning.
    E.g. <ns1:abc xmlns:ns1="http://www.sap.com" /> and
    <iLikeLongPrefixes:abc xmlns:iLikeLongPrefixes ="http://www.sap.com" /> are totally equivalent according to the XML namespace specification.
    Therefore, everyone (human or machine) who produces a program can choose the prefixes as he wants. Moreover, he may change the rules for creating these prefixes without being incompatible.
    Consequently, the namespace prefixes should not be important for you.
    Greetings
    Stephan

  • Accessing object payload type attributes by index?

    Plz help
    Using object type in queues enforce some limitations to altering object type. You can use only ALTER TYPE and use alteration that only "expand" properties. It'is possible to change column type from VARCHAR2(10) to VARCHAR2(20) but not vice versa. Also it's impossible to drop object attribute or re-create object type. While storing object source in svn it's uncomfortable to view object source as sequence of ALTER TYPE commands. So, it seems that solution can be usage XMLTYPE as object payload type. But this raise another problem.
    With object type I can use dequeue with BROWSE option that allows to cut by object attribute value. But how to browse by specific attribute value in case of XMLTYPE as object payload type?
    The second question is how to index specific attribute both in object type and in XMLTYPE? I will have a large queue and need quick lookup by specific object attributes.
    The only possibility I see is to index CORR_ID column. It will work good for one attribute. But what to do if I will need index several attributes? Compose them as string? It will lead to data denormalization...

    Thanx for your answer
    The goal was to create a queues with possibility to store processed data for some period of time for tracking purposes. RETENTION_TIME settings allows to do that. Moreover, it can be changed dynamically. This is exactly what our customer requires. Queues with configurable history keeping setting.
    We already have self realized queues based on usual heap tables. In these tables we don't work with object type. As result we can directly index any attribute (column) and have quick access to it. Requirements to make configurable how long processed data saved are pushes to partitioned tables with administrative scripts that will drop old partitions by end user request. This solution seemed to me much more complex in realization then simple change of the RETENTION_TIME parameter via DBMS_AQADM. But after that I found this issue with quick access to attributes...
    And yes, I'm aware about XQuery for XML. But without any index on column it will lead to full scan with additional XQuery expression calculation for each value.

Maybe you are looking for

  • How to track changes in j1id tranaction

    hi all,        I want to make a report by  tracking the changes made in the transaction <b>j1id</b> for certain period.     I am  entering transaction J1ID TRANSACTION  and selecting <b>chapter id</b> radio button and making some changes.   my questi

  • F110-Withholding Tax Not Calculating

    Dear Gurus, For ceratin vendors in F110 system is not paying and in payment run log a msg is generated as--Internal Error:Doc Balance not zero.In one vendor there are 2 open items system is calculating WHT for one invoice correctly and showing in pay

  • Moderator please help me regarding my BT vision ac...

    Hi, i am trying to order bt sport and am continously being told online that i do not have the correct package in order to recieve the channel, even though i have been a full paying customer of phone/broadband/vision for a long time! all i want to do

  • Displaying Report Server error in forms

    All, Is there a way in forms to display the error message from the reports server instead of the generic non informative message "FRM-41214 Unable to Run Report." thanks Jim

  • How can I use iPhone4 like 3G modem with 3G-router?

    I have TP-Link router, model TL MR3220. Can I use iPhone4 in hotspot model like 3G modem? How to connected it? Thank you!