public static boolean responseReceived ( int statusCode , MessageListener messageListener ) { ArrayList < SipResponse > responses = messageListener . getAllReceivedResponses ( ) ; for ( SipResponse r : responses ) { if ( statusCode == r . getStatusCode ( ) ) { return true ; } } return false ; }
Check the given message listener object received a response with the indicated status code .