Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User hbfornies's Avatar
    Join Date
    Aug 2003
    Posts
    28
    Hello,

    I'm developing an java application for a Nokia 7650 that needs to use SIP over UDP.

    In an emulator on the PC the communication works fine.

    I'm afraid that there will be some problems when I port the application to the real device.

    Can I use SIP over UDP communication on a real Nokia 7650?

    thanks in advance

    Best regards

    Hector

  2. #2
    Registered User hbfornies's Avatar
    Join Date
    Aug 2003
    Posts
    28
    I add some code example of my application. SIP uses Datagram protocol, which is supported in CLDC.

    // Create a new datagram socket.
    DatagramConnection dc =
    (DatagramConnection)Connector.open("datagram://:5060");

    System.out.println("SYSTEM, datagram server listener:" + "datagram://:5060");

    while (! sipStack.toExit) {
    Datagram datagram =
    dc.newDatagram(MAX_DATAGRAM_SIZE);

    System.out.println("SYSTEM, listening!");
    dc.receive(datagram);
    System.out.println("SYSTEM, packet revceived!");

    // Create asynchronous message handler
    // for this message
    UDPMessageChannel udpMessageChannel =
    new UDPMessageChannel
    (datagram,sipStack);
    }
    } catch (Exception ex) {
    ex.printStackTrace();
    }

  3. #3
    Registered User ggould's Avatar
    Join Date
    Jul 2003
    Posts
    32
    CLDC "supports" but does not require UDP, so not all valid CLDC devices will provide datagrams. Nokia generally provides only the absolute minimum required by the specification: a fairly dodgy http implementation and nothing more.

    As far as I know, no Nokia phones provide datagram connections from Java. If you want datagram support, you should probably look at other handset manufacturers, or else at writing your application in C++ rather than Java.
    --G

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved