Comment #7 on issue 1333 by [email protected]: B2buaHelper.getPendingMessages(linkedSession, UAMode.UAC) returns empty list
http://code.google.com/p/mobicents/issues/detail?id=1333

Hi,
I just ran into the same problem as Alexander. I use the mss-3.0.0-SNAPSHOT-apache-tomcat-7.0.42-1307110509 version and when I execute the following piece of code (taken from the mobicents testsuite):

B2buaHelper helper = request.getB2buaHelper();
SipSession peerSession = helper.getLinkedSession(request.getSession()); List<SipServletMessage> pendingMessages = helper.getPendingMessages(peerSession, UAMode.UAC);
                SipServletResponse invitePendingResponse = null;
                logger.info("pending messages : ");
                for(SipServletMessage pendingMessage : pendingMessages) {
                        logger.info("\t pending message : " + pendingMessage);
                        if(((SipServletResponse)pendingMessage).getStatus() == 
200) {
                                invitePendingResponse = 
(SipServletResponse)pendingMessage;
                                break;
                        }
                }
                invitePendingResponse.createAck().send();

I end up with a NullPointerException on the last line. From the logs it is evident that the returned list is empty (see the attached file, listing of the pending messages takes place on line 650).
Is there something I am doing wrong or is it a bug that has reappeared?


Attachments:
        log.txt  33.8 KB

--
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