JAIN_v1.1: Wrong toAddress in BYE request

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:

privatevoid 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

[1506 byte] By [odia] at [2007-10-2 4:00:28]
# 1
Wrong forum!"This forum is for the Java technology developer community to comment on the Java Community Process (JCP). "
ChuckBinga at 2007-7-15 23:22:33 > top of Java-index,Other Topics,Java Community Process (JCP) Program...