src/net/java/sip/communicator/service/protocol/SingleCallInProgressPolicy.java
/**
     * Rejects a <tt>call</tt> with busy here code.
     *
     * @param call the call to reject.
     */
Rejects a call with busy here code.
@param call the call to reject.
Rejects a call with busy here code . @param call the call to reject .
private void rejectCallWithBusyHere(Call call)
    {
        if(call.getCallPeerCount() == 1)
        {
            CallPeer peer = call.getCallPeers().next();
            OperationSetBasicTelephony<?> telephony
                = call.getProtocolProvider().getOperationSet(
                        OperationSetBasicTelephony.class);
            if (telephony != null)
            {
                try
                {
                    telephony.hangupCallPeer(
                            peer,
                            HANGUP_REASON_BUSY_HERE,
                            null);
                }
                catch (OperationFailedException ex)
                {
                    logger.error("Failed to reject " + peer, ex);
                }
            }
        }
    }
private void rejectCallWithBusyHere ( Call call ) { if ( call . getCallPeerCount ( ) == 1 ) { CallPeer peer = call . getCallPeers ( ) . next ( ) ; OperationSetBasicTelephony < ? > telephony = call . getProtocolProvider ( ) . getOperationSet ( OperationSetBasicTelephony . class ) ; if ( telephony != null ) { try { telephony . hangupCallPeer ( peer , HANGUP_REASON_BUSY_HERE , null ) ; } catch ( OperationFailedException ex ) { logger . error ( "Failed to reject " + peer , ex ) ; } } } }
Rejects a <tt>call</tt> with busy here code.
Rejects a <tt > call< / tt > with busy here code .
// We're interested in one-to-one incoming calls.