Package org.mobicents.slee.service.events

Examples of org.mobicents.slee.service.events.CustomEvent


      ExternalActivityHandle handle = conn1.createActivityHandle();

      EventTypeID requestType = conn1.getEventTypeID(
          "org.mobicents.slee.service.dvddemo.ORDER_SHIPPED",
          "org.mobicents", "1.0");
      CustomEvent customEvent = new CustomEvent(orderId, amount,
          customerfullname, cutomerphone);

      conn1.fireEvent(customEvent, requestType, handle, null);
      conn1.close();
View Full Code Here


    long orderId = Long.parseLong(mssArr[0]);
   
    BigDecimal amount = new BigDecimal(mssArr[1]);

    CustomEvent customEvent = new CustomEvent(orderId, amount, mssArr[2], mssArr[3]);
   
    EventTypeID requestType = conn1.getEventTypeID("org.mobicents.slee.service.sfdemo.ORDER_PLACED","org.mobicents","1.0");

    // Fire an asynchronous event
                ExternalActivityHandle handle = conn1.createActivityHandle();
View Full Code Here

      //ExternalActivityHandle handle = conn1.createActivityHandle();

      EventTypeID requestType = conn1.getEventTypeID(
          "org.mobicents.slee.service.dvddemo.ORDER_APPROVED",
          "org.mobicents", "1.0");
      CustomEvent customEvent = new CustomEvent(orderId, amount,
          customerfullname, cutomerphone);

      conn1.fireEvent(customEvent, requestType, adminExternalActivityHandle, null);
      conn1.close();
View Full Code Here

      //ExternalActivityHandle handle = conn1.createActivityHandle();

      EventTypeID requestType = conn1.getEventTypeID(
          "org.mobicents.slee.service.dvddemo.ORDER_REJECTED",
          "org.mobicents", "1.0");
      CustomEvent customEvent = new CustomEvent(orderId, amount,
          customerfullname, cutomerphone);

      conn1.fireEvent(customEvent, requestType, adminExternalActivityHandle, null);
      conn1.close();
View Full Code Here

      handle = conn1.createActivityHandle();

      EventTypeID requestType = conn1.getEventTypeID(
          "org.mobicents.slee.service.dvddemo.BEFORE_ORDER_PROCESSED",
          "org.mobicents", "1.0");
      CustomEvent customEvent = new CustomEvent(orderId, amount,
          customerfullname, cutomerphone);

      conn1.fireEvent(customEvent, requestType, handle, null);
      conn1.close();
View Full Code Here

      ExternalActivityHandle handle = conn1.createActivityHandle();

      EventTypeID requestType = conn1.getEventTypeID(
          "org.mobicents.slee.service.dvddemo.ORDER_PROCESSED",
          "org.mobicents", "1.0");
      CustomEvent customEvent = new CustomEvent(orderId, amount,
          customerfullname, cutomerphone);

      conn1.fireEvent(customEvent, requestType, handle, null);
      conn1.close();
View Full Code Here

      ExternalActivityHandle handle = conn1.createActivityHandle();

      EventTypeID requestType = conn1.getEventTypeID(
          "org.mobicents.slee.service.dvddemo.ORDER_PLACED",
          "org.mobicents", "1.0");
      CustomEvent customEvent = new CustomEvent(orderId, ammount,
          customerName, customerPhone);

      conn1.fireEvent(customEvent, requestType, handle, null);
      conn1.close();
View Full Code Here

    this.setTimerID(timerID);
  }

  private void makeCall() {

    CustomEvent event = this.getCustomEvent();
    this.setDateAndTime("");

    try {
      // Set the caller address to the address of our call controller
      Address callerAddress = getSipUtils()
          .convertURIToAddress(callerSip);
      callerAddress.setDisplayName(callerSip);

      // Retrieve the callee addresses from the event
      Address calleeAddress = getSipUtils().convertURIToAddress(
          event.getCustomerPhone());

      // Build the INVITE request
      Request request = getSipUtils().buildInvite(callerAddress,
          calleeAddress, null, 1);
View Full Code Here

TOP

Related Classes of org.mobicents.slee.service.events.CustomEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.