Processing timeouts on sip composing events.

cusax-fix
Damian Minkov 18 years ago
parent 22284d4dec
commit ad2b186994

@ -367,9 +367,25 @@ else if (status >= 400 && status != 401 && status != 407)
return true;
}
/**
* Process the timeouts of sent messages
* @param timeoutEvent the event holding the request
* @return whether this message needs further processing(true) or no(false)
*/
public boolean processTimeout(TimeoutEvent timeoutEvent, Map sentMessages)
{
return true;
Request req = timeoutEvent.getClientTransaction().getRequest();
ContentTypeHeader ctheader =
(ContentTypeHeader)req.getHeader(ContentTypeHeader.NAME);
// ignore messages which are not typing
// notifications and continue processing
if (ctheader == null || !ctheader.getContentSubType()
.equalsIgnoreCase(CONTENT_SUBTYPE))
return true;
return false;
}
private TypingTask findTypigTask(Contact contact)

Loading…
Cancel
Save