|
|
|
|
@ -50,7 +50,7 @@ public ActiveCallsRepositoryJabberImpl(
|
|
|
|
|
* @param sid the jingle <tt>sid</tt> we're looking for.
|
|
|
|
|
*
|
|
|
|
|
* @return the {@link CallJabberImpl} containing the peer with the
|
|
|
|
|
* specified <tt>sid</tt> or tt>null</tt> if we couldn't find one matching
|
|
|
|
|
* specified <tt>sid</tt> or <tt>null</tt> if we couldn't find one matching
|
|
|
|
|
* it.
|
|
|
|
|
*/
|
|
|
|
|
public CallJabberImpl findJingleSID(String sid)
|
|
|
|
|
@ -91,6 +91,30 @@ public CallPeerJabberImpl findCallPeer(String sid)
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the {@link CallPeerJabberImpl} whose session-init's ID has
|
|
|
|
|
* the specified IQ <tt>id</tt>.
|
|
|
|
|
*
|
|
|
|
|
* @param id the IQ <tt>id</tt> we're looking for.
|
|
|
|
|
*
|
|
|
|
|
* @return the {@link CallPeerJabberImpl} with the specified <tt>id</tt>
|
|
|
|
|
* or <tt>null</tt> if we couldn't find one matching it.
|
|
|
|
|
*/
|
|
|
|
|
public CallPeerJabberImpl findCallPeerBySessInitPacketID(String id)
|
|
|
|
|
{
|
|
|
|
|
Iterator<CallJabberImpl> calls = getActiveCalls();
|
|
|
|
|
|
|
|
|
|
while (calls.hasNext())
|
|
|
|
|
{
|
|
|
|
|
CallJabberImpl call = calls.next();
|
|
|
|
|
CallPeerJabberImpl peer = call.getPeerBySessInitPacketID(id);
|
|
|
|
|
if ( peer != null )
|
|
|
|
|
return peer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates and dispatches a <tt>CallEvent</tt> notifying registered
|
|
|
|
|
* listeners that an event with id <tt>eventID</tt> has occurred on
|
|
|
|
|
|