[sip-comm-dev] Exception after receiving 200/OK

Thomas Ackermann TAckermann at innovaphone.com
Thu May 27 11:30:26 CEST 2004


Hi all,

I found the sip-communicator receiving calls with no problems.
But when making calls I always get an Exception after receiving
the 200/OK response for INVITE:

net.java.sip.communicator.sip.CommunicationsException: Failed to acknowledge call!
	at net.java.sip.communicator.sip.CallProcessing.processInviteOK(CallProcessing.java:224)
	at net.java.sip.communicator.sip.SipManager.processResponse(SipManager.java:1628)
	at gov.nist.javax.sip.EventScanner.run(EventScanner.java:218)
	at java.lang.Thread.run(Unknown Source)
Caused by: javax.sip.SipException: Dialog  2c82c37d555dd8c4b1ccccf5903a545e at 192.168.0.22:javaclient at pbx0:5678:14207560:112 at pbx0 not yet established or terminated null
	at gov.nist.javax.sip.stack.DialogImpl.createRequest(DialogImpl.java:1064)
	at net.java.sip.communicator.sip.CallProcessing.processInviteOK(CallProcessing.java:217)
	... 3 more

After checking the source code of sip-communicator and jain-sip
stack I probably found the reason for that.
the function CallProcessing.processInviteOK() tries to create
the ACK request by calling the dialog (!) function:

    Request ack = (Request) clientTransaction.getDialog().createRequest(Request.ACK);

And here the Exception occurs because the dialog's state is null:

    "Dialog ... not yet established or terminated null"

According to the functions comment header this function is not to be
used to create the ACK request! messageFactory.createRequest() is to
be used instead!

Any comments from your side?
Does anyone else encountered this problem?

Best regards,
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: dev-help at sip-communicator.dev.java.net




More information about the dev mailing list