This discussion is archived
1 Reply Latest reply: Nov 1, 2005 1:17 PM by 796365 RSS

JAIN_v1.1: Wrong toAddress in BYE request

843853 Newbie
Currently Being Moderated
Hi, guys,

I'm developing a simple JAIN-SIP application.

I want to send a BYE back after receiving a ACK of INVITE's OK. But in the BYE request, i found that the toAddress is "10.11.12.13:5060". The fromAddress is correct.

How does it come?

My codes:
private void processAck(RequestEvent requestEvent, ServerTransaction st) {
          
     SipProvider sipProvider = (SipProvider) requestEvent.getSource();
          
     System.out.println("\nServer : Got ACK. Calling......");
          
     try {
          Thread.sleep(2000);
          System.out.println("Server : Calling End! Sending BYE... ");
               
          dialog = st.getDialog();
          Request byeRequest = dialog.createRequest(Request.BYE);
          ClientTransaction ct = sipProvider.getNewClientTransaction(byeRequest);
          dialog.sendRequest(ct);
          System.out.println("   Dialog State = " + dialog.getState());
          System.out.println("Server : BYE Send!");
     } catch (Exception e) {
          e.printStackTrace();
          System.exit(0);
     }
}
I checked the dialog by printing it. And it seems okay. Can you help me?

BR
odi