iceAgent.createStreams(jsm.getMediaNames());
// Handle all incoming Jingle packets with a Jingle Packet Handler.
// The main thing we need to do is ensure that created Jingle sessions
// are of our ReceiverJingleSession type.
new JinglePacketHandler(connection) {
@Override
public JingleSession createJingleSession( String sid, JingleIQ jiq ) {
return new CallerJingleSession(iceAgent, jsm, this, receiverJid, sid, this.connection);
}
} ;