mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Print additional call message content
This commit is contained in:
parent
23df85ff90
commit
0797217588
1 changed files with 9 additions and 0 deletions
|
@ -21,6 +21,7 @@ import org.whispersystems.signalservice.api.messages.calls.BusyMessage;
|
|||
import org.whispersystems.signalservice.api.messages.calls.HangupMessage;
|
||||
import org.whispersystems.signalservice.api.messages.calls.IceUpdateMessage;
|
||||
import org.whispersystems.signalservice.api.messages.calls.OfferMessage;
|
||||
import org.whispersystems.signalservice.api.messages.calls.OpaqueMessage;
|
||||
import org.whispersystems.signalservice.api.messages.calls.SignalServiceCallMessage;
|
||||
import org.whispersystems.signalservice.api.messages.multidevice.BlockedListMessage;
|
||||
import org.whispersystems.signalservice.api.messages.multidevice.ConfigurationMessage;
|
||||
|
@ -282,6 +283,10 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
|
|||
if (content.getCallMessage().isPresent()) {
|
||||
System.out.println("Received a call message");
|
||||
SignalServiceCallMessage callMessage = content.getCallMessage().get();
|
||||
if (callMessage.getDestinationDeviceId().isPresent()) {
|
||||
final Integer deviceId = callMessage.getDestinationDeviceId().get();
|
||||
System.out.println("Destination device id: " + deviceId);
|
||||
}
|
||||
if (callMessage.getAnswerMessage().isPresent()) {
|
||||
AnswerMessage answerMessage = callMessage.getAnswerMessage().get();
|
||||
System.out.println("Answer message: " + answerMessage.getId() + ": " + answerMessage.getSdp());
|
||||
|
@ -307,6 +312,10 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
|
|||
OfferMessage offerMessage = callMessage.getOfferMessage().get();
|
||||
System.out.println("Offer message: " + offerMessage.getId() + ": " + offerMessage.getSdp());
|
||||
}
|
||||
if (callMessage.getOpaqueMessage().isPresent()) {
|
||||
final OpaqueMessage opaqueMessage = callMessage.getOpaqueMessage().get();
|
||||
System.out.println("Opaque message: size " + opaqueMessage.getOpaque().length);
|
||||
}
|
||||
}
|
||||
if (content.getReceiptMessage().isPresent()) {
|
||||
System.out.println("Received a receipt message");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue