src/net/java/sip/communicator/impl/protocol/jabber/OperationSetAutoAnswerJabberImpl.java
/**
     * Auto-answers to a call with "audio only" or "audio/video" if the incoming
     * call is a video call.
     *
     * @param call The new incoming call to auto-answer if needed.
     * @param directions The media type (audio / video) stream directions.
     *
     * @return <tt>true</tt> if we have processed and no further processing is
     *          needed, <tt>false</tt> otherwise.
     */
Auto-answers to a call with "audio only" or "audio/video" if the incoming
call is a video call.

@param call The new incoming call to auto-answer if needed.
@param directions The media type (audio / video) stream directions.

@return true if we have processed and no further processing is
needed, false otherwise.
Auto - answers to a call with " audio only " or " audio / video " if the incoming call is a video call . @param call The new incoming call to auto - answer if needed . @param directions The media type ( audio / video ) stream directions . @return true if we have processed and no further processing is needed false otherwise .
public boolean autoAnswer(
            Call call,
            Map<MediaType, MediaDirection> directions)
    {
        boolean isVideoCall = false;
        MediaDirection direction = directions.get(MediaType.VIDEO);
        if(direction != null)
        {
            isVideoCall = (direction == MediaDirection.SENDRECV);
        }
        return super.autoAnswer(call, isVideoCall);
    }
public boolean autoAnswer ( Call call , Map < MediaType , MediaDirection > directions ) { boolean isVideoCall = false ; MediaDirection direction = directions . get ( MediaType . VIDEO ) ; if ( direction != null ) { isVideoCall = ( direction == MediaDirection . SENDRECV ) ; } return super . autoAnswer ( call , isVideoCall ) ; }
Auto-answers to a call with "audio only" or "audio/video" if the incoming
 call is a video call.
Auto - answers to a call with " audio only " or " audio / video " if the incoming call is a video call .