Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 21 by [email protected]: SIPUNIT Throws ClassCastException when processing 401 to an INVITE
http://code.google.com/p/commtesting/issues/detail?id=21

What steps will reproduce the problem?
1. Send an INVITE from a one SIP End Point that is being Challenged at the
   Receiving End and respond with a 401 Unauthorised
2. The SIP End Point processes the 401 and sends an Authenticated INVITE back, with Credentials. 3. This can be achieved by using a SipPhone at the SIP End Point called caller;
  then create Credentials cred = new Credentials("host", "user", "pass");
  then caller.addUpdateCredential(cred);
  then SipCall call = caller.makeCall( ....)

What is the expected output? What do you see instead?
If No errors from SIPUNIT... the initial INVITE gets challenged with 401 response, followed by Authenticated INVITE with credentials...
INSTEAD we see:
03:11:30 [junit] 2013-05-10 03:11:28,440 [Thread-23] DEBUG testAgent8097 - gov.nist.javax.sip.stack.SIPClientTransaction.setResponseInterface(SIPClientTransaction.java:317) [Setting response interface for gov.nist.javax.sip.stack.SIPClientTransaction@2de1e0f3 to gov.nist.javax.sip.DialogFilter@1132d7e] 03:11:30 [junit] 2013-05-10 03:11:28,440 [Thread-23] DEBUG testAgent8097 - gov.nist.javax.sip.stack.SIPClientTransaction.processResponse(SIPClientTransaction.java:528) [processing SIP/2.0 401 Unauthorized
03:11:30     [junit] current state = Proceeding Transaction]
03:11:30 [junit] 2013-05-10 03:11:28,440 [Thread-23] DEBUG testAgent8097 - gov.nist.javax.sip.stack.SIPClientTransaction.processResponse(SIPClientTransaction.java:531) [dialog = gov.nist.javax.sip.stack.SIPDialog@a115d5] 03:11:30 [junit] 2013-05-10 03:11:28,440 [EventScannerThread] ERROR testAgent8097 - javax.sip.ResponseEvent cannot be cast to gov.nist.javax.sip.ResponseEventExt 03:11:30 [junit] java.lang.ClassCastException: javax.sip.ResponseEvent cannot be cast to gov.nist.javax.sip.ResponseEventExt 03:11:30 [junit] at org.cafesip.sipunit.SipStack.processResponse(SipStack.java:396) 03:11:30 [junit] at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:290) 03:11:30 [junit] at gov.nist.javax.sip.EventScanner.run(EventScanner.java:492)
03:11:30     [junit]    at java.lang.Thread.run(Thread.java:722)


What version of the product are you using? On what operating system?
    SIPUNIT 2.0.0 Linux Centos 5/6

Please provide any additional information below.



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "mobicents-all-issues-changes" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to