org.restcomm.protocols.ss7.map.api.MAPServiceBase Maven / Gradle / Ivy
The newest version!
/*
* Mobius Software LTD
* Copyright 2019, Mobius Software LTD and individual contributors
* by the @authors tag.
*
* This program is free software: you can redistribute it and/or modify
* under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see
*/
package org.restcomm.protocols.ss7.map.api;
import org.restcomm.protocols.ss7.commonapp.api.primitives.AddressString;
import org.restcomm.protocols.ss7.map.api.dialog.ServingCheckData;
import org.restcomm.protocols.ss7.sccp.parameter.SccpAddress;
/**
*
* @author sergey vetyutnev
* @author yulianoifa
*
*/
public interface MAPServiceBase {
MAPProvider getMAPProvider();
/**
* Creates a new Dialog. This is equivalent to issuing MAP_OPEN Service Request to MAP Provider.
*
* @param applicationCntx This parameter identifies the type of application context being established. If the dialogue is
* accepted the received application context name shall be echoed. In case of refusal of dialogue this parameter
* shall indicate the highest version supported.
*
* @param destAddress A valid SCCP address identifying the destination peer entity. As an implementation option, this
* parameter may also, in the indication, be implicitly associated with the service access point at which the
* primitive is issued.
*
* @param destReference This parameter is a reference which refines the identification of the called process. It may be
* identical to Destination address but its value is to be carried at MAP level.
*
* @param origAddress A valid SCCP address identifying the requestor of a MAP dialogue. As an implementation option, this
* parameter may also, in the request, be implicitly associated with the service access point at which the primitive
* is issued.
*
* @param origReference This parameter is a reference which refines the identification of the calling process. It may be
* identical to the Originating address but its value is to be carried at MAP level. Processing of the
* Originating-reference shall be performed according to the supplementary service descriptions and other service
* descriptions, e.g. operator determined barring.
* @return
*/
MAPDialog createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference,
SccpAddress destAddress, AddressString destReference, int networkId) throws MAPException;
/**
* Create new structured dialog with predefined local TransactionId.
* We do not normally invoke this method. Use it only when you need this and only this local TransactionId
* (for example if we need of recreating a Dialog for which a peer already has in memory)
* If a Dialog with local TransactionId is already present there will be MAPException
*/
MAPDialog createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference,
SccpAddress destAddress, AddressString destReference, Long localTrId, int networkId) throws MAPException;
/**
* Returns true if the service can perform dialogs with given ApplicationContext
*/
ServingCheckData isServingService(MAPApplicationContext dialogApplicationContext);
// /**
// * Generate ApplicationContext depending on operationCode for MAP v1
// *
// * @param operationCode
// * @param invoke
// * @return ApplicationContext or null if operationCode is not supported by a service
// */
// MAPApplicationContext getMAPv1ApplicationContext(int operationCode, Invoke invoke);
//
// /**
// * Process a component
// */
// void processComponent(ComponentType compType, OperationCode oc, Parameter parameter, MAPDialog mapDialog, Long
// invokeId, Long linkedId)
// throws MAPParsingComponentException;
boolean isActivated();
void acivate();
void deactivate();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy