Package org.mobicents.slee.examples.callcontrol.profile

Examples of org.mobicents.slee.examples.callcontrol.profile.CallControlProfileCMP


   * @return boolean: TRUE -> Voice Mail enabled. FALSE -> Voice Mail disabled
   *         for the given user identified by sip address.
   */
  private boolean isSubscriber(String sipAddress) {
    boolean state = false;
    CallControlProfileCMP profile = lookup(new Address(AddressPlan.SIP,
        sipAddress));

    if (profile != null) {
      state = profile.getVoicemailState();
    }

    return state;
  }
View Full Code Here


   * Attempt to find a list of Blocked Addresses (SIP URIs), but the method
   * returns null if the called user (sipAddress) does not block to any user.
   */
  private ArrayList getBlockedArrayList(String sipAddress) {
    ArrayList uris = null;
    CallControlProfileCMP profile = lookup(new Address(AddressPlan.SIP,
        sipAddress));
    if (profile != null) {
      Address[] addresses = profile.getBlockedAddresses();

      if (addresses != null) {
        uris = new ArrayList(addresses.length);

        for (int i = 0; i < addresses.length; i++) {
View Full Code Here

TOP

Related Classes of org.mobicents.slee.examples.callcontrol.profile.CallControlProfileCMP

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.