Exemplo n.º 1
0
 @Override
 public boolean proceedInitiate(JingleIQ iq, final CallSession session) {
   JID initiator = JIDFactory.getInstance().getJID(iq.getJingle().getInitiator());
   if (sipToJingleBind != null) {
     final JID sipFrom = sipToJingleBind.getSipFrom(initiator);
     if (sipFrom != null) {
       iq.getJingle().setInitiator(sipFrom.toString());
     }
   }
   return true;
 }
Exemplo n.º 2
0
 @Override
 public boolean prepareInitiate(JingleIQ iq, final CallSession session) {
   JID initiator = JIDFactory.getInstance().getJID(iq.getJingle().getInitiator());
   if (sipToJingleBind != null) {
     final JID sipFrom = sipToJingleBind.getSipFrom(initiator);
     if (sipFrom != null) {
       return true;
     } else {
       try {
         accountServiceProcessor.queryService(iq, null, initiator.getNode(), this);
       } catch (ServiceException e) {
         log.error("Failed Querying Account Service.", e);
       }
     }
   }
   return false;
 }