code: synchronized void channelLinked(Date date, AsteriskChannel linkedChannel)
      {
          final AsteriskChannel oldLinkedChannel;
          synchronized (this.linkedChannels)
          {
              if (this.linkedChannels.isEmpty())
              {
                  oldLinkedChannel = null;
                  this.linkedChannels.add(linkedChannel);
              }
              else
              {
                  oldLinkedChannel = this.linkedChannels.get(0);
                  this.linkedChannels.set(0, linkedChannel);
              }
          }
  
          final LinkedChannelHistoryEntry historyEntry;
  
          historyEntry = new LinkedChannelHistoryEntry(date, linkedChannel);
          synchronized (linkedChannelHistory)
          {
              linkedChannelHistory.add(historyEntry);
          }
          this.wasLinked = true;
          firePropertyChange(PROPERTY_LINKED_CHANNEL, oldLinkedChannel, linkedChannel);
      }
docs: Sets the channel this channel is bridged with.
  
  @param date the date this channel was linked.
  @param linkedChannel the channel this channel is bridged with.