Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2008

    Unable to play RTP Payload(Actual Voice Data coming from remote client) in WAV format

    Hi all,

    I am working on a project MobileSIPClient. The aim of the project
    is to form a SIP Client which performs;

    - registration to a proxy server.
    - deregistration
    - adding a contact
    - deleting a contact
    - instant messaging
    - getting the presence information of the contacts
    - editing account settings
    - making a call. (Real-Time)

    I have already achieved first 7 steps. They work well. But I have some concerns about the last step - making a call in REAL-TIME.

    I am using SIP protocol for signalling. I am developing this project in J2ME by using Eclipse IDE and Sun Wireless Toolkit 2.5.2. In the step "Making a Call" especially in RTP step, I have achieved:
    - Opening Connection for Receiving
    - Receiving Packets
    - RTP Packet Extraction

    My Questions:

    - As far as I know, J2ME MMAPI has already PCM codec support. But this is for capturing audio and for playing the audio coming from the remote client? Is this right?

    Any need to implement a codec code to play RTP Packets coming from remote client?

    - While trying to play RTP Payload, it throws an exception.

    ByteArrayInputStream in = new ByteArrayInputStream(RTPSourceStream.getInstance().getRTPPayload());

    this.rtp_play = Manager.createPlayer(in, "audio/x-wav");
    this.rtp_play.realize(); // Failing at this point

    The exception is:

    javax.microedition.media.MediaException: Failed to realize Player: Malformed wave media: expected 'RIFF'
    at com.sun.mmedia.WavPlayer.doRealize(+341)
    at com.sun.mmedia.BasicPlayer.realize(+84)
    at RTPConnection.run(+130)

    As I understood, we cannot play the raw RTP Payload directly. We need to convert it to something to WAV format. Is this right?

    Any comments would be appreciated.


  2. #2
    Registered User
    Join Date
    Jun 2008

    Re: Unable to play RTP Payload(Actual Voice Data coming from remote client) in WAV fo

    im wrkin on a project similar to ur last part.....how did u use rtp in j2me...are thr ne api's supported for this....
    im actually using udp packets onle for this....later this'll need refinement....
    neways the time i hav is very less....so cant look for nethin else....
    have u developed the voice recorder n player???
    if ure willing to tell me how uve implemented rtp i.e sending n receivig rtp packets...creatin rtp sessions and headers...checking the time and sliding window protocol.....etc..maybe we can wrk on it together.....
    as of now im using the udp packets onle.

Similar Threads

  1. Unable to play RTP packets
    By ramyakk in forum VoIP
    Replies: 11
    Last Post: 2010-06-04, 15:00
  2. Recording in Amr Format
    By losym in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2009-03-26, 06:41
  3. Replies: 0
    Last Post: 2008-06-18, 20:30
  4. Client program in .exe unable to send data
    By k.sandeep in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2006-04-30, 15:29
  5. Recording voice data into AMR format
    By windbreaze in forum Symbian
    Replies: 3
    Last Post: 2004-06-16, 04:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts