×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Cannot handle SIP response

    Hi,

    i am just trying to make a sip client with jsr180.

    i send register request to server and get response 200. I follow this with ethereal.

    But in the code i cannot handle the response.
    I receive "Received Response: 0" on the console which is the initilazed value.

    Would you see what is wrong with the code.
    does scc.receive() listening on wrong port or something?

    Thanks..

    Mustafa

    Here is the related code part:

    scc.send(); // i send the register request successfully

    boolean handled = false;
    int scode = 0;

    while(!handled) {
    SipHeader sh;
    // wait max 3 secs for response
    scc.receive(3000);
    scode = scc.getStatusCode();
    System.out.println( "Received Response: " + scode );
    switch(scode)
    {
    case 401:
    sh = new SipHeader("WWW-Authenticate",
    scc.getHeader("WWW-Authenticate"));
    realm = sh.getParameter("realm");
    // here for example, prompt user for password for this realm
    // set credentials to initiate re-REGISTER
    scc.setCredentials(username, password, realm);
    break;

    case 407:
    sh = new SipHeader("Proxy-Authenticate",
    scc.getHeader("Proxy-Authenticate"));
    realm = sh.getParameter("realm");
    // here for example, prompt user for password for this realm
    // set credentials to initiate re-REGISTER
    scc.setCredentials(username, password, realm);
    break;

    case 200:
    // handle OK response
    handled = true;
    break;
    default:
    // do NOT handle other responses
    handled = false;
    }
    }
    scc.close();
    }
    Edit/Delete Message

  2. #2
    Registered User
    Join Date
    Apr 2007
    Posts
    16

    Re: Cannot handle SIP response

    Hi ,

    I am also facing the same problem.The SIP Server Response are not invoking the IncomingResponse() method for a Symbian application.SIP Server is sending a valid response for any request send to it.

    Regards,
    Saket

Similar Threads

  1. Cannot handle SIP rsponse
    By biyikli in forum Mobile Java General
    Replies: 0
    Last Post: 2006-11-02, 07:35
  2. SIP : RunL in response to connect is not called up....
    By saurbh_g in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2005-02-09, 04:50
  3. how to handle HTTP/1.1 100 Continue response?
    By Rx-lee in forum Symbian C++
    Replies: 0
    Last Post: 2004-03-29, 12:11
  4. How to handle a response with HTTP status code 100 (Continue)?
    By danieldkim in forum Mobile Java General
    Replies: 5
    Last Post: 2004-01-19, 10:54
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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