×

Discussion Board

Results 1 to 8 of 8

Thread: SIP Problems

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    12

    SIP Problems

    I am working with J2ME SDK 3.0 and 4.0 beta. I try to implements a application which works on SIP and uses some functions.

    I have 2 problems, where I do not know why they occure.

    First if I what to address the SIP server with his hostname the following function will halt invite:
    Code:
    sc = (SipClientConnection)
     Connector.open("sip:sippy.user@host.com:5060");
    If I want to address a other Sip User with his Host name then I get a IllegalArgumentException with follwoing message:
    Code:
    sc = (SipClientConnection)
     Connector.open("sip:recipient@host.com");
    Invalid host address or name 'host.com'
    If I use the IP address it works!
    Other SIP Clients work fine, so I do not think there is a problem in name resolving!

    My second problem is that the stack automatically adds a additional contactHeader (in a Dialog) with the user John.Simley@[localhost]:[localport]. In fact I want to develop my app for more than only John.Simley and Xten cancles the Dialog if multiple contacts are in the SIP message!
    The corresponding Dialog is then not available anymore. I do not know if there is a coherence between the additional contact and the missing dialog.

    Has anybody experience with these problems ?
    THX for help

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: SIP Problems

    where you really trying to connect to host.com in sip ???????
    if you want to connect a server via its domain name and it doesn't work, check your dns

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    12

    Re: SIP Problems

    Quote Originally Posted by njzk2
    where you really trying to connect to host.com in sip ???????
    if you want to connect a server via its domain name and it doesn't work, check your dns
    host.com is the generic domain of sip address like sip:bill.gates@microsoft.com in this case the stack would throw a exception with saying invalig host 'microsoft.com'.
    Other Clients like SCS (siemens) or Xten are able to connect with the same DNS config!

    And the JSR 180 API I used before worked fine with that!

  4. #4
    Registered User
    Join Date
    Oct 2005
    Posts
    12

    Re: SIP Problems

    I do not know why but the name resolution is working now, if I use the hostname. But the programm is not able to resolve the sip service on the dns network.com he only can resolve direct the host host.network.com. Ok, does not matter. But the problem with the additional contact john.simley is not solved .. :-(

  5. #5
    Nokia Developer Expert
    Join Date
    Jan 2004
    Posts
    45

    Re: SIP Problems

    Look for the file lib\internal.config from the emulator folders.
    There you can edit the default user info.

    #
    # JSR180 SIP API for J2ME Configuration
    #
    com.nokia.phone.ri.sip.user_address: sip:john.smiley@10.128.0.69
    com.nokia.phone.ri.sip.display_name: John Smiley
    com.nokia.phone.ri.sip.outbound_proxy:
    com.nokia.phone.ri.sip.local_port: 5060


    If you wan't to modify the default Contact (set automatically for requests creating dialog) you need to overwrite the default one setHeader("Contact",...).
    But if you modify the automatically set contact you need to take care of the correct IP address and port number in your modified contact.

  6. #6
    Registered User
    Join Date
    Oct 2005
    Posts
    12

    Re: SIP Problems

    Overwritting the config file lib\internal.config helps. But setting the header works not. Then he will send 2 contact header, also if i delete all contact headers before.

    But thx for the working solution !

    Quote Originally Posted by oskarinarki
    Look for the file lib\internal.config from the emulator folders.
    There you can edit the default user info.

    #
    # JSR180 SIP API for J2ME Configuration
    #
    com.nokia.phone.ri.sip.user_address: sip:john.smiley@10.128.0.69
    com.nokia.phone.ri.sip.display_name: John Smiley
    com.nokia.phone.ri.sip.outbound_proxy:
    com.nokia.phone.ri.sip.local_port: 5060


    If you wan't to modify the default Contact (set automatically for requests creating dialog) you need to overwrite the default one setHeader("Contact",...).
    But if you modify the automatically set contact you need to take care of the correct IP address and port number in your modified contact.

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

    Re: SIP Problems

    i m trying to creat a SIP session using j2me for S60. I am geting IllegalArgumentException
    Last edited by qasitouch; 2006-08-01 at 06:14.

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

    Re: sip exception: cannot set cradentials in this state

    i m trying to register ma sip client n i get the Sip Exception: cant set the cradentials in this state.

Similar Threads

  1. JAIN SIP and Symbian C++ SIP
    By RyanSantos in forum Symbian Networking & Messaging (Closed)
    Replies: 11
    Last Post: 2008-07-25, 15:44
  2. Nokia SIP API installation problems
    By calahan in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2005-08-18, 15:04
  3. Nokia SIP API installation problems
    By calahan in forum Mobile Java General
    Replies: 0
    Last Post: 2005-08-14, 00:10
  4. Two problems when working with SIP. very Thanks for your help
    By sky_qiao in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-06-02, 07:29
  5. SIP Problems - Registration Failed
    By mboyerm in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2005-04-22, 19:35

Posting Permissions

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