示例#1
0
  public SipRequester(SipFactory sipFactory, SipStateMachine machine, SipConnection sipConnection)
      throws PeerUnavailableException {
    headerFactory = sipFactory.createHeaderFactory();
    addressFactory = sipFactory.createAddressFactory();
    messageFactory = sipFactory.createMessageFactory();

    stateMachine = machine;
    receiver = new SipReceiver(machine);
    this.sipConnection = sipConnection;
    Sipuada.getEventBus().register(SendFollowUpRequestsEvent.class);
    Sipuada.getEventBus().register(SendFollowUpResponseEvent.class);
    // TODO setup the Provider and Listening Point, as well as both Server
    // and Client transactions.
    // TODO also create the current Call Id Header and current Dialog here?
    // TODO register SipReceiver as a SipListener in the SipProvider:
    // provider.addSipListener(receiver)
  }