×

Discussion Board

Results 1 to 10 of 10

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Jun 2006
    Location
    Pakistan
    Posts
    50

    how to implement VOIP using sip in j2me

    hi, i have create sip session. now i want to use it for VOIP using j2m. how can i do this. i mean which APIs are helpful in developing it. i hav following questions

    1. how can i get sound from mic to use in app and in which format
    2. is it ok to buffer sound n thn transfer it over network?
    3. voice bufer direclty goes to other client mobile or processed at sipserver before reaching the clinet mobile.
    4. audio streaming is possible or not for S60 3rd edition.

    if u hav some docs and guidlines other thn these, plz tell me.

    kind regards,
    qasitouch.

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: how to implement VOIP using sip in j2me

    Hi,

    1) You can use Mobile Media APi for that
    2) I think the RecordControl can do it for you: capture the input from the microphone and send it over an OutputStream.
    3) After you set up the session, you get Input/Output streams from mobile to mobile, but the traffic still goes through the SIP server for it to route the packages.
    4) I don't think this has anything to do with audio streaming. It would be your own implementation. Audio streaming is supported via RTSP, but this requires a server setup and as I say, is a different scenario.

    Final note: I don't think you get a good performance with a VoIP application written in J2ME, as such app requires a great amount of performance and low-level coding, so you should try to do it in C++ instead.

    Daniel

  3. #3
    Regular Contributor
    Join Date
    Jun 2006
    Location
    Pakistan
    Posts
    50

    i m geting exception in Manager.creatPlayer()

    here is the code

    try {
    player = Manager.createPlayer(
    "capture://audio"); /////////exception generates here
    player.realize ();
    recordcontrol =
    (RecordControl) player.getControl("RecordControl");
    output = new ByteArrayOutputStream ();
    recordcontrol.setRecordStream(output);

    } catch (Exception e) {
    e.printStackTrace ();
    }
    }

    exception:
    javax.microedition.media.MediaException: Cannot create a DataSource for: capture://audio

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: how to implement VOIP using sip in j2me

    Try it on the Prototype SDK, it should work. Search other threads for advice on Mobile Media API, this has been discussed quite a few times here.

    Also, check the "supports.audio.capture" System property.

    Daniel

  5. #5
    Regular Contributor
    Join Date
    Jun 2006
    Location
    Pakistan
    Posts
    50

    Re: how to implement VOIP using sip in j2me

    its is working on mobile handset. so no problem,,but on emulaotr its shows exception. now tell me how can i send this sound to other mobile handset in a continous flow for voip appllication.

  6. #6
    Registered User
    Join Date
    Aug 2006
    Posts
    16

    Red face Re: how to implement VOIP using sip in j2me

    Hi,

    I am completely new to Symbian and j2me...

    Since I am interested in the same info as "qasitouch" I wil post my question here:
    1)As I understood from post here, microphone audio can by get by
    player = Manager.createPlayer(
    "capture://audio"); /////////exception generates here
    ....
    Is this true?

    2) how to play stream got from other voip client (since Mobile Media Api supports onyl RTSP & file streams - or am I wrong here)?

    "qasitouch": have you already solved "how can i send this sound to other mobile handset in a continous flow" and how?

    Thanks

Similar Threads

  1. J2ME + SIP = need for a public IP
    By oe3vsfm4 in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2009-01-03, 06:41
  2. SIP: BYE/ 481 (No Dialog Found)!!!!!!!!!!
    By Mini Pillai in forum Symbian Networking & Messaging (Closed)
    Replies: 13
    Last Post: 2007-02-09, 04:52
  3. [Need Help] SIP API for J2ME (JSR 180) and Nokia 7610?
    By wgarnett in forum Mobile Java General
    Replies: 1
    Last Post: 2005-09-17, 05:55
  4. Accessing SIP from J2ME
    By balagopalks in forum Mobile Java General
    Replies: 0
    Last Post: 2005-05-20, 07:32
  5. J2ME SIP address configuration problem
    By nprabhat in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2004-10-27, 17:08

Posting Permissions

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