×

Discussion Board

Results 1 to 10 of 10
  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

  7. #7
    Registered User
    Join Date
    Aug 2006
    Posts
    2

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

    Any luck on the above mentioned part?? In the API implementation notes I have read that "MMAPI doesnot support streaming". Is there a work around ? has any body succeeded ?

    Please let me know.

    Thanks

  8. #8
    Registered User
    Join Date
    Aug 2006
    Posts
    2

    Re: how to implement VOIP using sip in j2me

    this post is in the same context as the previous one...
    As dcrocha mentioned :

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

    How should I translate it if all I want is a point-to-point media connection for audio/voice?

    i.e. if only the Control Plane is handled by the server(CSCF) how should/would the clients handle the Media Plane for the voice packets?

    Thanks

  9. #9
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: how to implement VOIP using sip in j2me

    Hi Daniel.

    I agree with what u say..and i want to create a SIP agent to make VoIp calls using Symbian c++, can u tell me what apis/libraries can i use to do the same.
    As for making/recieving GSM calls CTelephony class has the functions..is there any class(public/non-public) that i can use to implement these functionalities.

    Any pointers would be wonderful

    Cheers

  10. #10
    Registered User
    Join Date
    Mar 2008
    Posts
    49

    Talking Re: how to implement VOIP using sip in j2me

    Hi there, the post is a bit old, but for whoever is interested now it's available a complete J2ME api for SIP/VOIP development:

    http://developers.sun.com/mobility/apis/articles/sip/

    http://www.jcp.org/en/jsr/detail?id=180

    You can finde complete examples and technical articles
    Last edited by mapick; 2009-11-21 at 11:06. Reason: Added another link

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
  •